]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Only clean the dcache on translation fault
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 23 Oct 2017 16:11:20 +0000 (17:11 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 8 Jan 2018 14:20:45 +0000 (15:20 +0100)
commit8eb4541cfab20789e2bbde0601531d971c4634f0
tree2bfc38bb928ea06772b9fde4933a4e1a47a9a189
parenta2165717375a7a078bc5ae5ef2adeb24a3f5e540
KVM: arm/arm64: Only clean the dcache on translation fault

The only case where we actually need to perform a dcache maintenance
is when we map the page for the first time, and subsequent permission
faults do not require cache maintenance. Let's make it conditional
on not being a permission fault (and thus a translation fault).

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>
virt/kvm/arm/mmu.c