KVM: Allow to have arch-specific per-vm debugfs files
authorPeter Xu <peterx@redhat.com>
Fri, 30 Jul 2021 22:04:49 +0000 (18:04 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 13 Aug 2021 07:35:17 +0000 (03:35 -0400)
commit3165af738ed3224a84ead7d97c6909de2e453b4c
treece0cf464cc46668526d4a40ca6393cfd23e98ad3
parentf7782bb8d818d8f47c26b22079db10599922787a
KVM: Allow to have arch-specific per-vm debugfs files

Allow archs to create arch-specific nodes under kvm->debugfs_dentry directory
besides the stats fields.  The new interface kvm_arch_create_vm_debugfs() is
defined but not yet used.  It's called after kvm->debugfs_dentry is created, so
it can be referenced directly in kvm_arch_create_vm_debugfs().  Arch should
define their own versions when they want to create extra debugfs nodes.

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20210730220455.26054-2-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c