From de19301a5a0dea23d89775d8e0eea39f53d8bb46 Mon Sep 17 00:00:00 2001 From: Shiqing Gao Date: Wed, 11 Aug 2021 09:13:59 +0800 Subject: [PATCH] config_tools: refine the configuration data description This patch refines the configuration data description so that it is consistent with the current implementation of the configuration tools. Tracked-On: #6377 Signed-off-by: Shiqing Gao --- misc/config_tools/schema/config.xsd | 20 +++++++++++++------- misc/config_tools/schema/types.xsd | 5 ++++- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/misc/config_tools/schema/config.xsd b/misc/config_tools/schema/config.xsd index 035e74817..f94722316 100644 --- a/misc/config_tools/schema/config.xsd +++ b/misc/config_tools/schema/config.xsd @@ -24,10 +24,17 @@ hypervisor shell. Specify the host serial device used for hypervisor debugging. -This option is only valid if the Service VM :ref:`vm.legacy_vuart` is -enabled. Leave this field empty if the Service VM's :ref:`vm.console_vuart` is enabled. Uses -:option:`vm.os_config.bootargs` for :ref:`vm.console_vuart` -configuration. +This entry is valid if and only if `hv.DEBUG_OPTIONS.RELEASE` is n. +This entry impacts the content of `vm.(legacy_vuart id="0").base` when `vm.vm_type` is SOS_VM, +which specifies the PIO base for Service VM legacy vUART 0 (used for console). +The determination of the PIO base for Service VM legacy vUART 0 follows the rules below: + +- If hv.DEBUG_OPTIONS.SERIAL_CONSOLE is one of [ttys0, ttys1, ttys2, ttys3] and it's a PIO in the + native environment, the PIO base of Service VM legacy vUART 0 would be the same as the PIO base + corresponding to hv.DEBUG_OPTIONS.SERIAL_CONSOLE in the native environment. +- Otherwise, a PIO base would be assigned to Service VM legacy vUART 0 from the available PIO list. + +The above logic is implemented in the configuration tools. @@ -280,13 +287,12 @@ initialization. - Maximum number of interrupt source for PT -devices. + The pre-defined number of interrupt sources of all pass-through devices. - Maximum number of MSI-X tables per device. + Pre-defined maximum number of virtual MSI-X Table entries per device. If this value is empty, then the default value will be calculated from the board XML file. diff --git a/misc/config_tools/schema/types.xsd b/misc/config_tools/schema/types.xsd index 18198e246..25a107ed1 100644 --- a/misc/config_tools/schema/types.xsd +++ b/misc/config_tools/schema/types.xsd @@ -178,7 +178,10 @@ value ``n``. Specify the cache capacity bitmask for the CLOS; only continuous '1' bits -are allowed. The value will be ignored when hardware does not support RDT. +are allowed. The value will be ignored when hardware does not support RDT. +This entry takes effect only if `hv.FEATURES.RDT.RDT_ENABLED` is y. +As `vm.clos.vcpu_clos` specifies the index of the CLOS to be associated with the given vCPU, +`hv.FEATURES.RDT.CLOS_MASK` of that CLOS would impact the performance of the given vCPU.