On 26/3/24 16:48, Michael Tokarev wrote:
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:
https://lore.kernel.org/qemu-devel/604bf457-23a7-4d06-b59f-a7b46945c...@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 <m...@tls.msk.ru>
Signed-off-by: Philippe Mathieu-Daudé <phi...@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.
No crash here, what is your base commit?
./qemu-system-x86_64
qemu-system-x86_64: No machine specified, and there is no default
Use -machine help to list supported machines
$ ./qemu-system-x86_64 -M help
Supported machines are:
microvm microvm (i386)
none empty machine
$
/mjt