]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
sync_qemu_models_i386: Generate missing -v1 variants
authorJiri Denemark <jdenemar@redhat.com>
Thu, 28 Nov 2024 12:40:16 +0000 (13:40 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 13 Dec 2024 13:41:56 +0000 (14:41 +0100)
QEMU supports -v1 variant of any CPU model even though the list of
versions is not defined (i.e., even if { .version = 1 } item is
missing).

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/cpu_map/sync_qemu_models_i386.py

index 11fe1f7435ae9d7488cbe7c5b5fdf23597d17052..3e14136e077b73187adc93e5fe611d16f90d91e5 100755 (executable)
@@ -484,6 +484,9 @@ def expand_model(outdir, model):
     print(result['name'])
     yield result
 
+    if len(versions) == 0:
+        versions.append({".version": "1"})
+
     name = result["name"]
     for version in versions:
         result = copy.deepcopy(result)