How to use microVM as a machine type?

Hi, Recently I'm hitting a bug related to edk2 that sometimes boot up can be very slow (before loading the bootloader): https://github.com/tianocore/edk2/issues/10765 It looks like the cause is the related to flash IOs. So I want to try using microVM machine type, as it's json file describes the device mapping is "memory", which should work around the slow boot. But I'm unable to setup a machine using microVM machine type in virtual-manager. And manually editing the xml file doesn't let me go any further, as VMM creates a default xml with ACPI feature, which is not supported by microVM. So I'm wondering, what's the proper way to use microVM machine type inside libvirt? Thanks, Qu

On Tue, Apr 08, 2025 at 17:37:06 +0930, Qu Wenruo via Users wrote:
Hi,
Recently I'm hitting a bug related to edk2 that sometimes boot up can be very slow (before loading the bootloader):
https://github.com/tianocore/edk2/issues/10765
It looks like the cause is the related to flash IOs.
So I want to try using microVM machine type, as it's json file describes the device mapping is "memory", which should work around the slow boot.
But I'm unable to setup a machine using microVM machine type in virtual-manager. And manually editing the xml file doesn't let me go any further, as VMM creates a default xml with ACPI feature, which is not supported by microVM.
So I'm wondering, what's the proper way to use microVM machine type inside libvirt?
Microvm is not really supported. I did once send a patch to have it for completness but the fact that it uses memory mapping and not really widely used made me drop the patch. You can read the conversation at: https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/message/Z46G...
participants (2)
-
Peter Krempa
-
Qu Wenruo