]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Create debugfs dir and stat files for each VM
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Wed, 18 May 2016 11:26:23 +0000 (13:26 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 May 2016 14:12:05 +0000 (16:12 +0200)
commitad6a427d792005c67c858c359da3f38a8ae20d90
treeda2c0c7f8f0c55258c0beee21d4551004edb3749
parent2e09fec056d39b3a231f446053e13b2db2e1a8d0
KVM: Create debugfs dir and stat files for each VM

This patch adds a kvm debugfs subdirectory for each VM, which is named
after its pid and file descriptor. The directories contain the same
kind of files that are already in the kvm debugfs directory, but the
data exported through them is now VM specific.

This makes the debugfs kvm data a convenient alternative to the
tracepoints which already have per VM data. The debugfs data is easy
to read and low overhead.

CC: Dan Carpenter <dan.carpenter@oracle.com> [includes fixes by Dan Carpenter]
Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c