]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Kill topup_memcache from kvm_s2_fault
authorMarc Zyngier <maz@kernel.org>
Mon, 9 Mar 2026 11:52:40 +0000 (11:52 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 28 Mar 2026 11:29:41 +0000 (11:29 +0000)
commit1a3cd7cb5547979f96ec2a0920b8e39939c58db3
tree754513d80113b9c0b2607e0b2456cb2663b99a9b
parentc0d699915a835364b1c8d1eca11e11e7b82f0705
KVM: arm64: Kill topup_memcache from kvm_s2_fault

The topup_memcache field can be easily replaced by the equivalent
conditions, and the resulting code is not much worse. While at it,
split prepare_mmu_memcache() into get/topup helpers, which makes
the code more readable.

Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/mmu.c