On 28/06/19 13:53, Sergio Lopez wrote: > qemu-system-x86_64 -M microvm,legacy -m 512m -smp 2 \ > -kernel vmlinux -append "console=ttyS0 root=/dev/vda" \ > -nodefaults -no-user-config \ > -drive id=test,file=test.img,format=raw,if=none \ > -device virtio-blk-device,drive=test \ > -netdev tap,id=tap0,script=no,downscript=no \ > -device virtio-net-device,netdev=tap0 \ > -serial stdio
I think the "non-legacy" mode can be obtained from the "legacy" one just with -nodefaults (which all sane management should be using anyway), so legacy=on can actually be the default. :) I think this is interesting. I'd love to have it optionally provide a device tree as well. It's not very common on x86 and most distro kernels don't support device tree, but it would provide a more out-of-the-box experience and it may even be a drop-in replacement for q35 or pc as far as Kata is concerned. Paolo