summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorWanpeng Li2019-05-21 08:06:53 +0200
committerPaolo Bonzini2019-06-04 19:27:35 +0200
commitb51700632e0e53254733ff706e5bdca22d19dbe5 (patch)
tree43f67534a111e163d2535bb44b3222557797fae8 /arch/x86/include
parentKVM: Documentation: Add disable pause exits to KVM_CAP_X86_DISABLE_EXITS (diff)
downloadkernel-qcow2-linux-b51700632e0e53254733ff706e5bdca22d19dbe5.tar.gz
kernel-qcow2-linux-b51700632e0e53254733ff706e5bdca22d19dbe5.tar.xz
kernel-qcow2-linux-b51700632e0e53254733ff706e5bdca22d19dbe5.zip
KVM: X86: Provide a capability to disable cstate msr read intercepts
Allow guest reads CORE cstate when exposing host CPU power management capabilities to the guest. PKG cstate is restricted to avoid a guest to get the whole package information in multi-tenant scenario. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: Sean Christopherson <sean.j.christopherson@intel.com> Cc: Liran Alon <liran.alon@oracle.com> Signed-off-by: Wanpeng Li <wanpengli@tencent.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
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 15e973d9b840..aeadbc770eb2 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -882,6 +882,7 @@ struct kvm_arch {
bool mwait_in_guest;
bool hlt_in_guest;
bool pause_in_guest;
+ bool cstate_in_guest;
unsigned long irq_sources_bitmap;
s64 kvmclock_offset;