Re: [PATCH v3] X86/VMX: Disable VMX preemption timer if MWAIT is not intercepted

From: Paolo Bonzini
Date: Tue Apr 10 2018 - 08:47:09 EST


On 10/04/2018 14:15, KarimAllah Ahmed wrote:
> So disable the VMX-preemption timer if MWAIT is exposed to the guest!
>
> Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx>
> Cc: Radim KrÄmÃÅ <rkrcmar@xxxxxxxxxx>
> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> Cc: H. Peter Anvin <hpa@xxxxxxxxx>
> Cc: x86@xxxxxxxxxx
> Cc: kvm@xxxxxxxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> Signed-off-by: KarimAllah Ahmed <karahmed@xxxxxxxxx>
> ---
> v2 -> v3:
> - return -EOPNOTSUPP before any other operation in vmx_set_hv_timer

Applied with s/kvm_pause_in_guest/kvm_mwait_in_guest/ and

Fixes: 4d5422cea3b61f158d58924cbb43feada456ba5c

to help stable maintainers.

Thanks,

Paolo