Using nr_irqs minus nr_irqs_gsi is misleading, as GSI interrupts are not allocated unless requested by the hardware domain, so a hardware domain could not use any GSI (or just one for the ACPI SCI), and hence (almost) all nr_irqs will be available for MSI(-X) usage.
No functional difference, just affects the printed message. Signed-off-by: Roger Pau Monné <roger....@citrix.com> --- xen/arch/x86/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c index b64d18c450..7f75ec8bcc 100644 --- a/xen/arch/x86/irq.c +++ b/xen/arch/x86/irq.c @@ -434,7 +434,7 @@ int __init init_irq_data(void) nr_irqs = 16; printk(XENLOG_INFO "IRQ limits: %u GSI, %u MSI/MSI-X\n", - nr_irqs_gsi, nr_irqs - nr_irqs_gsi); + nr_irqs_gsi, nr_irqs); for ( vector = 0; vector < X86_NR_VECTORS; ++vector ) this_cpu(vector_irq)[vector] = INT_MIN; -- 2.36.1