KVM: arm64: Provide __flush_dcache_area at EL2
authorQuentin Perret <qperret@google.com>
Fri, 19 Mar 2021 10:01:22 +0000 (10:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Mar 2021 12:01:20 +0000 (12:01 +0000)
commitd460df12926825a3926da91f054f9f11f88bb33e
treef294c849c7ae83bc35fb2fca671e281cc65bd8d4
parent7a440cc78392c3caf805ef0afc7ead031e4d0830
KVM: arm64: Provide __flush_dcache_area at EL2

We will need to do cache maintenance at EL2 soon, so compile a copy of
__flush_dcache_area at EL2, and provide a copy of arm64_ftr_reg_ctrel0
as it is needed by the read_ctr macro.

Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210319100146.1149909-15-qperret@google.com
arch/arm64/include/asm/kvm_cpufeature.h
arch/arm64/kvm/hyp/nvhe/Makefile
arch/arm64/kvm/hyp/nvhe/cache.S [new file with mode: 0644]
arch/arm64/kvm/hyp/nvhe/hyp-smp.c
arch/arm64/kvm/sys_regs.c