From e2e7602a2288c02a5a59ec41e779484bc76fe743 Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Tue, 22 Oct 2024 09:16:46 +0200 Subject: [PATCH] cpu_map: Properly group models in index.xml MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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é --- src/cpu/cpu_map.c | 2 +- src/cpu_map/index.xml | 226 ++++++++++++++++++++++-------------------- 2 files changed, 121 insertions(+), 107 deletions(-) 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.47.2