diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-10-16 13:38:31 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-10-21 11:36:05 +0200 |
commit | 1b2802c49f60f9de2c24afb5883dafa60d3f3345 (patch) | |
tree | edd90999d9b3dba5cf5ae4e86e6061bf69ed2593 /include/hw/i386 | |
parent | e6b5a0718afb2a88b2d4b88ddc250125e994f423 (diff) | |
download | qemu-1b2802c49f60f9de2c24afb5883dafa60d3f3345.zip qemu-1b2802c49f60f9de2c24afb5883dafa60d3f3345.tar.gz qemu-1b2802c49f60f9de2c24afb5883dafa60d3f3345.tar.bz2 |
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 <kraxel@redhat.com>
Message-id: 20201016113835.17465-4-kraxel@redhat.com
Diffstat (limited to 'include/hw/i386')
-rw-r--r-- | include/hw/i386/x86.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/i386/x86.h b/include/hw/i386/x86.h index d5dcf7a..bfa9cb2 100644 --- a/include/hw/i386/x86.h +++ b/include/hw/i386/x86.h @@ -58,6 +58,7 @@ struct X86MachineState { /* CPU and apic information: */ bool apic_xrupt_override; + unsigned pci_irq_mask; unsigned apic_id_limit; uint16_t boot_cpus; unsigned smp_dies; @@ -114,6 +115,7 @@ bool x86_machine_is_acpi_enabled(const X86MachineState *x86ms); /* Global System Interrupts */ #define GSI_NUM_PINS IOAPIC_NUM_PINS +#define ACPI_BUILD_PCI_IRQS ((1<<5) | (1<<9) | (1<<10) | (1<<11)) typedef struct GSIState { qemu_irq i8259_irq[ISA_NUM_IRQS]; |