arm, arm64: KVM: handle potential incoherency of readonly memslots
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 17 Nov 2014 14:58:53 +0000 (14:58 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 25 Nov 2014 13:57:27 +0000 (13:57 +0000)
commit849260c72c6b8bd53850cb00b80027db3a273c2c
treece059d25111bf862c2da787adecf2d765ec0af01
parent840f4bfbe03f1ce94ade8fdf84e8cd925ef15a48
arm, arm64: KVM: handle potential incoherency of readonly memslots

Readonly memslots are often used to implement emulation of ROMs and
NOR flashes, in which case the guest may legally map these regions as
uncached.
To deal with the incoherency associated with uncached guest mappings,
treat all readonly memslots as incoherent, and ensure that pages that
belong to regions tagged as such are flushed to DRAM before being passed
to the guest.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/mmu.c