]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Use common logic for computing the 32/64-bit base PA mask
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 23:33:28 +0000 (23:33 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jun 2022 10:21:30 +0000 (06:21 -0400)
commit600a7c70beb04621f2750234eec2adcb3eeaaf08
treeff90275eeb748d7f0c66c1c850fcb22f63958850
parent87eb448664b382da7260e4dca0b583e01fbd1ec3
KVM: x86/mmu: Use common logic for computing the 32/64-bit base PA mask

Use common logic for computing PT_BASE_ADDR_MASK for 32-bit, 64-bit, and
EPT paging.  Both PAGE_MASK and the new-common logic are supsersets of
what is actually needed for 32-bit paging.  PAGE_MASK sets bits 63:12 and
the former GUEST_PT64_BASE_ADDR_MASK sets bits 51:12, so regardless of
which value is used, the result will always be bits 31:12.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220614233328.3896033-9-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/paging.h [deleted file]
arch/x86/kvm/mmu/paging_tmpl.h