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>
Thu, 2 Oct 2014 15:18:49 +0000 (17:18 +0200)
commitc2ca19e2dc3f71d003a4ab691462d1df6974d00f
tree9966980a371afd8784437d56aeb43bcdb7a1a86d
parent332075bc83a401bc1a4deb1caeea1d45bd340866
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>
(cherry picked from commit b88657674d39fc2127d62d0de9ca142e166443c8)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/mmu.c