v2 -> v3: * Patch "KVM: nVMX: Reset 'nested_run_pending' only in guest mode" from v2 has been dropped. * Patch "KVM: nVMX: nSVM: Add a new debugfs statistic to show how many VCPUs have run nested guests" from v2 has been reverted back to what it was in v1 where the statistic tracks if the VCPU is currently executing in guest mode. This modifiled patch is patch# 2 in v3. The name of the statistic has been changed to 'guest_mode' to better reflect what it is for. * The name of the statistic in patch# 3 has been changed to 'vcpus'. [PATCH 1/3 v3] KVM: nVMX: nSVM: 'nested_run' should count guest-entry [PATCH 2/3 v3] KVM: nVMX: nSVM: Add a new VCPU statistic to show if VCPU [PATCH 3/3 v3] KVM: x86: Add a new VM statistic to show number of VCPUs arch/x86/include/asm/kvm_host.h | 4 +++- arch/x86/kvm/debugfs.c | 11 +++++++++++ arch/x86/kvm/kvm_cache_regs.h | 3 +++ arch/x86/kvm/svm/nested.c | 2 -- arch/x86/kvm/svm/svm.c | 6 ++++++ arch/x86/kvm/vmx/nested.c | 2 -- arch/x86/kvm/vmx/vmx.c | 13 ++++++++++++- arch/x86/kvm/x86.c | 4 +++- virt/kvm/kvm_main.c | 2 ++ 9 files changed, 40 insertions(+), 7 deletions(-) Krish Sadhukhan (3): KVM: nVMX: nSVM: 'nested_run' should count guest-entry attempts that make it to guest code KVM: nVMX: nSVM: Add a new VCPU statistic to show if VCPU is in guest mode KVM: x86: Add a new VM statistic to show number of VCPUs created in a given VM