qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: Thomas Huth <thuth@redhat.com>,
	qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	Zhao Liu <zhao1.liu@intel.com>,
	"Michael S . Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH] docs/about: Change notes on x86 machine type deprecation into a general one
Date: Thu, 16 Jan 2025 09:19:20 +0000	[thread overview]
Message-ID: <Z4jPGGezEK3XRMl8@redhat.com> (raw)
In-Reply-To: <ad3d06df-f0ae-4508-b979-c838b3647510@linaro.org>

On Thu, Jan 16, 2025 at 09:48:50AM +0100, Philippe Mathieu-Daudé wrote:
> On 16/1/25 07:46, Thomas Huth wrote:
> > We now have a general note about versioned machine types getting
> > deprecated and removed at the beginning of the deprecated.rst file,
> > so we should also have a general note about this in removed-features.rst
> > (which will also apply to versioned non-x86 machine types) instead of
> > listing individual old machine types in the document.
> > 
> > Signed-off-by: Thomas Huth <thuth@redhat.com>
> > ---
> >   docs/about/deprecated.rst       |  7 -------
> >   docs/about/removed-features.rst | 11 +++++------
> >   2 files changed, 5 insertions(+), 13 deletions(-)
> > 
> > diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
> > index 4a3c302962..7b42d6eecc 100644
> > --- a/docs/about/deprecated.rst
> > +++ b/docs/about/deprecated.rst
> > @@ -236,13 +236,6 @@ deprecated; use the new name ``dtb-randomness`` instead. The new name
> >   better reflects the way this property affects all random data within
> >   the device tree blob, not just the ``kaslr-seed`` node.
> > -``pc-i440fx-2.4`` up to ``pc-i440fx-2.12`` (since 9.1)
> > -''''''''''''''''''''''''''''''''''''''''''''''''''''''
> > -
> > -These old machine types are quite neglected nowadays and thus might have
> > -various pitfalls with regards to live migration. Use a newer machine type
> > -instead.
> > -
> >   PPC 405 ``ref405ep`` machine (since 9.1)
> >   ''''''''''''''''''''''''''''''''''''''''
> > diff --git a/docs/about/removed-features.rst b/docs/about/removed-features.rst
> > index c6616ce05e..156c0c253c 100644
> > --- a/docs/about/removed-features.rst
> > +++ b/docs/about/removed-features.rst
> > @@ -972,6 +972,11 @@ from Linux in 2021, and is not supported anymore by QEMU either.
> >   System emulator machines
> >   ------------------------
> > +Note: Versioned machine types that have been introduced in a QEMU version
> > +that has initially been released more than 6 years before are considered
> > +obsolete and will be removed without further notice in this document.
> > +Please use newer machine types instead.
> 
> This is an improvement. I still wonder if we shouldn't list them removed
> machines here, to help old users.
> 
>   Removed in 4.0:
>     - pc-0.10
>     - ...
>   Removed in 9.0:
>     - pc-i440fx-2.3
>   Remove in 10.0:
>     - pc-i440fx-2.4
>     - pc-i440fx-2.5
>     - pc-i440fx-2.6
>     - pc-q35-2.4
>     - pc-q35-2.5
>     - pc-q35-2.6
>     - ARM virt-2.6
>     ...
> 
> ?

A big part of the reason for the macros for machine type deprecation & then
skipping machine registration, was to eliminate repeated manual work that is
visible to users if forgotten. 

We still have the actual code deletion which is manual, but that's harmless
as even if forgotten, such that the code exists, the machine type will have
been entirely removed from view.

As such I'm pretty reluctant to suggest we create a new place which needs
manually updating when we remove machine types.

I wonder if its possible to get an auto-generated version number into the
documentation though ?

eg, so we can have an entry in 'deprecated.rst'

  Versioned machine types for x86_64, i386, aarch64  <other targets here>
  -----------------------------------------------------------------------

  In accordance with our versioned machine type deprecation policy,
  all machine types older than 7.0.0 have been deprecated.

and in 'removed-features.rst'

  Versioned machine types for x86_64, i386, aarch64  <other targets here>
  -----------------------------------------------------------------------

  In accordance with our versioned machine type removal policy,
  all machine types older than 4.1.0 have been removed.


where both '7.0.0' and '4.1.0' are variables substituted in by the
docs generator in some manner, so we never need touch them manually ?

NB, this auto-deletion logic is currently hacked to only come into
effect from 10.1.0 onwards, so we're 1 cycle too early currently
(see commit c9fd2d9a48ee3c195cf83cc611b87b09f02f0013)

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



  reply	other threads:[~2025-01-16  9:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-16  6:46 [PATCH] docs/about: Change notes on x86 machine type deprecation into a general one Thomas Huth
2025-01-16  7:58 ` Zhao Liu
2025-01-16  8:48 ` Philippe Mathieu-Daudé
2025-01-16  9:19   ` Daniel P. Berrangé [this message]
2025-01-16 10:59     ` Daniel P. Berrangé
2025-02-20 14:59       ` Michael S. Tsirkin
2025-02-20 15:21         ` Thomas Huth
2025-02-24  9:46           ` Daniel P. Berrangé

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=Z4jPGGezEK3XRMl8@redhat.com \
    --to=berrange@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    --cc=zhao1.liu@intel.com \
    /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).