Commit a5d36dd1 authored by Andre Przywara's avatar Andre Przywara Committed by Will Deacon
Browse files

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's avatarAndre Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 0e1882a4
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment