summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm/hyp/nvhe/mm.c
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2021-12-02 17:10:48 +0000
committerMarc Zyngier <maz@kernel.org>2021-12-06 08:37:03 +0000
commit9429f4b0412d05243237c7695c59d0a7b1174492 (patch)
treee125b9533b84252314afcf39bed925cc40c3f497 /arch/arm64/kvm/hyp/nvhe/mm.c
parented4ed15d571065eb66ea718d7f6050553586417d (diff)
downloadlinux-stable-9429f4b0412d05243237c7695c59d0a7b1174492.tar.gz
linux-stable-9429f4b0412d05243237c7695c59d0a7b1174492.tar.bz2
linux-stable-9429f4b0412d05243237c7695c59d0a7b1174492.zip
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
Diffstat (limited to 'arch/arm64/kvm/hyp/nvhe/mm.c')
-rw-r--r--arch/arm64/kvm/hyp/nvhe/mm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kvm/hyp/nvhe/mm.c b/arch/arm64/kvm/hyp/nvhe/mm.c
index 2fabeceb889a..9e0ff5a700dd 100644
--- a/arch/arm64/kvm/hyp/nvhe/mm.c
+++ b/arch/arm64/kvm/hyp/nvhe/mm.c
@@ -8,6 +8,7 @@
#include <asm/kvm_hyp.h>
#include <asm/kvm_mmu.h>
#include <asm/kvm_pgtable.h>
+#include <asm/kvm_pkvm.h>
#include <asm/spectre.h>
#include <nvhe/early_alloc.h>