KVM: arm64: GICv3: mandate page-aligned GICV region
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 31 Jul 2014 10:42:18 +0000 (11:42 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:19:07 +0000 (17:19 +0200)
commit099fcd90255453a5976a42c5f9421a6a7ad7ce3d
tree7e6a073d9a4cf69ed6919cd4bd1e69c34472fa73
parent45104cfeec66c1314a2ae5e4cb436a9ace725e59
KVM: arm64: GICv3: mandate page-aligned GICV region

Just like GICv2 was fixed in 63afbe7a0ac1
(kvm: arm64: vgic: fix hyp panic with 64k pages on juno platform),
mandate the GICV region to be both aligned on a page boundary and
its size to be a multiple of page size.

This prevents a guest from being able to poke at regions where we
have no idea what is sitting there.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit fb3ec67942e92e5713e05b7691b277d0a0c0575d)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic-v3.c