1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-26 03:21:44 +03:00

domcaps: Treat host models as case-insensitive strings

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>
This commit is contained in:
Scott Garfinkle 2017-12-26 13:55:08 -06:00 committed by John Ferlan
parent e8784e7868
commit 2d8721e260

View 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;
}