arm/arm64: KVM: force alignment of VGIC dist/CPU/redist addresses
authorAndre Przywara <andre.przywara@arm.com>
Tue, 13 Jan 2015 12:02:13 +0000 (12:02 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 20 Jan 2015 17:25:33 +0000 (18:25 +0100)
commit4fa96afd94a9bb29135d6e2e8fdb527e58f4fd5c
treeaa982135e881964a54d5e6e7f85563393abefb3d
parentac3d373564d9744068d867a0eb16da2ff8d5ee9d
arm/arm64: KVM: force alignment of VGIC dist/CPU/redist addresses

Although the GIC architecture requires us to map the MMIO regions
only at page aligned addresses, we currently do not enforce this from
the kernel side.
Restrict any vGICv2 regions to be 4K aligned and any GICv3 regions
to be 64K aligned. Document this requirement.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Documentation/virtual/kvm/devices/arm-vgic.txt
virt/kvm/arm/vgic.c