diff mbox

[kvmtool,1/3] arm/gic: remove extra 64K from ITS allocation

Message ID 20180425100945.19171-2-andre.przywara@arm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andre Przywara April 25, 2018, 10:09 a.m. UTC
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>
---
 arm/gic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/arm/gic.c b/arm/gic.c
index aca0b939..dd4d747d 100644
--- a/arm/gic.c
+++ b/arm/gic.c
@@ -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;