diff options
author | Paolo Bonzini | 2020-06-30 15:49:27 +0200 |
---|---|---|
committer | Paolo Bonzini | 2020-07-11 00:02:22 +0200 |
commit | e1e43813e7908b063938a3d01f172f88f6190c80 (patch) | |
tree | 350d443879b5340499f424571123e65d0d1b25cd /target/i386/kvm_i386.h | |
parent | target/i386: implement undocumented "smsw r32" behavior (diff) | |
download | qemu-e1e43813e7908b063938a3d01f172f88f6190c80.tar.gz qemu-e1e43813e7908b063938a3d01f172f88f6190c80.tar.xz qemu-e1e43813e7908b063938a3d01f172f88f6190c80.zip |
KVM: x86: believe what KVM says about WAITPKG
Currently, QEMU is overriding KVM_GET_SUPPORTED_CPUID's answer for
the WAITPKG bit depending on the "-overcommit cpu-pm" setting. This is a
bad idea because it does not even check if the host supports it, but it
can be done in x86_cpu_realizefn just like we do for the MONITOR bit.
This patch moves it there, while making it conditional on host
support for the related UMWAIT MSR.
Cc: qemu-stable@nongnu.org
Reported-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/kvm_i386.h')
-rw-r--r-- | target/i386/kvm_i386.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/i386/kvm_i386.h b/target/i386/kvm_i386.h index 00bde7acaf..064b8798a2 100644 --- a/target/i386/kvm_i386.h +++ b/target/i386/kvm_i386.h @@ -44,6 +44,7 @@ void kvm_put_apicbase(X86CPU *cpu, uint64_t value); bool kvm_enable_x2apic(void); bool kvm_has_x2apic_api(void); +bool kvm_has_waitpkg(void); bool kvm_hv_vpindex_settable(void); |