]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Don't hold 'vm_table_lock' across guest page reclaim
authorWill Deacon <will@kernel.org>
Tue, 31 Mar 2026 15:50:55 +0000 (16:50 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 1 Apr 2026 13:29:06 +0000 (14:29 +0100)
commitbc20692f528b2ac8226bafe5b1db9a1f8be96dbf
tree76f025d890b464c399261c616cda1dcc289d14e3
parent2400696883870ec3fb0fb9925426c62a3383ca36
KVM: arm64: Don't hold 'vm_table_lock' across guest page reclaim

Now that the teardown of a VM cannot be finalised as long as a reference
is held on the VM, rework __pkvm_reclaim_dying_guest_page() to hold a
reference to the dying VM rather than take the global 'vm_table_lock'
during the reclaim operation.

Signed-off-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20260331155056.28220-4-will@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/pkvm.c