mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
misc: Limit IVSHMEM region name to 27 characters
Current IVSHMEM region name does not have size limit. This patch limits it to 27 characters so that land specifier ("hv:/" or "dm:/") plus region name can fit into an array of 32 characters. Also change some descriptive messages. Tracked-On: #7707 Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
This commit is contained in:
parent
be31fa2731
commit
11da9e9475
@ -245,14 +245,14 @@ Read more about the available scheduling options in :ref:`cpu_sharing`.</xs:docu
|
||||
<xs:all>
|
||||
<xs:element name="NAME" minOccurs="1">
|
||||
<xs:annotation acrn:title="Region Name">
|
||||
<xs:documentation>Name of the shared memory region.</xs:documentation>
|
||||
<xs:documentation>Name of the shared memory region. The name must be between 1-27 characters and contain only letters, digits and "_".</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:annotation>
|
||||
<xs:documentation>A string with no spaces.</xs:documentation>
|
||||
<xs:documentation>Must be 1-27 characters and only letters, digits and "_".</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="\w+" />
|
||||
<xs:pattern value="\w{1,27}" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
|
Loading…
Reference in New Issue
Block a user