]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
domcaps: Treat host models as case-insensitive strings
authorScott Garfinkle <scottgar@linux.vnet.ibm.com>
Tue, 26 Dec 2017 19:55:08 +0000 (13:55 -0600)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 12 Jan 2018 11:31:53 +0000 (06:31 -0500)
Qemu 2.11 allows case-insensitive specification of CPU models.
This patch fixes the resulting problems on (at least) POWER
arch machines so that Power8 and POWER8 are not different.

Signed-off-by: Scott Garfinkle <scottgar@linux.vnet.ibm.com>
src/conf/domain_capabilities.c

index e7323a81d7a98cbd07573ce71d20197366de694e..f7d9be50f82d5017ff592160eaa19d8abddb786f 100644 (file)
@@ -271,7 +271,7 @@ virDomainCapsCPUModelsGet(virDomainCapsCPUModelsPtr cpuModels,
         return NULL;
 
     for (i = 0; i < cpuModels->nmodels; i++) {
-        if (STREQ(cpuModels->models[i].name, name))
+        if (STRCASEEQ(cpuModels->models[i].name, name))
             return cpuModels->models + i;
     }