]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f5dfafb4cc3397e9d04e022cba1ac5dd7a30684
tree2c8fefdb9bf89206a0876b75b90161fc93dd44b0
parent0ca0bd8c77ad386cfffa7249f6ffdf39a5274946
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