diff options
author | Krish Sadhukhan <krish.sadhukhan@oracle.com> | 2021-06-09 20:03:39 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-06-17 19:09:36 +0200 |
commit | d5a0483f9f3250fe359224327ca1b4a29d106981 (patch) | |
tree | 1fabf029f35b1afc78120846f62a598af2aed172 /arch/x86/include/asm | |
parent | KVM: nVMX: nSVM: 'nested_run' should count guest-entry attempts that make it ... (diff) | |
download | linux-d5a0483f9f3250fe359224327ca1b4a29d106981.tar.xz linux-d5a0483f9f3250fe359224327ca1b4a29d106981.zip |
KVM: nVMX: nSVM: Add a new VCPU statistic to show if VCPU is in guest mode
Add the following per-VCPU statistic to KVM debugfs to show if a given
VCPU is in guest mode:
guest_mode
Also add this as a per-VM statistic to KVM debugfs to show the total number
of VCPUs that are in guest mode in a given VM.
Signed-off-by: Krish Sadhukhan <Krish.Sadhukhan@oracle.com>
Message-Id: <20210609180340.104248-3-krish.sadhukhan@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 921de30c23c5..bea7290ef173 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -1180,6 +1180,7 @@ struct kvm_vcpu_stat { u64 nested_run; u64 directed_yield_attempted; u64 directed_yield_successful; + u64 guest_mode; }; struct x86_instruction_info; |