summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-04-21 19:21:20 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2021-04-26 05:27:11 -0400
commitd0fe7b6404408835ed60232cb3bf28324b2f95db (patch)
tree76a387a04a883e10a4d6b65268cc38e1786d0b5a /arch/x86/kvm/x86.c
parentdbdd096a5a74b94f6b786a47baef2085859b0dce (diff)
downloadlwn-d0fe7b6404408835ed60232cb3bf28324b2f95db.tar.gz
lwn-d0fe7b6404408835ed60232cb3bf28324b2f95db.zip
KVM: x86: Remove emulator's broken checks on CR0/CR3/CR4 loads
Remove the emulator's checks for illegal CR0, CR3, and CR4 values, as the checks are redundant, outdated, and in the case of SEV's C-bit, broken. The emulator manually calculates MAXPHYADDR from CPUID and neglects to mask off the C-bit. For all other checks, kvm_set_cr*() are a superset of the emulator checks, e.g. see CR4.LA57. Fixes: a780a3ea6282 ("KVM: X86: Fix reserved bits check for MOV to CR3") Cc: Babu Moger <babu.moger@amd.com> Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20210422022128.3464144-2-seanjc@google.com> Cc: stable@vger.kernel.org [Unify check_cr_read and check_cr_write. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
0 files changed, 0 insertions, 0 deletions