KVM: arm64: pkvm: Drop unnecessary FP/SIMD trap handler
authorOliver Upton <oupton@google.com>
Mon, 9 May 2022 16:25:58 +0000 (16:25 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 10 May 2022 09:58:42 +0000 (10:58 +0100)
commit4d2e469e163ec79340b2f42c2a07838b5ff30686
tree01ba602fc9912dde1df7f677fdeb18f3fb13a295
parentbd61395ae8393f28f4b084702acd6f5f02b1f7c0
KVM: arm64: pkvm: Drop unnecessary FP/SIMD trap handler

The pVM-specific FP/SIMD trap handler just calls straight into the
generic trap handler. Avoid the indirection and just call the hyp
handler directly.

Note that the BUILD_BUG_ON() pattern is repeated in
pvm_init_traps_aa64pfr0(), which is likely a better home for it.

No functional change intended.

Signed-off-by: Oliver Upton <oupton@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220509162559.2387784-2-oupton@google.com
arch/arm64/kvm/hyp/nvhe/switch.c