Skip to content

Commit f82fdaf

Browse files
sean-jcbonzini
authored andcommitted
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>
1 parent 7cd138d commit f82fdaf

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

arch/x86/kvm/mmu/mmu.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4693,12 +4693,6 @@ void kvm_init_shadow_npt_mmu(struct kvm_vcpu *vcpu, unsigned long cr0,
46934693
__kvm_mmu_new_pgd(vcpu, nested_cr3, new_role.base);
46944694

46954695
shadow_mmu_init_context(vcpu, context, &regs, new_role);
4696-
4697-
/*
4698-
* Redo the shadow bits, the reset done by shadow_mmu_init_context()
4699-
* (above) may use the wrong shadow_root_level.
4700-
*/
4701-
reset_shadow_zero_bits_mask(vcpu, context);
47024696
}
47034697
EXPORT_SYMBOL_GPL(kvm_init_shadow_npt_mmu);
47044698

0 commit comments

Comments
 (0)