@@ -373,6 +373,8 @@ static void kvm_vcpu_after_set_cpuid(struct kvm_vcpu *vcpu)
if (allow_gbpages)
kvm_governed_feature_set(vcpu, X86_FEATURE_GBPAGES);
+ kvm_governed_feature_check_and_set(vcpu, X86_FEATURE_LA57);
+
best = kvm_find_cpuid_entry(vcpu, 1);
if (best && apic) {
if (cpuid_entry_has(best, X86_FEATURE_TSC_DEADLINE_TIMER))
@@ -17,6 +17,7 @@ KVM_GOVERNED_X86_FEATURE(PFTHRESHOLD)
KVM_GOVERNED_X86_FEATURE(VGIF)
KVM_GOVERNED_X86_FEATURE(VNMI)
KVM_GOVERNED_X86_FEATURE(LAM)
+KVM_GOVERNED_X86_FEATURE(LA57)
#undef KVM_GOVERNED_X86_FEATURE
#undef KVM_GOVERNED_FEATURE
Guest support for X86_FEATURE_LA57 will need to be tested to determine canonical width check for nested VMX VM entries. Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> --- arch/x86/kvm/cpuid.c | 2 ++ arch/x86/kvm/governed_features.h | 1 + 2 files changed, 3 insertions(+)