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:
parent
e8784e7868
commit
2d8721e260
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user