config_tool: set MAX_VM_NUM value range from 1 to 8

1. set MAX_VM_NUM value range from 1 to 8.

Tracked-On: #6685
Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
Weiyi Feng 2021-11-23 10:26:15 +08:00 committed by wenlingz
parent a609c9799a
commit a637fa56bf
2 changed files with 11 additions and 1 deletions

View File

@ -222,7 +222,7 @@ value ``0x400000000``.</xs:documentation>
maximum supported resource.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="MAX_VM_NUM" type="xs:integer" default="16">
<xs:element name="MAX_VM_NUM" type="MaxVMNumType" default="8">
<xs:annotation>
<xs:documentation>Maximum number of User VMs allowed.</xs:documentation>
</xs:annotation>

View File

@ -50,6 +50,16 @@
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="MaxVMNumType">
<xs:annotation>
<xs:documentation>Integer from 1 to 8.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1" />
<xs:maxInclusive value="8" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="MaxMsixTableSizeType">
<xs:annotation>
<xs:documentation>Either empty, or an Integer value between 1 and 2048.</xs:documentation>