]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add deprecated_features attribute
authorCollin Walling <walling@linux.ibm.com>
Mon, 16 Dec 2024 23:03:58 +0000 (18:03 -0500)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 17 Dec 2024 10:45:50 +0000 (11:45 +0100)
commit62658bbf060784c757f96c9de3935f27885834aa
treefff21100eac3f483b235ad597c75b63e6be58eb8
parent15d45964e453e04f1761e527266af45554f58fcc
conf: add deprecated_features attribute

Add a new a attribute, deprecated_features='on|off' to the <cpu>
element.  This is used to toggle features flagged as deprecated on the
CPU model on or off.  When this attribute is paired with 'on',
deprecated features will not be filtered.  When paired with 'off', any
CPU features that are flagged as deprecated will be listed under the
CPU model with the 'disable' policy.

Example:

  <cpu mode='host-model' check='partial' deprecated_features='off'/>

The absence of this attribute is equivalent to the 'on' option.

The deprecated features that will populate the domain XML are the same
features that result in the virsh domcapabilities command with the
--disable-deprecated-features argument present.

It is recommended to define a domain XML with this attribute set to
'off' to ensure migration to machines that may outright drop these
features in the future.

Signed-off-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/conf/cpu_conf.c
src/conf/cpu_conf.h
src/conf/schemas/cputypes.rng
src/qemu/qemu_process.c
tests/qemuxmlconfdata/cpu-model-deprecated-features-off.s390x-8.2.0.err [new file with mode: 0644]
tests/qemuxmlconfdata/cpu-model-deprecated-features-off.s390x-8.2.0.xml [new file with mode: 0644]
tests/qemuxmlconfdata/cpu-model-deprecated-features-off.s390x-latest.args [new file with mode: 0644]
tests/qemuxmlconfdata/cpu-model-deprecated-features-off.s390x-latest.xml [new file with mode: 0644]
tests/qemuxmlconfdata/cpu-model-deprecated-features-off.xml [new file with mode: 0644]
tests/qemuxmlconftest.c