aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2018-04-25 11:09:44 +0100
committerWill Deacon <will.deacon@arm.com>2018-05-23 13:21:58 +0100
commita43b08e86842a95391a3d18f734fe36c51236ef5 (patch)
tree5981280fdd6ebf10a72a1667a6b3b36526e21b22
parenta5d36dd12d40380024e4c905f11b43a55fd2523b (diff)
downloadkvmtool-a43b08e86842a95391a3d18f734fe36c51236ef5.tar.gz
arm/gic: avoid GICv2m MMIO frame overlap
Currently we accidentally overlap the GICv2m MMIO frame with the CPU interface region. Fix this by moving the v2m frame below the CPUI region. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--arm/gic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arm/gic.c b/arm/gic.c
index dd4d747d..238a75c7 100644
--- a/arm/gic.c
+++ b/arm/gic.c
@@ -224,7 +224,7 @@ int gic__create(struct kvm *kvm, enum irqchip_type type)
switch (type) {
case IRQCHIP_GICV2M:
gic_msi_size = KVM_VGIC_V2M_SIZE;
- gic_msi_base = ARM_GIC_DIST_BASE - gic_msi_size;
+ gic_msi_base = ARM_GIC_CPUI_BASE - gic_msi_size;
break;
case IRQCHIP_GICV2:
break;