]> git.feebdaed.xyz Git - 0xmirror/libvirt.git/commit
qemu: only allow enabling deprecated features that are supported
authorCollin Walling <walling@linux.ibm.com>
Thu, 20 Nov 2025 22:34:43 +0000 (17:34 -0500)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 21 Nov 2025 15:17:31 +0000 (16:17 +0100)
commit029933be861be2a8c6c0d55a6cbb3ee0a6419d0a
tree0acc53e408988745c44a63745f63c34d4b79af5b
parent906f0e448ab15a179cbdb270f04dca6ad70ded11
qemu: only allow enabling deprecated features that are supported

When updating the guest CPU model and the deprecated_features attribute
is set to on, only enable the features the model can actually enable.

While host-model would normally just enable these features without
intervention (and without the presence of the deprecated_features
attribute), custom models would see no changes to their feature set
without these changes.

This is useful for e.g. testing CPU models.

Fixes: f279ea36 (qemu: process: refactor deprecated features code)
Signed-off-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_capabilities.c