mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
sync_qemu_models_i386: Generate missing -v1 variants
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>
This commit is contained in:
parent
19b56603c4
commit
8bc6ebb495
@ -484,6 +484,9 @@ def expand_model(outdir, model):
|
|||||||
print(result['name'])
|
print(result['name'])
|
||||||
yield result
|
yield result
|
||||||
|
|
||||||
|
if len(versions) == 0:
|
||||||
|
versions.append({".version": "1"})
|
||||||
|
|
||||||
name = result["name"]
|
name = result["name"]
|
||||||
for version in versions:
|
for version in versions:
|
||||||
result = copy.deepcopy(result)
|
result = copy.deepcopy(result)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user