[libvirt PATCH v2 1/9] cpu_map: sync_qemu_cpu_i386: Translate features in model versions

Tim Wiederhake twiederh at redhat.com
Wed Nov 18 15:24:10 UTC 2020


Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
---
 src/cpu_map/sync_qemu_i386.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/cpu_map/sync_qemu_i386.py b/src/cpu_map/sync_qemu_i386.py
index 8deda869df..82413d831e 100755
--- a/src/cpu_map/sync_qemu_i386.py
+++ b/src/cpu_map/sync_qemu_i386.py
@@ -292,6 +292,8 @@ def expand_model(model):
 
         props = version.pop(".props", dict())
         for k, v in props:
+            if k not in ("model-id", "stepping", "model"):
+                k = T.get(k, k)
             if v == "on":
                 result["features"].add(k)
             elif v == "off" and k in result["features"]:
-- 
2.26.2




More information about the libvir-list mailing list