From 74071d1bd410715ea8b528e48601f9649c900f5f Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Fri, 11 Feb 2022 23:12:39 +0800 Subject: [PATCH] config_tools: move RDT-related checks to a separate file Assertions in XML schema are placed under schema/checks as the central place, in order to make it easier to enhance the error reporting specifically on assertion failures in the near future. This patch moves the RDT related assertions in the schema to a dedicate file uner schema/checks. Tracked-On: #6690 Signed-off-by: Junjie Mao --- .../schema/checks/rdt_support.xsd | 86 +++++++++++++++++++ misc/config_tools/schema/config.xsd | 80 ----------------- 2 files changed, 86 insertions(+), 80 deletions(-) create mode 100644 misc/config_tools/schema/checks/rdt_support.xsd diff --git a/misc/config_tools/schema/checks/rdt_support.xsd b/misc/config_tools/schema/checks/rdt_support.xsd new file mode 100644 index 000000000..fb073e7ab --- /dev/null +++ b/misc/config_tools/schema/checks/rdt_support.xsd @@ -0,0 +1,86 @@ + + + + + + vCAT can be enabled only when RDT_ENABLED is 'y' and CDP_ENABLED is 'n' + + + + + + Per VM virtual_cat_support can be set only when RDT_ENABLED is 'y' and VCAT_ENABLED is 'y'. + + + + + + For a vCAT VM, number of clos/vcpu_clos elements must be greater than 1! + + + + + + For a vCAT VM, vcpu_clos cannot be set to CLOSID 0, CLOSID 0 is reserved to be used by hypervisor + + + + + + For a vCAT VM, each clos/vcpu_clos must be less than L2/L3 COS_MAX! + + + + + + For a vCAT VM, its clos/vcpu_clos elements cannot contain duplicate values + + + + + + if RDT_ENABLED is 'y', there should not be any CLOS IDs overlap between a vCAT VM and any other VMs + + + + + + Service VM cannot use LAPIC passthrough unless GUEST_FLAG_NVMX_ENABLED is set. + + + + + + diff --git a/misc/config_tools/schema/config.xsd b/misc/config_tools/schema/config.xsd index 4bf20ad6c..06f4c7f12 100644 --- a/misc/config_tools/schema/config.xsd +++ b/misc/config_tools/schema/config.xsd @@ -153,7 +153,6 @@ Machine Check Error on Page Size Change. - @@ -440,12 +439,6 @@ its ``id`` attribute. - - - - Service VM cannot use LAPIC passthrough unless nested_virtualization_support is set. - - @@ -469,79 +462,6 @@ to launch post-launched User VMs. - - - - vCAT can be enabled only when RDT_ENABLED is 'y' and CDP_ENABLED is 'n' - - - - - - Per VM virtual_cat_support can be set only when RDT_ENABLED is 'y' and VCAT_ENABLED is 'y'. - - - - - - For a vCAT VM, number of clos/vcpu_clos elements must be greater than 1! - - - - - - For a vCAT VM, vcpu_clos cannot be set to CLOSID 0, CLOSID 0 is reserved to be used by hypervisor - - - - - - For a vCAT VM, each clos/vcpu_clos must be less than L2/L3 COS_MAX! - - - - - - For a vCAT VM, its clos/vcpu_clos elements cannot contain duplicate values - - - - - - if RDT_ENABLED is 'y', there should not be any CLOS IDs overlap between a vCAT VM and any other VMs - - -