arm/arm64: KVM: map MMIO regions at creation time
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 10 Oct 2014 15:00:32 +0000 (17:00 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 13 Oct 2014 10:36:53 +0000 (03:36 -0700)
commit8eef91239e57d2e932e7470879c9a504d5494ebb
tree6ae20eb63e0544a5166fdfd32643d9c1dbecb55b
parent4a513fb009b96cf3d86491e00565367ceec29073
arm/arm64: KVM: map MMIO regions at creation time

There is really no point in faulting in memory regions page by page
if they are not backed by demand paged system RAM but by a linear
passthrough mapping of a host MMIO region. So instead, detect such
regions at setup time and install the mappings for the backing all
at once.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/mmu.c