[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 08/14] include/hw: add macros for deprecation & removal of ve
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH 08/14] include/hw: add macros for deprecation & removal of versioned machines |
Date: |
Thu, 9 May 2024 15:42:44 +0100 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
On Thu, May 02, 2024 at 12:59:05PM +0200, Thomas Huth wrote:
> On 01/05/2024 20.27, Daniel P. Berrangé wrote:
> > Versioned machines live for a long time to provide back compat for
> > incoming migration and restore of saved images. To guide users away from
> > usage of old machines, however, we want to deprecate any older than 3
> > years (equiv of 9 releases), and delete any older than 6 years (equiva
> > of 18 releases).
> >
> > To get a standardized deprecation message and avoid having to remember
> > to manually add it after three years, this introduces two macros to be
> > used by targets when defining versioned machines.
> >
> > * MACHINE_VER_DEPRECATION(major, minor)
> >
> > Automates the task of setting the 'deprecation_reason' field on the
> > machine, if-and-only-if the major/minor version is older than 3 years.
> >
> > * MACHINE_VER_DEPRECATION(major, minor)
>
> That should be MACHINE_VER_DELETION instead.
Opps, yes.
>
> > Simulates the deletion of by skipping registration of the QOM type
> > for a versioned machine, if-and-only-if the major/minor version is
> > older than 6 years.
> >
> > By using these two macros there is no longer any manual work required
> > per-release to deprecate old machines. By preventing the use of machines
> > that have reached their deletion date, it is also no neccessary to
>
> s/neccessary/necessary/
>
> > manually delete machines per-release. Deletion can be batched up once a
> > year or whenever makes most sense.
> >
> > Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> > ---
> > include/hw/boards.h | 84 +++++++++++++++++++++++++++++++++++++++++++++
> > 1 file changed, 84 insertions(+)
>
> With the typos fixed:
> Reviewed-by: Thomas Huth <thuth@redhat.com>
>
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 :|
- [PATCH 03/14] hw/s390x: convert 'ccw' machine definitions to use new macros, (continued)
- [PATCH 03/14] hw/s390x: convert 'ccw' machine definitions to use new macros, Daniel P . Berrangé, 2024/05/01
- [PATCH 04/14] hw/ppc: convert 'spapr' machine definitions to use new macros, Daniel P . Berrangé, 2024/05/01
- [PATCH 06/14] hw/i386: convert 'i440fx' machine definitions to use new macros, Daniel P . Berrangé, 2024/05/01
- [PATCH 05/14] hw/m68k: convert 'virt' machine definitions to use new macros, Daniel P . Berrangé, 2024/05/01
- [PATCH 07/14] hw/i386: convert 'q35' machine definitions to use new macros, Daniel P . Berrangé, 2024/05/01
- [PATCH 08/14] include/hw: add macros for deprecation & removal of versioned machines, Daniel P . Berrangé, 2024/05/01
- [PATCH 09/14] hw: temporarily disable deletion of versioned machine types, Daniel P . Berrangé, 2024/05/01
- [PATCH 10/14] hw: set deprecation info for all versioned machine types, Daniel P . Berrangé, 2024/05/01
- [PATCH 12/14] hw/ppc: remove obsolete manual deprecation reason string of spapr machines, Daniel P . Berrangé, 2024/05/01
- [PATCH 11/14] hw: skip registration of outdated versioned machine types, Daniel P . Berrangé, 2024/05/01
- [PATCH 13/14] hw/i386: remove obsolete manual deprecation reason string of i440fx machines, Daniel P . Berrangé, 2024/05/01