]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Refactor 32-bit PSE PT creation to avoid using MMU macro
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 23:33:22 +0000 (23:33 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jun 2022 10:21:26 +0000 (06:21 -0400)
commitfd821fa851f40fe46e91da33ea23a4b13bf577b8
tree3721bb1065e226c5b7963a0a49c65d65446ba922
parenteb9ec4279b4f8305c5df7bfd5c079086657d23f7
KVM: VMX: Refactor 32-bit PSE PT creation to avoid using MMU macro

Compute the number of PTEs to be filled for the 32-bit PSE page tables
using the page size and the size of each entry.  While using the MMU's
PT32_ENT_PER_PAGE macro is arguably better in isolation, removing VMX's
usage will allow a future namespacing cleanup to move the guest page
table macros into paging_tmpl.h, out of the reach of code that isn't
directly related to shadow paging.

No functional change intended.

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