mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
conf: Check CPU cache for ABI stability
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
1a77b97c7f
commit
1e9cf6e09c
@ -915,6 +915,16 @@ virCPUDefIsEqual(virCPUDefPtr src,
|
||||
}
|
||||
}
|
||||
|
||||
if ((src->cache && !dst->cache) ||
|
||||
(!src->cache && dst->cache) ||
|
||||
(src->cache && dst->cache &&
|
||||
(src->cache->level != dst->cache->level ||
|
||||
src->cache->mode != dst->cache->mode))) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("Target CPU cache does not match source"));
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
identical = true;
|
||||
|
||||
cleanup:
|
||||
|
Loading…
x
Reference in New Issue
Block a user