]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Optimize early exit checks in kvm_s2_fault_pin_pfn()
authorFuad Tabba <tabba@google.com>
Fri, 6 Mar 2026 14:02:30 +0000 (14:02 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 28 Mar 2026 11:29:40 +0000 (11:29 +0000)
commit3456943e8786d56aa2bd3f99e9ad2d735a9879c8
tree4e55a331907f3886199fadefdea3a1082debd662
parent975bad4bb21e4eea7ecc0f32f4cbbb91a9c8d48f
KVM: arm64: Optimize early exit checks in kvm_s2_fault_pin_pfn()

Optimize the early exit checks in kvm_s2_fault_pin_pfn by grouping all
error responses under the generic is_error_noslot_pfn check first,
avoiding unnecessary branches in the hot path.

Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/mmu.c