]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: simplify kvm_mwait_in_guest()
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 29 Nov 2017 21:23:43 +0000 (22:23 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Dec 2017 08:26:43 +0000 (09:26 +0100)
commit3386d9c3ad514552bc0ce4f0a9acffc07e7cb73d
tree4b3faad19cac641eb7e78a3040c06eb1ce816c87
parentb8d462f65c668f32338b93c3b06bf08accbccde1
KVM: x86: simplify kvm_mwait_in_guest()

If Intel/AMD implements MWAIT, we expect that it works well and only
reject known bugs;  no reason to do it the other way around for minor
vendors.  (Not that they are relevant ATM.)

This allows further simplification of kvm_mwait_in_guest().
And use boot_cpu_has() instead of "cpu_has(&boot_cpu_data," while at it.

Reviewed-by: Alexander Graf <agraf@suse.de>
Acked-by: Borislav Petkov <bp@suse.de>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.h