mirror of https://gitee.com/openkylin/libvirt.git
Revert "domcaps: Treat host models as case-insensitive strings"
This reverts commit 2d8721e260
.
This fix was both incomplete and too general. It only fixed domain
startup, but libvirt would still report empty list of supported CPU
models with recent QEMU for ppc64. On the other hand, while ppc64 QEMU
ignores case when looking up CPU model names, x86_64 QEMU does case
sensitive lookup. Without reverting this patch, libvirt could happily
accept CPU model names which are not supported by QEMU.
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
412cc0f403
commit
b979ec355d
|
@ -278,7 +278,7 @@ virDomainCapsCPUModelsGet(virDomainCapsCPUModelsPtr cpuModels,
|
|||
return NULL;
|
||||
|
||||
for (i = 0; i < cpuModels->nmodels; i++) {
|
||||
if (STRCASEEQ(cpuModels->models[i].name, name))
|
||||
if (STREQ(cpuModels->models[i].name, name))
|
||||
return cpuModels->models + i;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue