From 1b2802c49f60f9de2c24afb5883dafa60d3f3345 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 16 Oct 2020 13:38:31 +0200 Subject: x86: make pci irqs runtime configurable Add a variable to x86 machine state instead of hard-coding the PCI interrupts. Signed-off-by: Gerd Hoffmann Message-id: 20201016113835.17465-4-kraxel@redhat.com --- hw/i386/acpi-common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hw/i386/acpi-common.c') diff --git a/hw/i386/acpi-common.c b/hw/i386/acpi-common.c index ab9b005..1584abb 100644 --- a/hw/i386/acpi-common.c +++ b/hw/i386/acpi-common.c @@ -115,8 +115,7 @@ void acpi_build_madt(GArray *table_data, BIOSLinker *linker, if (has_pci) { for (i = 1; i < 16; i++) { -#define ACPI_BUILD_PCI_IRQS ((1<<5) | (1<<9) | (1<<10) | (1<<11)) - if (!(ACPI_BUILD_PCI_IRQS & (1 << i))) { + if (!(x86ms->pci_irq_mask & (1 << i))) { /* No need for a INT source override structure. */ continue; } -- cgit v1.1