KVM: VMX: Move MSR_IA32_FEAT_CTL.LOCKED check into "is valid" helper
authorSean Christopherson <seanjc@google.com>
Tue, 7 Jun 2022 23:23:52 +0000 (23:23 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 1 Dec 2022 00:29:53 +0000 (16:29 -0800)
commit2d6cd68636d60822219074b7c1d0bfe41321f106
tree7ca042876e82396ca861f57995b44494367a74de
parentd2a00af2061db863890e32a4a99a6f82c330df1f
KVM: VMX: Move MSR_IA32_FEAT_CTL.LOCKED check into "is valid" helper

Move the check on IA32_FEATURE_CONTROL being locked, i.e. read-only from
the guest, into the helper to check the overall validity of the incoming
value.  Opportunistically rename the helper to make it clear that it
returns a bool.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220607232353.3375324-3-seanjc@google.com
arch/x86/kvm/vmx/vmx.c