]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Don't load/put vCPU when unloading its MMU during teardown
authorSean Christopherson <seanjc@google.com>
Mon, 24 Feb 2025 23:55:39 +0000 (15:55 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Feb 2025 18:17:23 +0000 (13:17 -0500)
commited09b50b5411a6dcbf350ac7ea6270d786baa282
treeebcd2c0391dce46434f42ca9899bd75e9428937f
parent982caaa1150479f022003390cd72a1941663d211
KVM: x86: Don't load/put vCPU when unloading its MMU during teardown

Don't load (and then put) a vCPU when unloading its MMU during VM
destruction, as nothing in kvm_mmu_unload() accesses vCPU state beyond the
root page/address of each MMU, i.e. can't possible need to run with the
vCPU loaded.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20250224235542.2562848-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c