KVM: x86: Drop pointless @reset_roots from kvm_init_mmu()
authorSean Christopherson <seanjc@google.com>
Wed, 9 Jun 2021 23:42:33 +0000 (16:42 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:54 +0000 (13:09 -0400)
commitc906066288d0da7b8c2b5ac4d0d8e85f10f5d5b8
tree2547ba34580f2725b1c42c50d1fed2371649808c
parente62f1aa8b9304f4608a6a1517e9041cec555c09d
KVM: x86: Drop pointless @reset_roots from kvm_init_mmu()

Remove the @reset_roots param from kvm_init_mmu(), the one user,
kvm_mmu_reset_context() has already unloaded the MMU and thus freed and
invalidated all roots.  This also happens to be why the reset_roots=true
paths doesn't leak roots; they're already invalid.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210609234235.1244004-14-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
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/x86.c