diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2016-09-16 10:27:35 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-16 16:57:47 +0200 |
commit | 45b5939e50746b92fd4cb47c02524f79ba8fabe6 (patch) | |
tree | 2913b6e168819a11ff761d4d5106f89e1c5ae224 /lib/swiotlb.c | |
parent | 235539b48a2357da28f52d66d04bec04f3dcb9dd (diff) | |
download | op-kernel-dev-45b5939e50746b92fd4cb47c02524f79ba8fabe6.zip op-kernel-dev-45b5939e50746b92fd4cb47c02524f79ba8fabe6.tar.gz |
kvm: create per-vcpu dirs in debugfs
This commit adds the ability for archs to export
per-vcpu information via a new per-vcpu dir in
the VM's debugfs directory.
If kvm_arch_has_vcpu_debugfs() returns true, then KVM
will create a vcpu dir for each vCPU in the VM's
debugfs directory. Then kvm_arch_create_vcpu_debugfs()
is responsible for populating each vcpu directory
with arch specific entries.
The per-vcpu path in debugfs will look like:
/sys/kernel/debug/kvm/29162-10/vcpu0
/sys/kernel/debug/kvm/29162-10/vcpu1
This is all arch specific for now because the only
user of this interface (x86) wants to export x86-specific
per-vcpu information to user-space.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'lib/swiotlb.c')
0 files changed, 0 insertions, 0 deletions