ARM: KVM: vgic: Bump VGIC_NR_IRQS to 256
authorChristoffer Dall <christoffer.dall@linaro.org>
Thu, 29 Aug 2013 10:08:25 +0000 (11:08 +0100)
committerGleb Natapov <gleb@redhat.com>
Fri, 30 Aug 2013 13:12:39 +0000 (16:12 +0300)
The Versatile Express TC2 board, which we use as our main emulated
platform in QEMU, defines 160+32 == 192 interrupts, so limiting the
number of interrupts to 128 is not quite going to cut it for real board
emulation.

Note that this didn't use to be a problem because QEMU was buggy and
only defined 128 interrupts until recently.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
include/kvm/arm_vgic.h

index 343744e4809c17f6c93269c1070edfd43c7575ee..7e2d15837b02ca36b9ae6b9beb4bb368f2fa02bc 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/types.h>
 #include <linux/irqchip/arm-gic.h>
 
-#define VGIC_NR_IRQS           128
+#define VGIC_NR_IRQS           256
 #define VGIC_NR_SGIS           16
 #define VGIC_NR_PPIS           16
 #define VGIC_NR_PRIVATE_IRQS   (VGIC_NR_SGIS + VGIC_NR_PPIS)