提交 a68ab347 编写于 作者: J Jiri Denemark

cpu_x86: Fix CPU data parser

The formatter uses /cpudata/cpuid elements and the parser should really
do the same.
Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
上级 fc4ee3e6
......@@ -1309,8 +1309,8 @@ x86CPUDataParse(const char *xmlStr)
}
ctxt->node = xmlDocGetRootElement(xml);
n = virXPathNodeSet("/cpudata[@arch='x86']/data", ctxt, &nodes);
if (n < 0) {
n = virXPathNodeSet("/cpudata[@arch='x86']/cpuid", ctxt, &nodes);
if (n <= 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("no x86 CPU data found"));
goto cleanup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册