ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping
authorKim Phillips <kim.phillips@linaro.org>
Thu, 26 Jun 2014 00:45:51 +0000 (01:45 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 11 Jul 2014 11:46:53 +0000 (04:46 -0700)
commitb88657674d39fc2127d62d0de9ca142e166443c8
tree7bef6427187b2bb2349ae44f935cf94ab64247fb
parentdf6ce24f2ee485c4f9a5cb610063a5eb60da8267
ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping

A userspace process can map device MMIO memory via VFIO or /dev/mem,
e.g., for platform device passthrough support in QEMU.

During early development, we found the PAGE_S2 memory type being used
for MMIO mappings.  This patch corrects that by using the more strongly
ordered memory type for device MMIO mappings: PAGE_S2_DEVICE.

Signed-off-by: Kim Phillips <kim.phillips@linaro.org>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/mmu.c