]> xenbits.xensource.com Git - libvirt.git/commitdiff
cpu_x86: Copy CPU signature from ancestor
authorJiri Denemark <jdenemar@redhat.com>
Fri, 5 Jan 2018 16:43:03 +0000 (17:43 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 10 Jan 2018 10:07:23 +0000 (11:07 +0100)
When specifying a new CPU model in cpu_map.xml as an extension to an
existing model, we forgot to copy the signature (family + model) from
the original CPU model.

We don't use this way of specifying CPU models, but it's still supported
and it becomes useful when someone wants to quickly hack up a CPU model
for testing or when creating additional variants of existing models to
help with fixing some spectral issues.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/cpu/cpu_x86.c

index 2a2f7cbf39c15f9932d163416785edec299db3d7..b2398c5ad2108649b113fe1bcac091d54d374cbc 100644 (file)
@@ -1227,6 +1227,7 @@ x86ModelParse(xmlXPathContextPtr ctxt,
         VIR_FREE(name);
 
         model->vendor = ancestor->vendor;
+        model->signature = ancestor->signature;
         if (x86DataCopy(&model->data, &ancestor->data) < 0)
             goto error;
     }