]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Use MMU's role to get CR4.PSE for computing rsvd bits
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:57:15 +0000 (10:57 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 22:00:42 +0000 (18:00 -0400)
commit88c522b4030cbe7c5e2610b2981873a8d9c72d90
tree90b2849b28001e65de306d4bc03de91198379a1d
parente2aa56b978202e4d896cbafa1add5bb5cafc6bd6
KVM: x86/mmu: Use MMU's role to get CR4.PSE for computing rsvd bits

Use the MMU's role to get CR4.PSE when calculating reserved bits for the
guest's PTEs.  Practically speaking, this is a glorified nop as the role
always come from vCPU state for the relevant flows, but converting to
the roles will provide consistency once everything else is converted, and
will Just Work if the "always comes from vCPU" behavior were ever to
change (unlikely).

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