qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] hw/arm: set machine 'virt' as default


From: Alex Bennée
Subject: Re: [Qemu-devel] [PATCH] hw/arm: set machine 'virt' as default
Date: Wed, 18 Sep 2019 21:33:57 +0100
User-agent: mu4e 1.3.4; emacs 27.0.50

Dan Streetman <address@hidden> writes:

> From: Dan Streetman <address@hidden>
>
> There is currently no default machine type for arm so one must be specified
> with --machine.  This sets the 'virt' machine type as default.

We should really have a FAQ entry for why we don't have a default for
ARM. In short unlike PC's every ARM device is different so it pays to be
precise about what you want when you invoke QEMU. Because any given
kernel/image is only likely to work on the machine it's built for.

Why is virt special? It's just one of the many machines we emulate and
while it's probably the most popular these days for "something that
boots a Linux distro" why not -machine sba (when that comes)?

>
> Signed-off-by: Dan Streetman <address@hidden>
> ---
>  hw/arm/virt.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index d74538b021..e9fe888ca2 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -78,6 +78,7 @@
>          mc->desc = "QEMU " # major "." # minor " ARM Virtual Machine"; \
>          if (latest) { \
>              mc->alias = "virt"; \
> +            mc->is_default = 1; \
>          } \
>      } \
>      static const TypeInfo machvirt_##major##_##minor##_info = { \


--
Alex Bennée



reply via email to

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