]> 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)
commit0e98b7af03c04222689ddb40c301c5fd3b8bba96
tree733ee370f17b3840a30d9f11e162eb4a4786cf69
parent6a8b21195dc225c6129b53f31fd823c3cb50542e
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