[PATCH v2 3/3] KVM: x86: simplify kvm_mwait_in_guest()

2017-11-29 Thread Radim Krčmář
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(_cpu_data,"

[PATCH v2 3/3] KVM: x86: simplify kvm_mwait_in_guest()

2017-11-29 Thread Radim Krčmář
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(_cpu_data,"