]> xenbits.xensource.com Git - libvirt.git/commit
qemu: fix recording of CPU deprecations
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 17 Mar 2022 17:50:43 +0000 (17:50 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 21 Mar 2022 09:18:02 +0000 (09:18 +0000)
commitd31c39a83c1d911c478561aaf40729a529e3283e
tree19917baac8f3ab4d5c36d1096a7e3a1f9b754d19
parentaf6f6091e02bb46633666ce30d4c6533a52688a5
qemu: fix recording of CPU deprecations

The code parsing thue query-cpu-definitions response will short-circuit
the for loop in the case where usable=yes, resulting in us failing to
parse the CPU deprecation flag.

IOW, we only reported deprecations in domain capabilities for CPU models
which were not runnable on the host.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_monitor_json.c