qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Alistair Francis <alistair23@gmail.com>,
	Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH 2/2] hw/riscv/virt.c: change default CPU to 'max'
Date: Thu, 24 Apr 2025 12:00:58 +0200	[thread overview]
Message-ID: <9d2816f1-c4e1-4da0-bcb7-fd2c4f4adec4@linaro.org> (raw)
In-Reply-To: <CAKmqyKNMUU3brR++stxae1VmSW2eJLRGpxOBr4+FJWjde3Yt4A@mail.gmail.com>

On 7/4/25 01:31, Alistair Francis wrote:
> On Sat, Apr 5, 2025 at 9:02 AM Richard Henderson
> <richard.henderson@linaro.org> wrote:
>>
>> On 4/4/25 08:27, Daniel Henrique Barboza wrote:
>>> Using 'max' as
>>> default CPU is done by other QEMU archs like aarch64 so we'll be more
>>> compatible with everyone else.
>>
>> This isn't true.  qemu-system-aarch64 -M virt defaults to cortex-a15 (for hysterical
>> raisins), which is completely and totally useless.  Which means that one must always pass
>> a -cpu option to qemu-system-aarch64.
>>
>> Moreover, -cpu max has zero migration guarantees, so anyone who wants to be able to
>> reliably migrate is encouraged to use a real cpu model.
>>
>> I suppose, for throwaway VMs, -cpu max is a decent default.  But there's a lot to be said
>> for not specifying a default at all.
> 
> I agree. If we aren't going to specify a default machine, why specify
> a default CPU?
> 
> It probably makes sense to deprecate the default CPU for non-vendor
> machines and then force users to pick their own CPU. That should start
> in 10.1 so it's a release offset from the removal of the default
> machine.

IMHO this is the sanest things to do.

> Then maybe think about even removing rv32/rv64 CPUs and push people to
> the profiles, as it's a lot clearer what they are getting.
> 
> Alistair
> 
>>
>>
>> r~
>>
> 



  reply	other threads:[~2025-04-24 10:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-04 15:27 [PATCH 0/2] hw/riscv/virt.c: change default CPU to 'max' Daniel Henrique Barboza
2025-04-04 15:27 ` [PATCH 1/2] target/riscv/tcg: make 'max' cpu rva23s64 compliant Daniel Henrique Barboza
2025-04-06 23:26   ` Alistair Francis
2025-04-04 15:27 ` [PATCH 2/2] hw/riscv/virt.c: change default CPU to 'max' Daniel Henrique Barboza
2025-04-04 23:01   ` Richard Henderson
2025-04-06 23:31     ` Alistair Francis
2025-04-24 10:00       ` Philippe Mathieu-Daudé [this message]
2025-04-24  8:20   ` Andrew Jones
2025-05-05 22:46 ` [PATCH 0/2] " Daniel Henrique Barboza
2025-05-19  0:19   ` Alistair Francis
2025-05-20  6:16     ` David Abdurachmanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9d2816f1-c4e1-4da0-bcb7-fd2c4f4adec4@linaro.org \
    --to=philmd@linaro.org \
    --cc=alistair23@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).