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>
Showing
- Documentation/virtual/kvm/api.txt 18 additions, 9 deletionsDocumentation/virtual/kvm/api.txt
- arch/x86/include/asm/kvm_host.h 2 additions, 0 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/svm.c 1 addition, 1 deletionarch/x86/kvm/svm.c
- arch/x86/kvm/vmx.c 5 additions, 4 deletionsarch/x86/kvm/vmx.c
- arch/x86/kvm/x86.c 20 additions, 4 deletionsarch/x86/kvm/x86.c
- arch/x86/kvm/x86.h 5 additions, 5 deletionsarch/x86/kvm/x86.h
- include/uapi/linux/kvm.h 1 addition, 1 deletioninclude/uapi/linux/kvm.h
- tools/include/uapi/linux/kvm.h 1 addition, 1 deletiontools/include/uapi/linux/kvm.h
Please register or sign in to comment