]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46d67df0c0e9a887835c4decbaab63a9b3d1a236
treece059d25111bf862c2da787adecf2d765ec0af01
parenta24d70f9120c3e94886ee076161634ceae8d1eda
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