KVM: arm64: Move __get_fault_info() and co into their own include file
authorMarc Zyngier <maz@kernel.org>
Sun, 10 Oct 2021 14:56:26 +0000 (15:56 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 11 Oct 2021 13:57:27 +0000 (14:57 +0100)
commit7dd9b5a157485ae8c48f76f087b1867ace016613
tree99497f172c4bdb5ed46e4a98fbcc0a8b806f00c8
parent9e1ff307c779ce1f0f810c7ecce3d95bbae40896
KVM: arm64: Move __get_fault_info() and co into their own include file

In order to avoid including the whole of the switching helpers
in unrelated files, move the __get_fault_info() and related helpers
into their own include file.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://lore.kernel.org/r/20211010145636.1950948-2-tabba@google.com
arch/arm64/kvm/hyp/include/hyp/fault.h [new file with mode: 0644]
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/hyp/nvhe/mem_protect.c