diff options
author | Andre Przywara <andre.przywara@arm.com> | 2018-04-25 11:09:43 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-05-23 13:21:58 +0100 |
commit | a5d36dd12d40380024e4c905f11b43a55fd2523b (patch) | |
tree | cf8fd7655e9bddf6912edb0d1fc43eae6a4e8bfc | |
parent | 0e1882a49f81cb15d328ef83a78849c0ea26eecc (diff) | |
download | kvmtool-a5d36dd12d40380024e4c905f11b43a55fd2523b.tar.gz |
arm/gic: remove extra 64K from ITS allocation
The KVM_VGIC_V3_ITS_SIZE macro from the Linux API header file already
covers the doorbell page, so we don't need to add that extra page size
in our code.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | arm/gic.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -229,8 +229,8 @@ int gic__create(struct kvm *kvm, enum irqchip_type type) case IRQCHIP_GICV2: break; case IRQCHIP_GICV3_ITS: - /* We reserve the 64K page with the doorbell as well. */ - gic_msi_size = KVM_VGIC_V3_ITS_SIZE + SZ_64K; + /* The 64K page with the doorbell is included. */ + gic_msi_size = KVM_VGIC_V3_ITS_SIZE; /* fall through */ case IRQCHIP_GICV3: gic_redists_size = kvm->cfg.nrcpus * ARM_GIC_REDIST_SIZE; |