KVM: x86: Set so called 'reserved CR3 bits in LM mask' at vCPU reset
authorSean Christopherson <seanjc@google.com>
Thu, 4 Feb 2021 00:01:06 +0000 (16:01 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 17:59:28 +0000 (12:59 -0500)
commit031b91a5fe6f1ce61b7617614ddde9ed61e252be
treea982fd5f423b002896d6e2379c4b9bb6ac68b076
parent87aa9ec939ec7277b730786e19c161c9194cc8ca
KVM: x86: Set so called 'reserved CR3 bits in LM mask' at vCPU reset

Set cr3_lm_rsvd_bits, which is effectively an invalid GPA mask, at vCPU
reset.  The reserved bits check needs to be done even if userspace never
configures the guest's CPUID model.

Cc: stable@vger.kernel.org
Fixes: 0107973a80ad ("KVM: x86: Introduce cr3_lm_rsvd_bits in kvm_vcpu_arch")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210204000117.3303214-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c