qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mark Cave-Ayland <mark.caveayland@nutanix.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: imammedo@redhat.com, philmd@linaro.org, berrange@redhat.com,
	jdenemar@redhat.com, armbru@redhat.com, pbonzini@redhat.com,
	richard.henderson@linaro.org, eduardo@habkost.net,
	mst@redhat.com, marcel.apfelbaum@gmail.com,
	qemu-devel@nongnu.org
Subject: Re: [PATCH v2 2/2] docs/about/deprecated.rst: document new restrictions for isapc CPU models
Date: Fri, 26 Sep 2025 13:26:15 +0100	[thread overview]
Message-ID: <9343fab3-f1e8-4a07-ae15-cc905d4bc42c@nutanix.com> (raw)
In-Reply-To: <CAFEAcA_w1QkHACeb9y6GGUOPunu1YHYVQQwat4zdFWODG3u2Nw@mail.gmail.com>

On 26/09/2025 13:05, Peter Maydell wrote:

> On Thu, 25 Sept 2025 at 17:07, Mark Cave-Ayland
> <mark.caveayland@nutanix.com> wrote:
>>
>> Add a new paragraph in the "Backwards compatibility" section documenting that
>> the isapc machine is now restricted to 32-bit x86 CPUs, and -cpu host and
>> -cpu max are no longer supported.
>>
>> Signed-off-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
>> ---
>>   docs/about/deprecated.rst | 13 +++++++++++++
>>   1 file changed, 13 insertions(+)
>>
>> diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
>> index aa300bbd50..4c7000650d 100644
>> --- a/docs/about/deprecated.rst
>> +++ b/docs/about/deprecated.rst
>> @@ -514,6 +514,19 @@ available firmwares that are using the current (wrong) name.  The
>>   property is kept as is in 9.1, together with "riscv,delegation", to
>>   give more time for firmware developers to change their code.
>>
>> +x86 "isapc" board restricted to 32-bit x86 CPUs (since 10.2)
>> +''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
>> +
>> +The "isapc" board represents a historical x86 ISA PC and is intended for
>> +older 32-bit x86 CPU models, defaulting to a 486 CPU model.  Previously it
>> +was possible (but non-sensical) to specify a more modern x86 CPU, including
>> +``-cpu host`` or ``-cpu max`` even if the features were incompatible with many
>> +of the intended guest OSs.
>> +
>> +Now the "isapc" board contains an explicit list of supported 32-bit x86 CPU
>> +models. If the user requests an unsupported CPU model then an error message is
>> +returned indicating the available CPU models.
> 
> This should go in "removed.rst", I think. "deprecated.rst" is for
> things that still work today (perhaps with a warning) but will stop
> working in a future QEMU release, not for things that we have already
> caused to stop working. (And we should only go directly to
> 'removed' for features that we are sure nobody's using, but
> I assume we've already had that discussion for the code change.)

It's an interesting one because rather than removing something, we're 
adding a validation check to prevent the user from doing something that 
is nonsensical, i.e. using a modern CPU on a board/OSs that would never 
happen in real life. Given that just about everyone other than hobbyists 
is using the pc/q35 machines on x86, the target audience for isapc is 
comparatively small.

There was some concern that libvirt could generate -cpu host/-cpu max 
for isapc on the command line which is why I added the original 
workaround, but then Igor intervened as maintainer and requested this to 
be removed and enforced via valid_cpu_types instead.

Where do you think would be a suitable place in removed.rst? Maybe the 
"System emulator machines" section?


ATB,

Mark.



  reply	other threads:[~2025-09-26 12:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-25 16:03 [PATCH v2 0/2] isapc: remove support for -cpu host and -cpu max Mark Cave-Ayland
2025-09-25 16:03 ` [PATCH v2 1/2] hw/i386/isapc.c: " Mark Cave-Ayland
2025-09-26 11:36   ` Markus Armbruster
2025-09-26 12:39     ` Daniel P. Berrangé
2025-09-26 13:49       ` Mark Cave-Ayland
2025-09-26 13:55         ` Daniel P. Berrangé
2025-09-26 15:01           ` Mark Cave-Ayland
2025-09-26 15:12             ` Daniel P. Berrangé
2025-09-26 15:22               ` Mark Cave-Ayland
2025-10-02 13:09                 ` Igor Mammedov
2025-09-25 16:03 ` [PATCH v2 2/2] docs/about/deprecated.rst: document new restrictions for isapc CPU models Mark Cave-Ayland
2025-09-26 11:40   ` Markus Armbruster
2025-09-26 12:05   ` Peter Maydell
2025-09-26 12:26     ` Mark Cave-Ayland [this message]
2025-09-26 12:32       ` Peter Maydell
2025-10-02 13:13 ` [PATCH v2 0/2] isapc: remove support for -cpu host and -cpu max Igor Mammedov
2025-10-03 11:46   ` Mark Cave-Ayland
2025-10-06 12:25     ` Igor Mammedov

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=9343fab3-f1e8-4a07-ae15-cc905d4bc42c@nutanix.com \
    --to=mark.caveayland@nutanix.com \
    --cc=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=eduardo@habkost.net \
    --cc=imammedo@redhat.com \
    --cc=jdenemar@redhat.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --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).