]> asedeno.scripts.mit.edu Git - linux.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)
commit4fee94736603cd6fd83c1ea1ee0388d1d2dbe11b
tree733ee370f17b3840a30d9f11e162eb4a4786cf69
parenta15f693935a9f1fec8241cafaca27be4483d4464
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