summary refs log tree commit diff stats
path: root/arch_init.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-06-30 09:49:27 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-07-10 18:02:22 -0400
commite1e43813e7908b063938a3d01f172f88f6190c80 (patch)
tree350d443879b5340499f424571123e65d0d1b25cd /arch_init.c
parentc0c8445255b2b5b440c355431c8b01b7b7b7c8cf (diff)
downloadfocaccia-qemu-e1e43813e7908b063938a3d01f172f88f6190c80.tar.gz
focaccia-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 'arch_init.c')
0 files changed, 0 insertions, 0 deletions