config-tools: loosen IVSHMEM_REGION restriction in schema

A scenario can enable multiple IVSHMEM_REGIONs, loosen the restriction
to extend multiple regions support.

Tracked-On: #5863
Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
Yang,Yu-chu 2021-03-23 10:46:21 -07:00 committed by wenlingz
parent afe07cc237
commit 1d1a434a64
1 changed files with 4 additions and 9 deletions

View File

@ -128,20 +128,15 @@ Read more about the available scheduling options in :ref:`cpu_sharing`.</xs:docu
<xs:union memberTypes="None SerialConsoleType" />
</xs:simpleType>
<xs:simpleType name="IVSHMEMRegionPattern">
<xs:restriction base="xs:string">
<xs:pattern value="hv:/\w+,\s?\d+\s?,\s?\d\s?(:\s?\d\s?)+" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="IVSHMEMRegionType">
<xs:annotation>
<xs:documentation>Either empty or a string naming the shared region,
its size, and the VM IDs that can access it, such as ``hv:/shm_region_0, 2, 0:2``.
See :ref:`ivshmem-hv` for more information.</xs:documentation>
</xs:annotation>
<xs:union memberTypes="None IVSHMEMRegionPattern" />
<xs:restriction base="xs:string">
<xs:pattern value="|hv:/\w+,\s?\d+\s?,\s?\d\s?(:\s?\d\s?)+" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="IVSHMEMInfo">
@ -152,7 +147,7 @@ See :ref:`ivshmem-hv` for more information.</xs:documentation>
feature.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="IVSHMEM_REGION" type="IVSHMEMRegionType">
<xs:element name="IVSHMEM_REGION" type="IVSHMEMRegionType" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A comma-separated list with the inter-VM shared memory region name,
size, and VM IDs that may communicate using this shared region: