26.03.2024 16:14, Philippe Mathieu-Daudé wrote:
Add a config file to build a binary only containing the
microvm machine, inspired by a discussion on the list:
604bf457-23a7-4d06-b59f-a7b46945c626@tls.msk.ru/">https://lore.kernel.org/qemu-devel/604bf457-23a7-4d06-b59f-a7b46945c626@tls.msk.ru/
As suggested in commit d1d5e9eefd ("configure: allow the
selection of alternate config in the build"), it can be
built using:
$ ../configure --without-default-features \
--target-list=x86_64-softmmu \
--with-devices-x86_64=microvm
Inspired-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
configs/devices/x86_64-softmmu/microvm.mak | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 configs/devices/x86_64-softmmu/microvm.mak
This is not enough. This step is good already, but it lacks default
machine
type selection. In debian we carry a tiny patch to make microvm the
default
machine type or else it crashes at startup not finding "pc" machine or one
of its required devices.