From d5c0a40665cf24b234e55917f8b73ab49e73c49e Mon Sep 17 00:00:00 2001 From: Chenli Wei Date: Fri, 6 May 2022 18:30:49 +0800 Subject: [PATCH] misc: modify the generate logic of vcat config The current code generate vcat info by count the CLOS MASK and the scenario xml should set multiple times. It is not an ideal solution, so we add an "virtual_cat_number" element to set the virtual CLOS number and get the MAX pcbm directly. Signed-off-by: Chenli Wei --- misc/config_tools/schema/config.xsd | 5 ++++ .../xforms/vm_configurations.c.xsl | 26 ++++++++++++------- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/misc/config_tools/schema/config.xsd b/misc/config_tools/schema/config.xsd index 2669b2a73..9c5917b61 100644 --- a/misc/config_tools/schema/config.xsd +++ b/misc/config_tools/schema/config.xsd @@ -336,6 +336,11 @@ Refer to :ref:`vuart_config` for detailed vUART settings. Enable nested virtualization for KVM. + + + Max number of virtual CLOS MASK + + Enable virtualization of the Cache Allocation Technology (CAT) feature in RDT. CAT enables you to allocate cache to VMs, providing isolation to avoid performance interference from other VMs. diff --git a/misc/config_tools/xforms/vm_configurations.c.xsl b/misc/config_tools/xforms/vm_configurations.c.xsl index b16565961..b2741741d 100644 --- a/misc/config_tools/xforms/vm_configurations.c.xsl +++ b/misc/config_tools/xforms/vm_configurations.c.xsl @@ -181,18 +181,24 @@ - - - + + + + + - - - + + + - - - - + + + + + + + +