aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorVineeth Pillai <vineeth@bitbyteword.org>2022-05-23 15:03:27 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-24 12:44:33 -0400
commite36de87d34a7f2f26b2e2129c6dc18a0024663eb (patch)
tree918a3c1b2ab14fea239dd480a75f04369765d161 /include/linux/kvm_host.h
parentKVM: nVMX: clean up posted interrupt descriptor try_cmpxchg (diff)
downloadlinux-dev-e36de87d34a7f2f26b2e2129c6dc18a0024663eb.tar.xz
linux-dev-e36de87d34a7f2f26b2e2129c6dc18a0024663eb.zip
KVM: debugfs: expose pid of vcpu threads
Add a new debugfs file to expose the pid of each vcpu threads. This is very helpful for userland tools to get the vcpu pids without worrying about thread naming conventions of the VMM. Signed-off-by: Vineeth Pillai (Google) <vineeth@bitbyteword.org> Message-Id: <20220523190327.2658-1-vineeth@bitbyteword.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 3554e48406e4..3b40f8d68fbb 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -1435,6 +1435,8 @@ int kvm_arch_pm_notifier(struct kvm *kvm, unsigned long state);
#ifdef __KVM_HAVE_ARCH_VCPU_DEBUGFS
void kvm_arch_create_vcpu_debugfs(struct kvm_vcpu *vcpu, struct dentry *debugfs_dentry);
+#else
+static inline void kvm_create_vcpu_debugfs(struct kvm_vcpu *vcpu) {}
#endif
int kvm_arch_hardware_enable(void);