qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH-for-9.1] hw/i386: Add a config to only build the microvm mach


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH-for-9.1] hw/i386: Add a config to only build the microvm machine
Date: Tue, 26 Mar 2024 16:58:21 +0100
User-agent: Mozilla Thunderbird

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:
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.

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]