]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: account pKVM reclaim against the VM mm
authorBradley Morgan <include@grrlz.net>
Sun, 21 Jun 2026 21:31:55 +0000 (21:31 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 22 Jun 2026 09:48:08 +0000 (10:48 +0100)
commitd098bb75d14fde2f12155f1a95ec0168160867ce
tree6367155790867301f10d5a2d81e36ddce38045fe
parentcbe2278aa3dd6832c544782c6cfed1fbc1f71a42
KVM: arm64: account pKVM reclaim against the VM mm

Protected guest faults charge long term pins to the VM's mm. Teardown
can run later from file release, where current->mm may be unrelated.

Drop the charge from kvm->mm instead.

Fixes: 4e6e03f9eadd ("KVM: arm64: Hook up reclaim hypercall to pkvm_pgtable_stage2_destroy()")
Signed-off-by: Bradley Morgan <include@grrlz.net>
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Tested-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20260621213155.6019-1-include@grrlz.net
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
arch/arm64/kvm/pkvm.c