vmm: start with irq 1 for virtio-mmio Previously we started with irq 0, and that worked with Linux 5.3. With 5.16, it no longer works. Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
diff --git a/tests/vmm/vmrunkernel.c b/tests/vmm/vmrunkernel.c index 97b49b6..e13cace 100644 --- a/tests/vmm/vmrunkernel.c +++ b/tests/vmm/vmrunkernel.c
@@ -656,9 +656,8 @@ /* Append all the virtio mmio base addresses. */ - /* Since the lower number irqs are no longer being used, the - * irqs can now be assigned starting from 0. */ - vm->virtio_mmio_devices[i]->irq = i; + /* Linux barfs if you give it IRQ 0 */ + vm->virtio_mmio_devices[i]->irq = i + 1; len = snprintf(cmdlinep, cmdlinesz, "\n virtio_mmio.device=1K@0x%llx:%lld", vm->virtio_mmio_devices[i]->addr,