mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +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'])
|
||||
yield result
|
||||
|
||||
if len(versions) == 0:
|
||||
versions.append({".version": "1"})
|
||||
|
||||
name = result["name"]
|
||||
for version in versions:
|
||||
result = copy.deepcopy(result)
|
||||
|
Loading…
Reference in New Issue
Block a user