]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
sync_qemu_models_i386: Convert family/model to decimal
authorJiri Denemark <jdenemar@redhat.com>
Wed, 20 May 2026 09:56:35 +0000 (11:56 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 20 May 2026 14:39:44 +0000 (16:39 +0200)
QEMU defines some CPU models with hexadecimal family, but our CPU map
loading code expects decimals.

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

index e144609c8224bf0c3599453992d69c29a28f6985..70947970790dec76795ebe4f49a788f0feb1c6f6 100755 (executable)
@@ -522,8 +522,8 @@ def expand_model(outdir, model):
     }
 
     if ".family" in model and ".model" in model:
-        result["signature"].append((model.pop(".family"),
-                                    model.pop(".model"),
+        result["signature"].append((str(int(model.pop(".family"), base=0)),
+                                    str(int(model.pop(".model"), base=0)),
                                     None))
 
     for k in [k for k in model if k.startswith(".features")]: