OSDN Git Service

KVM: x86/mmu: Don't grab CR4.PSE for calculating shadow reserved bits
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:57:14 +0000 (10:57 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 22:00:42 +0000 (18:00 -0400)
commit8c985b2d8e682edac84bde63cef660cc574f795e
tree39b2ab6ca361998d5503bf686f8b17ec779c796a
parent18db1b1790a899880dc4afdb9ac6c82c91080d66
KVM: x86/mmu: Don't grab CR4.PSE for calculating shadow reserved bits

Unconditionally pass pse=false when calculating reserved bits for shadow
PTEs.  CR4.PSE is only relevant for 32-bit non-PAE paging, which KVM does
not use for shadow paging (including nested NPT).

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622175739.3610207-30-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c