]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Add invalidate_icache_range helper
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 23 Oct 2017 16:11:16 +0000 (17:11 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 8 Jan 2018 14:20:43 +0000 (15:20 +0100)
commit17d47d113a51972a0d7cbf88fc7dc930e0390186
tree733ee370f17b3840a30d9f11e162eb4a4786cf69
parentc5b66b443869107fec054df03155b7b4d5367329
arm64: KVM: Add invalidate_icache_range helper

We currently tightly couple dcache clean with icache invalidation,
but KVM could do without the initial flush to PoU, as we've
already flushed things to PoC.

Let's introduce invalidate_icache_range which is limited to
invalidating the icache from the linear mapping (and thus
has none of the userspace fault handling complexity), and
wire it in KVM instead of flush_icache_range.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/include/asm/assembler.h
arch/arm64/include/asm/cacheflush.h
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/mm/cache.S