提交 1e9cf6e0 编写于 作者: J Jiri Denemark

conf: Check CPU cache for ABI stability

Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
上级 1a77b97c
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册