From 0813247eb040e8ffa1286a4e1d685bf71ad5d8d1 Mon Sep 17 00:00:00 2001 From: hangliu1 Date: Wed, 8 Jun 2022 06:00:57 +0800 Subject: [PATCH] config tool:add schema check for UI name validation ivshmem name and vuart connection vm name are required in UI, so add the check in case user miss setting them. Tracked-On: #7700 Signed-off-by: hangliu1 --- misc/config_tools/schema/VMtypes.xsd | 4 ++-- misc/config_tools/schema/checks/ivsh_memory.xsd | 7 +++++++ misc/config_tools/schema/checks/vuart_config.xsd | 7 +++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/misc/config_tools/schema/VMtypes.xsd b/misc/config_tools/schema/VMtypes.xsd index 9cd67bc54..4f67129ee 100644 --- a/misc/config_tools/schema/VMtypes.xsd +++ b/misc/config_tools/schema/VMtypes.xsd @@ -211,8 +211,8 @@ The size is a subset of the VM's total memory size specified on the Basic tab. - - Virtual UART port + + vUART connection VM name diff --git a/misc/config_tools/schema/checks/ivsh_memory.xsd b/misc/config_tools/schema/checks/ivsh_memory.xsd index ce966665b..dafb2085d 100644 --- a/misc/config_tools/schema/checks/ivsh_memory.xsd +++ b/misc/config_tools/schema/checks/ivsh_memory.xsd @@ -14,4 +14,11 @@ + + + InterVM shared memory region name must be set + + + diff --git a/misc/config_tools/schema/checks/vuart_config.xsd b/misc/config_tools/schema/checks/vuart_config.xsd index 2ecbb5a4b..ae8e08bc4 100644 --- a/misc/config_tools/schema/checks/vuart_config.xsd +++ b/misc/config_tools/schema/checks/vuart_config.xsd @@ -36,4 +36,11 @@ + + + VM name in "{$NAME/ancestor::vuart_connection/name}" must be set + + +