From a68ab347d51313e11ea4cecc2b51ff79e2938dca Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Mon, 29 Jun 2015 11:07:25 +0200 Subject: [PATCH] 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 --- src/cpu/cpu_x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5