aboutsummaryrefslogtreecommitdiff
path: root/hw/i386/microvm.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-09-15 14:08:58 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-09-17 14:16:19 +0200
commit55c4b069973196b1d9089162e31f5bd7d9f17630 (patch)
treeae92aba74414dfd66c3a3377753271944d80e212 /hw/i386/microvm.c
parent3b98c65f75c016d317f70b8b47c86044d0260d53 (diff)
downloadqemu-55c4b069973196b1d9089162e31f5bd7d9f17630.zip
qemu-55c4b069973196b1d9089162e31f5bd7d9f17630.tar.gz
qemu-55c4b069973196b1d9089162e31f5bd7d9f17630.tar.bz2
microvm/acpi: use GSI 16-23 for virtio
With ACPI enabled and IO-APIC being properly declared in the ACPI tables we can use interrupt lines 16-23 for virtio and avoid shared interrupts. With acpi disabled we continue to use lines 5-12. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Sergio Lopez <slp@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Message-id: 20200915120909.20838-11-kraxel@redhat.com
Diffstat (limited to 'hw/i386/microvm.c')
-rw-r--r--hw/i386/microvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/microvm.c b/hw/i386/microvm.c
index e1b86da..ca0c998 100644
--- a/hw/i386/microvm.c
+++ b/hw/i386/microvm.c
@@ -125,7 +125,7 @@ static void microvm_devices_init(MicrovmMachineState *mms)
kvmclock_create();
- mms->virtio_irq_base = 5;
+ mms->virtio_irq_base = x86_machine_is_acpi_enabled(x86ms) ? 16 : 5;
for (i = 0; i < VIRTIO_NUM_TRANSPORTS; i++) {
sysbus_create_simple("virtio-mmio",
VIRTIO_MMIO_BASE + i * 512,