KVM: arm64: Move host EL1 code out of hyp/ directory
authorWill Deacon <will@kernel.org>
Thu, 2 Dec 2021 17:10:48 +0000 (17:10 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 6 Dec 2021 08:37:03 +0000 (08:37 +0000)
commit9429f4b0412d05243237c7695c59d0a7b1174492
treee125b9533b84252314afcf39bed925cc40c3f497
parented4ed15d571065eb66ea718d7f6050553586417d
KVM: arm64: Move host EL1 code out of hyp/ directory

kvm/hyp/reserved_mem.c contains host code executing at EL1 and is not
linked into the hypervisor object. Move the file into kvm/pkvm.c and
rework the headers so that the definitions shared between the host and
the hypervisor live in asm/kvm_pkvm.h.

Signed-off-by: Will Deacon <will@kernel.org>
Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211202171048.26924-4-will@kernel.org
arch/arm64/include/asm/kvm_pkvm.h [new file with mode: 0644]
arch/arm64/kvm/Makefile
arch/arm64/kvm/hyp/Makefile
arch/arm64/kvm/hyp/include/nvhe/mm.h
arch/arm64/kvm/hyp/nvhe/mem_protect.c
arch/arm64/kvm/hyp/nvhe/mm.c
arch/arm64/kvm/hyp/nvhe/setup.c
arch/arm64/kvm/pkvm.c [moved from arch/arm64/kvm/hyp/reserved_mem.c with 94% similarity]