From eeeddfed14f4075a6229b51b6cb922d7f9687dbb Mon Sep 17 00:00:00 2001 From: Conghui Date: Thu, 2 Jun 2022 12:18:29 +0800 Subject: [PATCH] config-tools: fix vBDF issue for IVSHMEM 1. Fix the issue that when saving the configuration, the vBDF does not display automatically in IVSHMEM region. 2. Chagne 'Region name' in IVSHMEM from optional to required. 3. Fix the wrong tooltip content for 'VM name'. Tracked-On: #7673 Signed-off-by: Conghui --- .../ConfigForm/CustomWidget/IVSHMEM_REGION.vue | 13 +++++++------ misc/config_tools/schema/types.xsd | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue index 54c3e5551..ba1b63755 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue @@ -6,12 +6,14 @@ - + @@ -59,7 +61,7 @@ - + Virtual BDF: @@ -71,7 +73,7 @@ - + VM name: @@ -82,7 +84,7 @@ - + must have value @@ -165,8 +167,7 @@ export default { providerType: this.rootSchema.definitions['ProviderType']['enum'], IVSHMEMSize: this.rootSchema.definitions['IVSHMEMSize']['enum'], IVSHMEMRegionType: this.rootSchema.definitions['IVSHMEMRegionType'], - IVSHMEMVM: this.rootSchema.definitions['IVSHMEMVM'], - VMConfigType: this.rootSchema.definitions['VMConfigType'], + IVSHMEM_VM: this.rootSchema.definitions['IVSHMEMVM'], defaultVal: vueUtils.getPathVal(this.rootFormData, this.curNodePath) }; }, diff --git a/misc/config_tools/schema/types.xsd b/misc/config_tools/schema/types.xsd index 6cfd562cd..cc8848db8 100644 --- a/misc/config_tools/schema/types.xsd +++ b/misc/config_tools/schema/types.xsd @@ -243,7 +243,7 @@ Read more about the available scheduling options in :ref:`cpu_sharing`. - + Name of the shared memory region.