[PATCH v1 0/2] Disable Deprecated Features by Default on s390 CPU Models

Collin Walling posted 2 patches 4 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20250501201713.44172-1-walling@linux.ibm.com
There is a newer version of this series
src/qemu/qemu_capabilities.c                  | 10 +++++++---
src/qemu/qemu_capabilities.h                  |  3 ++-
src/qemu/qemu_driver.c                        |  3 ++-
src/qemu/qemu_process.c                       | 19 ++++++++++++-------
tests/domaincapsdata/qemu_10.0.0.s390x.xml    |  8 ++++----
tests/domaincapsdata/qemu_9.1.0.s390x.xml     |  8 ++++----
tests/domaincapsdata/qemu_9.2.0.s390x.xml     |  8 ++++----
...default-video-type-s390x.s390x-latest.args |  2 +-
...vfio-zpci-ccw-memballoon.s390x-latest.args |  2 +-
.../launch-security-s390-pv.s390x-latest.args |  2 +-
...t-cpu-kvm-ccw-virtio-4.2.s390x-latest.args |  2 +-
.../s390-defaultconsole.s390x-latest.args     |  2 +-
.../s390-panic.s390x-latest.args              |  2 +-
13 files changed, 41 insertions(+), 30 deletions(-)
[PATCH v1 0/2] Disable Deprecated Features by Default on s390 CPU Models
Posted by Collin Walling 4 months, 1 week ago
The intention of reporting deprecated features and modifying the guest
CPU model was to alleviate the user from the burden of preparing a guest
with the necessary amendments to assure migration to newer hardware.
While that goal was met by way of the "deprecated_features='on|off'"
attribute, it still adds an extra step that the user must be aware to
prepare a guest for migration and the errors that stem from an
unsuccessful migration (due to feature incompatibility) is not always
clear how to resolve.

These patches make s390 CPU host models migration ready from the get-go
by disabling deprecated features by default.  They may still be disabled
for other model types via the respective attribute, or reenabled if
desired.

Collin Walling (2):
  qemu: caps: add virCPUFeaturePolicy param to
    virQEMUCapsUpdateCPUDeprecatedFeatures
  qemu: caps: disable deprecated features for s390 models by default

 src/qemu/qemu_capabilities.c                  | 10 +++++++---
 src/qemu/qemu_capabilities.h                  |  3 ++-
 src/qemu/qemu_driver.c                        |  3 ++-
 src/qemu/qemu_process.c                       | 19 ++++++++++++-------
 tests/domaincapsdata/qemu_10.0.0.s390x.xml    |  8 ++++----
 tests/domaincapsdata/qemu_9.1.0.s390x.xml     |  8 ++++----
 tests/domaincapsdata/qemu_9.2.0.s390x.xml     |  8 ++++----
 ...default-video-type-s390x.s390x-latest.args |  2 +-
 ...vfio-zpci-ccw-memballoon.s390x-latest.args |  2 +-
 .../launch-security-s390-pv.s390x-latest.args |  2 +-
 ...t-cpu-kvm-ccw-virtio-4.2.s390x-latest.args |  2 +-
 .../s390-defaultconsole.s390x-latest.args     |  2 +-
 .../s390-panic.s390x-latest.args              |  2 +-
 13 files changed, 41 insertions(+), 30 deletions(-)

-- 
2.47.1
Re: [PATCH v1 0/2] Disable Deprecated Features by Default on s390 CPU Models
Posted by Collin Walling 3 months, 3 weeks ago
On 5/1/25 4:17 PM, Collin Walling wrote:

Ping.

> The intention of reporting deprecated features and modifying the guest
> CPU model was to alleviate the user from the burden of preparing a guest
> with the necessary amendments to assure migration to newer hardware.
> While that goal was met by way of the "deprecated_features='on|off'"
> attribute, it still adds an extra step that the user must be aware to
> prepare a guest for migration and the errors that stem from an
> unsuccessful migration (due to feature incompatibility) is not always
> clear how to resolve.
> 
> These patches make s390 CPU host models migration ready from the get-go
> by disabling deprecated features by default.  They may still be disabled
> for other model types via the respective attribute, or reenabled if
> desired.
> 
> Collin Walling (2):
>   qemu: caps: add virCPUFeaturePolicy param to
>     virQEMUCapsUpdateCPUDeprecatedFeatures
>   qemu: caps: disable deprecated features for s390 models by default
> 
>  src/qemu/qemu_capabilities.c                  | 10 +++++++---
>  src/qemu/qemu_capabilities.h                  |  3 ++-
>  src/qemu/qemu_driver.c                        |  3 ++-
>  src/qemu/qemu_process.c                       | 19 ++++++++++++-------
>  tests/domaincapsdata/qemu_10.0.0.s390x.xml    |  8 ++++----
>  tests/domaincapsdata/qemu_9.1.0.s390x.xml     |  8 ++++----
>  tests/domaincapsdata/qemu_9.2.0.s390x.xml     |  8 ++++----
>  ...default-video-type-s390x.s390x-latest.args |  2 +-
>  ...vfio-zpci-ccw-memballoon.s390x-latest.args |  2 +-
>  .../launch-security-s390-pv.s390x-latest.args |  2 +-
>  ...t-cpu-kvm-ccw-virtio-4.2.s390x-latest.args |  2 +-
>  .../s390-defaultconsole.s390x-latest.args     |  2 +-
>  .../s390-panic.s390x-latest.args              |  2 +-
>  13 files changed, 41 insertions(+), 30 deletions(-)
> 


-- 
Regards,
  Collin