Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Christoffer Dall <[email protected]> Reviewed-by: Catalin Marinas <[email protected]>
- Loading branch information