OSDN Git Service

KVM: x86/mmu: Move nested NPT reserved bit calculation into MMU proper
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:57:03 +0000 (10:57 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 22:00:39 +0000 (18:00 -0400)
commit16be1d12925305d4d20fd897632d9a6836a865c8
tree748a863502a3eaa0ef5a6d306a33cedf2d9c89e2
parent20f632bd0060e12fca083adc44b097231e2f4649
KVM: x86/mmu: Move nested NPT reserved bit calculation into MMU proper

Move nested NPT's invocation of reset_shadow_zero_bits_mask() into the
MMU proper and unexport said function.  Aside from dropping an export,
this is a baby step toward eliminating the call entirely by fixing the
shadow_root_level confusion.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622175739.3610207-19-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/svm/nested.c