aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/kvm.h
diff options
context:
space:
mode:
authorWanpeng Li <wanpengli@tencent.com>2018-03-12 07:53:02 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2018-03-16 17:03:51 -0400
commit4d5422cea3b61f158d58924cbb43feada456ba5c (patch)
tree0657ac655c54892dd6498d8e20b89380255d592a /include/uapi/linux/kvm.h
parent4956aa3b8b59e336b77f1df0ac7ce1a94c0265f2 (diff)
KVM: X86: Provide a capability to disable MWAIT intercepts
Allowing a guest to execute MWAIT without interception enables a guest to put a (physical) CPU into a power saving state, where it takes longer to return from than what may be desired by the host. Don't give a guest that power over a host by default. (Especially, since nothing prevents a guest from using MWAIT even when it is not advertised via CPUID.) Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: Jan H. Schönherr <jschoenh@amazon.de> Signed-off-by: Wanpeng Li <wanpengli@tencent.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/uapi/linux/kvm.h')
-rw-r--r--include/uapi/linux/kvm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
index 088c2c92db55..1065006c9bf5 100644
--- a/include/uapi/linux/kvm.h
+++ b/include/uapi/linux/kvm.h
@@ -929,7 +929,7 @@ struct kvm_ppc_resize_hpt {
929#define KVM_CAP_S390_GS 140 929#define KVM_CAP_S390_GS 140
930#define KVM_CAP_S390_AIS 141 930#define KVM_CAP_S390_AIS 141
931#define KVM_CAP_SPAPR_TCE_VFIO 142 931#define KVM_CAP_SPAPR_TCE_VFIO 142
932#define KVM_CAP_X86_GUEST_MWAIT 143 932#define KVM_CAP_X86_DISABLE_EXITS 143
933#define KVM_CAP_ARM_USER_IRQ 144 933#define KVM_CAP_ARM_USER_IRQ 144
934#define KVM_CAP_S390_CMMA_MIGRATION 145 934#define KVM_CAP_S390_CMMA_MIGRATION 145
935#define KVM_CAP_PPC_FWNMI 146 935#define KVM_CAP_PPC_FWNMI 146