From f8f1689a887fd377ec7acf224a4513465545500a Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Thu, 28 Apr 2022 14:58:10 +0800 Subject: [PATCH] config_tools: do not apply distinct-values on a union of node-set The latest version of the elementpath library (i.e. 2.5.0) fails to evaluate an XPATH which feeds a union of node sets to the `distinct-values` function. An exception will be raised in such case, which eventually causes the hypervisor build to fail. This patch removes the usage of `distinct-values` function in the XPATH. This may cause some additional delays to the evaluation of the assertion, but at least will not impact the build even the latest versions of the Python libraries are used. Tracked-On: #7372 Signed-off-by: Junjie Mao --- misc/config_tools/schema/checks/vbdf_assignment.xsd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/schema/checks/vbdf_assignment.xsd b/misc/config_tools/schema/checks/vbdf_assignment.xsd index 5f850872a..45a65945b 100644 --- a/misc/config_tools/schema/checks/vbdf_assignment.xsd +++ b/misc/config_tools/schema/checks/vbdf_assignment.xsd @@ -7,7 +7,7 @@ VM "{$vm/name}" contains multiple virtual UART controllers and/or IVSHMEM interfaces using BDF {$vbdf}. Adjust the BDF of those devices.