> qemu-system-x86_64-mircovm binary has no virtio device emulation.

Yeah it is pretty minimal as - after all - this is what it is about.

> $ qemu-system-x86_64-microvm -device ? |grep virtio | grep -v pci
> name "vhost-user-fs-device", bus virtio-bus
> name "virtio-serial-device", bus virtio-bus
> name "vhost-user-vsock-device", bus virtio-bus
> name "vhost-vsock-device", bus virtio-bus

This somewhat intentional as it is what you get with
--without-default-devices which is the root of the microvm thought.
And you also see how the devices that are present match the
competitors in the same space like firecracker - serial/user-fs/vsock
is almost an exact match to that.

> I want to use device emulations on qemu-system-x86_64-microvm,
>   virtconsole
>   virtio-blk-device
>   virtio-net-device
>   virtio-balloon-device
>   virtio-rng-device

I agree that some of them may be in the scope of a microvm.
blk / net / rng - I think those have valid use cases - not too aligned
to firecracker but in a minimal VM.
Balloon IMHO might be too much, OTOH microvms are even more about
density than usual VMs so maybe it is ok.
You see I'm torn ...

Eventually the microvm examples at
  https://github.com/bonzini/qemu/blob/master/docs/system/i386/microvm.rst
use virtio-blk-device and virtio-net-device, so that might suggest
some "agreement" with your request.

OTOH I'm still somewhat afraid that if we add devices with each
request that is valid on its own we end up with another full qemu.
And TBH I'd not even know if there are configure flags to enable those
after --without-default-devices, might be a set of messing with
config-target.h which sounds wrong.

Maybe one should even first start a discussion with Paolo about what
set of devices would be "the right ones" to configure for a microvm
instead of us and maybe others changing it every now and then.

TL;DR I appreciate the bug and discussion but I'm unsure how to
continue on this :-/
Michael do you have a strict opinion on this other than not being 100%
convinced of the microvm approach in the first place?

Reply via email to