diff options
author | 2021-06-09 16:42:33 -0700 | |
---|---|---|
committer | 2021-06-17 13:09:54 -0400 | |
commit | c906066288d0da7b8c2b5ac4d0d8e85f10f5d5b8 (patch) | |
tree | 2547ba34580f2725b1c42c50d1fed2371649808c /arch/x86/kvm/svm/nested.c | |
parent | KVM: x86: Defer MMU sync on PCID invalidation (diff) | |
download | wireguard-linux-c906066288d0da7b8c2b5ac4d0d8e85f10f5d5b8.tar.xz wireguard-linux-c906066288d0da7b8c2b5ac4d0d8e85f10f5d5b8.zip |
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>
Diffstat (limited to 'arch/x86/kvm/svm/nested.c')
-rw-r--r-- | arch/x86/kvm/svm/nested.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index 5f45991edcda..dca20f949b63 100644 --- a/arch/x86/kvm/svm/nested.c +++ b/arch/x86/kvm/svm/nested.c @@ -419,7 +419,7 @@ static int nested_svm_load_cr3(struct kvm_vcpu *vcpu, unsigned long cr3, vcpu->arch.cr3 = cr3; kvm_register_mark_available(vcpu, VCPU_EXREG_CR3); - kvm_init_mmu(vcpu, false); + kvm_init_mmu(vcpu); return 0; } |