From: Jiri Denemark Date: Tue, 22 Oct 2024 07:16:46 +0000 (+0200) Subject: cpu_map: Properly group models in index.xml X-Git-Tag: v10.10.0-rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2e7602a2288c02a5a59ec41e779484bc76fe743;p=thirdparty%2Flibvirt.git cpu_map: Properly group models in index.xml We already visually group the included models using comments. This patch introduces a new element for doing it properly in a machine friendly way. Signed-off-by: Jiri Denemark Reviewed-by: Daniel P. Berrangé --- diff --git a/src/cpu/cpu_map.c b/src/cpu/cpu_map.c index 16795a9a0a..83ebee16a8 100644 --- a/src/cpu/cpu_map.c +++ b/src/cpu/cpu_map.c @@ -116,7 +116,7 @@ loadIncludes(xmlXPathContextPtr ctxt, int n; size_t i; - n = virXPathNodeSet("include", ctxt, &nodes); + n = virXPathNodeSet("include|group[@name]/include", ctxt, &nodes); if (n < 0) return -1; diff --git a/src/cpu_map/index.xml b/src/cpu_map/index.xml index 15cb63afe5..65128be377 100644 --- a/src/cpu_map/index.xml +++ b/src/cpu_map/index.xml @@ -3,122 +3,136 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +