"CPU vendor %s"),
cpu->vendor) < 0)
goto error;
+
return VIR_CPU_COMPARE_INCOMPATIBLE;
}
if (!x86DataIsEmpty(cpu_forbid->data)) {
virX86CpuIncompatible(N_("Host CPU provides forbidden features"),
cpu_forbid->data);
- goto out;
+ goto cleanup;
}
/* first remove features that were inherited from the CPU model and were
virX86CpuIncompatible(N_("Host CPU does not provide required "
"features"),
cpu_require->data);
- goto out;
+ goto cleanup;
}
ret = VIR_CPU_COMPARE_IDENTICAL;
virX86CpuIncompatible(N_("Host CPU does not strictly match guest CPU: "
"Extra features"),
diff->data);
- goto out;
+ goto cleanup;
}
if (guest != NULL) {
}
}
-out:
+cleanup:
x86MapFree(map);
x86ModelFree(host_model);
x86ModelFree(diff);
error:
ret = VIR_CPU_COMPARE_ERROR;
- goto out;
+ goto cleanup;
}
#undef virX86CpuIncompatible