v1 -> v2: * Patch# 1 is new and is not directly related to this patchset. * Patch# 2 now tracks only those guest-entries that pass all checks in hardware and make it to guest code. * Patch# 3 removes the 'nested_guest_running' statistic that was added in v1 and instead adds a stat that tracks how many VCPUs have run a nested guest. [PATCH 1/4 v2] KVM: nVMX: Reset 'nested_run_pending' only in guest mode [PATCH 2/4 v2] KVM: nVMX: nSVM: 'nested_run' should count guest-entry [PATCH 3/4 v2] KVM: nVMX: nSVM: Add a new debugfs statistic to show how [PATCH 4/4 v2] KVM: x86: Add a new VM statistic to show number of VCPUs arch/x86/include/asm/kvm_host.h | 4 +++- arch/x86/kvm/svm/nested.c | 2 -- arch/x86/kvm/svm/svm.c | 9 +++++++++ arch/x86/kvm/vmx/nested.c | 2 -- arch/x86/kvm/vmx/vmx.c | 16 +++++++++++++++- arch/x86/kvm/x86.c | 4 +++- virt/kvm/kvm_main.c | 2 ++ 7 files changed, 32 insertions(+), 7 deletions(-) Krish Sadhukhan (4): KVM: nVMX: Reset 'nested_run_pending' only in guest mode KVM: nVMX: nSVM: 'nested_run' should count guest-entry attempts that make it to guest code KVM: nVMX: nSVM: Add a new debugfs statistic to show how many VCPUs have run nested guests KVM: x86: Add a new VM statistic to show number of VCPUs created in a given VM