mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 09:55:18 +00:00
conf: add cpu check attribute to ABI check
Different check values are not ABI compatible. For example if on migration we change 'full' to 'partial' then guest cpu on destination can be different. Reviewed-by: Jiri Denemark <jdenemar@redhat.com> Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
parent
1cc1b8360b
commit
055af76f16
@ -894,6 +894,13 @@ virCPUDefIsEqual(virCPUDefPtr src,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (src->check != dst->check) {
|
||||||
|
MISMATCH(_("Target CPU check %s does not match source %s"),
|
||||||
|
virCPUCheckTypeToString(dst->check),
|
||||||
|
virCPUCheckTypeToString(src->check));
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
if (src->arch != dst->arch) {
|
if (src->arch != dst->arch) {
|
||||||
MISMATCH(_("Target CPU arch %s does not match source %s"),
|
MISMATCH(_("Target CPU arch %s does not match source %s"),
|
||||||
virArchToString(dst->arch),
|
virArchToString(dst->arch),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user