From: Marc Zyngier Date: Tue, 14 Jan 2014 19:13:10 +0000 (+0000) Subject: ARM: KVM: force cache clean on page fault when caches are off X-Git-Tag: v3.15-rc1~118^2~34^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=159793001d7d85af17855630c94f0a176848e16b;p=pandora-kernel.git ARM: KVM: force cache clean on page fault when caches are off In order for a guest with caches disabled to observe data written contained in a given page, we need to make sure that page is committed to memory, and not just hanging in the cache (as guest accesses are completely bypassing the cache until it decides to enable it). For this purpose, hook into the coherent_cache_guest_page function and flush the region if the guest SCTLR register doesn't show the MMU and caches as being enabled. Signed-off-by: Marc Zyngier Reviewed-by: Christoffer Dall Reviewed-by: Catalin Marinas --- Reading git-diff-tree failed