aboutsummaryrefslogtreecommitdiff
path: root/hw/i386/microvm.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-10-16 13:38:32 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-10-21 11:36:05 +0200
commit64b070dad39dcae2fe06f498c0536df9a54e4beb (patch)
treeac075e4386b848272c0207fd854441bf4e2857fc /hw/i386/microvm.c
parent1b2802c49f60f9de2c24afb5883dafa60d3f3345 (diff)
microvm: set pci_irq_mask
Makes sure the PCI interrupt overrides are added to the APIC table in case PCIe is enabled. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20201016113835.17465-5-kraxel@redhat.com
Diffstat (limited to 'hw/i386/microvm.c')
-rw-r--r--hw/i386/microvm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/i386/microvm.c b/hw/i386/microvm.c
index 68a7f424ac..c60ba4e840 100644
--- a/hw/i386/microvm.c
+++ b/hw/i386/microvm.c
@@ -210,6 +210,12 @@ static void microvm_devices_init(MicrovmMachineState *mms)
mms->gpex.ecam.size = PCIE_ECAM_SIZE;
mms->gpex.irq = PCIE_IRQ_BASE;
create_gpex(mms);
+ x86ms->pci_irq_mask = ((1 << (PCIE_IRQ_BASE + 0)) |
+ (1 << (PCIE_IRQ_BASE + 1)) |
+ (1 << (PCIE_IRQ_BASE + 2)) |
+ (1 << (PCIE_IRQ_BASE + 3)));
+ } else {
+ x86ms->pci_irq_mask = 0;
}
if (mms->pic == ON_OFF_AUTO_ON || mms->pic == ON_OFF_AUTO_AUTO) {