Re: [PATCH 4/7] KVM: x86: Don't load/put vCPU when unloading its MMU during teardown

2025-02-25 Thread Sean Christopherson
On Tue, Feb 25, 2025, Yan Zhao wrote: > On Mon, Feb 24, 2025 at 03:55:39PM -0800, Sean Christopherson wrote: > > 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. c

Re: [PATCH 4/7] KVM: x86: Don't load/put vCPU when unloading its MMU during teardown

2025-02-24 Thread Yan Zhao
On Mon, Feb 24, 2025 at 03:55:39PM -0800, Sean Christopherson wrote: > 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 load

[PATCH 4/7] KVM: x86: Don't load/put vCPU when unloading its MMU during teardown

2025-02-24 Thread Sean Christopherson
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 --- arch/x86/kvm/x86.c | 9 +---