Re: [PATCH 07/16] KVM: VMX: Use VMX feature flag to query BIOS enabling

From: Jim Mattson
Date: Fri Oct 04 2019 - 19:27:09 EST


On Fri, Oct 4, 2019 at 2:56 PM Sean Christopherson
<sean.j.christopherson@xxxxxxxxx> wrote:
>
> Replace KVM's manual checks on IA32_FEATURE_CONTROL with a query on the
> boot CPU's VMX feature flag. The VMX flag is now cleared during boot if
> VMX isn't fully enabled via IA32_FEATURE_CONTROL, including the case
> where IA32_FEATURE_CONTROL isn't supported.
>
> Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>