]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d03e60f17f20f7d3c682b32724b2a4727a8bc0c
tree7bef6427187b2bb2349ae44f935cf94ab64247fb
parent526f55a69409dad422059ec9e9b2539993fdd1f2
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