• Janosch Frank's avatar
    KVM: Create debugfs dir and stat files for each VM · 536a6f88
    Janosch Frank authored
    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: default avatarJanosch Frank <frankja@linux.vnet.ibm.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    536a6f88
kvm_main.c 89 KB