]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Apr 2015 09:15:07 +0000 (11:15 +0200)
commit714b16417725d1adc0b8d2010c5cbb4c8df5e371
tree05d15a0b49d32e7cae5b1444cb9739aba412ff4a
parentae4760d4e450dff0a8880d91d7b546a818c619a7
ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping

commit b88657674d39fc2127d62d0de9ca142e166443c8 upstream.

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>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/kvm/mmu.c