KVM: arm64: Move early handlers to per-EC handlers
authorMarc Zyngier <maz@kernel.org>
Sun, 10 Oct 2021 14:56:28 +0000 (15:56 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 11 Oct 2021 13:57:28 +0000 (14:57 +0100)
commit8fb2046180a0ad347f2e5bcae760dca67e65aa73
tree140bf46595c4b47e5a5bc295e68fb587c1e2f71a
parentcc1e6fdfa92b82902883b70dafa729d3bd427b80
KVM: arm64: Move early handlers to per-EC handlers

Simplify the early exception handling by slicing the gigantic decoding
tree into a more manageable set of functions, similar to what we have
in handle_exit.c.

This will also make the structure reusable for pKVM's own early exit
handling.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://lore.kernel.org/r/20211010145636.1950948-4-tabba@google.com
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/hyp/nvhe/switch.c
arch/arm64/kvm/hyp/vhe/switch.c