aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Sean Christopherson <seanjc@google.com> 2021-06-22 10:57:36 -0700
committerGravatar Paolo Bonzini <pbonzini@redhat.com> 2021-06-24 18:00:47 -0400
commitf82fdaf536ee6de36e3a7b4764f17b81afb8ef93 (patch)
tree226adbffe03eee3d46c47e366f2d27b8b91b767e /arch
parentKVM: x86/mmu: Optimize and clean up so called "last nonleaf level" logic (diff)
downloadlinux-f82fdaf536ee6de36e3a7b4764f17b81afb8ef93.tar.gz
linux-f82fdaf536ee6de36e3a7b4764f17b81afb8ef93.tar.bz2
linux-f82fdaf536ee6de36e3a7b4764f17b81afb8ef93.zip
KVM: x86/mmu: Drop redundant rsvd bits reset for nested NPT
Drop the extra reset of shadow_zero_bits in the nested NPT flow now that shadow_mmu_init_context computes the correct level for nested NPT. No functional change intended. Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20210622175739.3610207-52-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/mmu/mmu.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c
index 417f81c004da..690f560341a2 100644
--- a/arch/x86/kvm/mmu/mmu.c
+++ b/arch/x86/kvm/mmu/mmu.c
@@ -4693,12 +4693,6 @@ void kvm_init_shadow_npt_mmu(struct kvm_vcpu *vcpu, unsigned long cr0,
__kvm_mmu_new_pgd(vcpu, nested_cr3, new_role.base);
shadow_mmu_init_context(vcpu, context, &regs, new_role);
-
- /*
- * Redo the shadow bits, the reset done by shadow_mmu_init_context()
- * (above) may use the wrong shadow_root_level.
- */
- reset_shadow_zero_bits_mask(vcpu, context);
}
EXPORT_SYMBOL_GPL(kvm_init_shadow_npt_mmu);