I know that not supporting ACPI in microvm is intentional. If you still don't want ACPI this is perfectly fine, you can use the usual -no-acpi switch to toggle ACPI support.
These are the advantages you are going to loose then: (1) virtio-mmio device discovery without command line hacks (tweaking the command line is a problem when not using direct kernel boot). (2) Better IO-APIC support, we can use IRQ lines 16-23. (3) ACPI power button (aka powerdown request) works. (4) machine poweroff (aka S5 state) works. Together with seabios patches for virtio-mmio support this allows to boot standard fedora images (cloud, coreos, workstation live) with the microvm machine type. git branch for testing (including updated seabios): https://git.kraxel.org/cgit/qemu/log/?h=sirius/microvm changes in v2: * some acpi cleanups are an separate patch series now. * switched to hw reduced acpi & generic event device. * misc fixes here and there. changes in v3: * depeds on "[PATCH v6 00/16] acpi: i386 tweaks" series. * renamed qboot to qboot.bin * updated seabios to master branch snapshot. - this version boots fine with rtc=off * generic event device tweaks (Igor's comments). * make SMP work. * add RfC patches to turn off acpi by default for microvm. * misc fixes here and there. cheers, Gerd Gerd Hoffmann (22): microvm: name qboot binary qboot.bin [testing] seabios: update submodule to master snapshot [testing] seabios: update config & build rules [testing] seabios: update binaries to master snapshot acpi: make build_madt() more generic. acpi: create acpi-common.c and move madt code acpi: madt: skip pci override on pci-less systems. acpi: fadt: add hw-reduced sleep register support acpi: ged: rename event memory region acpi: ged: add control regs acpi: ged: add x86 device variant. acpi: move acpi_dsdt_add_power_button() to ged x86: coldplug cpus microvm: use 2G split unconditionally microvm: make virtio irq base runtime configurable microvm/acpi: add minimal acpi support microvm/acpi: add acpi_dsdt_add_virtio() for x86 microvm/acpi: use GSI 16-23 for virtio microvm/acpi: use seabios with acpi=on microvm/acpi: disable virtio-mmio cmdline hack [RfC] acpi: add per machine type acpi default [RfC] acpi: flip default to off for microvm hw/i386/acpi-common.h | 15 ++ hw/i386/acpi-microvm.h | 6 + include/hw/acpi/acpi-defs.h | 2 + include/hw/acpi/generic_event_device.h | 14 +- include/hw/i386/microvm.h | 11 +- include/hw/i386/x86.h | 1 + hw/acpi/aml-build.c | 4 +- hw/acpi/generic_event_device.c | 68 ++++++- hw/arm/virt-acpi-build.c | 8 - hw/i386/acpi-build.c | 126 +------------ hw/i386/acpi-common.c | 156 +++++++++++++++++ hw/i386/acpi-microvm.c | 234 +++++++++++++++++++++++++ hw/i386/generic_event_device_x86.c | 36 ++++ hw/i386/microvm.c | 78 ++++++--- hw/i386/x86.c | 32 +++- hw/i386/Kconfig | 1 + hw/i386/Makefile.objs | 3 + pc-bios/bios-256k.bin | Bin 262144 -> 262144 bytes pc-bios/bios-microvm.bin | Bin 65536 -> 131072 bytes pc-bios/bios.bin | Bin 131072 -> 131072 bytes pc-bios/qboot.bin | Bin 0 -> 65536 bytes roms/Makefile | 11 +- roms/config.seabios-128k | 3 + roms/config.seabios-microvm | 26 +++ roms/seabios | 2 +- 25 files changed, 664 insertions(+), 173 deletions(-) create mode 100644 hw/i386/acpi-common.h create mode 100644 hw/i386/acpi-microvm.h create mode 100644 hw/i386/acpi-common.c create mode 100644 hw/i386/acpi-microvm.c create mode 100644 hw/i386/generic_event_device_x86.c create mode 100644 pc-bios/qboot.bin create mode 100644 roms/config.seabios-microvm -- 2.18.4