From: Jiri Denemark Date: Mon, 29 Jun 2015 09:07:25 +0000 (+0200) Subject: cpu_x86: Fix CPU data parser X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a68ab347d51313e11ea4cecc2b51ff79e2938dca;p=libvirt.git cpu_x86: Fix CPU data parser The formatter uses /cpudata/cpuid elements and the parser should really do the same. Signed-off-by: Jiri Denemark --- diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index a05cea66d5..65b7a569b0 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -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;