[PATCH v6 14/38] KVM: arm64: Provide __flush_dcache_area at EL2
Will Deacon
will at kernel.org
Mon Mar 22 11:25:53 GMT 2021
On Fri, Mar 19, 2021 at 10:01:22AM +0000, Quentin Perret wrote:
> 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 at google.com>
> ---
> arch/arm64/include/asm/kvm_cpufeature.h | 2 ++
> arch/arm64/kvm/hyp/nvhe/Makefile | 3 ++-
> arch/arm64/kvm/hyp/nvhe/cache.S | 13 +++++++++++++
> arch/arm64/kvm/hyp/nvhe/hyp-smp.c | 6 ++++++
> arch/arm64/kvm/sys_regs.c | 1 +
> 5 files changed, 24 insertions(+), 1 deletion(-)
> create mode 100644 arch/arm64/kvm/hyp/nvhe/cache.S
Acked-by: Will Deacon <will at kernel.org>
Will
More information about the linux-arm-kernel
mailing list