mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 22:05:47 +00:00
cpu_ppc64: compare CPU function is ignoring return value
Function to compare CPU on 64-bits PowerPC is ignoring the flag to avoid failure in case of CPUs (host and guest) are incompatible. Basically, the function is returning -1 even if it is set to continue. Signed-off-by: Julio Faracco <jcfaracco@gmail.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
a501fa7cae
commit
b356d81b89
@ -524,11 +524,11 @@ virCPUppc64Compare(virCPUDefPtr host,
|
|||||||
if (failIncompatible) {
|
if (failIncompatible) {
|
||||||
virReportError(VIR_ERR_CPU_INCOMPATIBLE, "%s",
|
virReportError(VIR_ERR_CPU_INCOMPATIBLE, "%s",
|
||||||
_("unknown host CPU"));
|
_("unknown host CPU"));
|
||||||
} else {
|
return VIR_CPU_COMPARE_ERROR;
|
||||||
VIR_WARN("unknown host CPU");
|
|
||||||
ret = VIR_CPU_COMPARE_INCOMPATIBLE;
|
|
||||||
}
|
}
|
||||||
return -1;
|
|
||||||
|
VIR_WARN("unknown host CPU");
|
||||||
|
return VIR_CPU_COMPARE_INCOMPATIBLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ppc64Compute(host, cpu, NULL, &message);
|
ret = ppc64Compute(host, cpu, NULL, &message);
|
||||||
|
Loading…
Reference in New Issue
Block a user