From 5c5749c1ff34844b885d1981800a19e0f48908c3 Mon Sep 17 00:00:00 2001 From: Chenli Wei Date: Wed, 14 Sep 2022 01:10:49 +0800 Subject: [PATCH] misc: add assertion to check the BDF value The BDF of user setting should skip the slot '00', '01', '02', '1f', all these slots should select one of the 03~1e. This patch add an assertion to check the above policy. Tracked-On: #6690 Signed-off-by: Chenli Wei --- .../schema/checks/vbdf_assignment.xsd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/misc/config_tools/schema/checks/vbdf_assignment.xsd b/misc/config_tools/schema/checks/vbdf_assignment.xsd index c17f93f63..602cf7430 100644 --- a/misc/config_tools/schema/checks/vbdf_assignment.xsd +++ b/misc/config_tools/schema/checks/vbdf_assignment.xsd @@ -31,4 +31,22 @@ + + + For post launched VM, the "device" value of a virtual BDF, which is used by {$ivshmem/VM_NAME/text()}, shall not be '00', '01', '02' or '1f', i.e., the allowed values are between 03 and 1e, inclusive. + + + + + + For post launched VM, the "device" value of a virtual BDF, which is used by {$endpoint/vm_name/text()}, shall not be '00', '01', '02' or '1f', i.e., the allowed values are between 03 and 1e, inclusive. + + +