KVM: x86/mmu: Dedup macros for computing various page table masks
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 23:33:24 +0000 (23:33 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jun 2022 10:21:27 +0000 (06:21 -0400)
commit42c88ff893f06b6ab4eaeb2c37e513edf8c1943b
tree2c8fefdb9bf89206a0876b75b90161fc93dd44b0
parentb3fcdb04a98035f55f7ba9e3c87d3c4eb2f95b4b
KVM: x86/mmu: Dedup macros for computing various page table masks

Provide common helper macros to generate various masks, shifts, etc...
for 32-bit vs. 64-bit page tables.  Only the inputs differ, the actual
calculations are identical.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220614233328.3896033-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/mmu_internal.h
arch/x86/kvm/mmu/paging.h
arch/x86/kvm/mmu/spte.h