From 541e9304f67035a641e8949a4453b96056e31d3e Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Thu, 23 Jun 2022 13:22:39 +0800 Subject: [PATCH] config_tools: remove minOccurs from items that have default values With the default population stage today, the `default` and `minOccurs=0` attributes are typically mutually exclusive: * A config item with a `default` attribute is guaranteed to exist after populating default values, making the `minOccurs` attribute meaningless. * A config item with a `minOccurs=0` attribute allows that item not to be present even after default values are populated. This patch removes the `minOccurs=0` attributes from some config items that have their default values recently added. This allows the default value populator to fill in those items as expected if a user does not provide them explicitly. Tracked-On: #6690 Signed-off-by: Junjie Mao --- misc/config_tools/schema/VMtypes.xsd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/config_tools/schema/VMtypes.xsd b/misc/config_tools/schema/VMtypes.xsd index e0c825f1d..101f77c87 100644 --- a/misc/config_tools/schema/VMtypes.xsd +++ b/misc/config_tools/schema/VMtypes.xsd @@ -133,7 +133,7 @@ The size is a subset of the VM's total memory size specified on the Basic tab.Select the kernel image type so that the hypervisor can load it correctly. - + Specify the tag for the kernel image that is used as a multiboot module. The tag's spelling must exactly match the module tag in the GRUB multiboot cmdline. @@ -145,7 +145,7 @@ The size is a subset of the VM's total memory size specified on the Basic tab.Specify the tag for the RAMdisk image that is used as a multiboot module. The tag's spelling must exactly match the module tag in the GRUB multiboot cmdline. - + Specify the command-line parameters that will be used to boot the kernel for this VM. See `Linux documentation <https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html>`__ for a list of parameters. @@ -360,13 +360,13 @@ The size is a subset of the VM's total memory size specified on the Basic tab. - + Specify device type in guest, ether HVC console when user config it as virtio console or /dev/vportXpY device file when user config it as virtio serial port, which can be read and written from the user space. - + Specify backend device type in service VM.