mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-06 20:09:01 +00:00
config_tools: add default values to I/O ports of vUART
Similar to 5bd3e9642
("config_tools: add default values to vBDF of vUART
and IVSHMEM"), this patch adds default values to the I/O ports of vUART
which shall also keep unique among all vUART endpoints of the same VM.
In order not to overlap with the (potentially used) COM ports, a different
range starting from 0x9200 is selected as defaults. Users are still free to
customize them to COM ports if intended.
Tracked-On: #7330
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
24b5637479
commit
4c18b36430
@ -215,8 +215,8 @@ The size is a subset of the VM's total memory size specified on the Basic tab.</
|
|||||||
<xs:documentation>Virtual UART port</xs:documentation>
|
<xs:documentation>Virtual UART port</xs:documentation>
|
||||||
</xs:annotation>
|
</xs:annotation>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<xs:element name="io_port" type="HexFormat" default="0x3F">
|
<xs:element name="io_port" type="HexFormat">
|
||||||
<xs:annotation acrn:title="Virtual I/O address" acrn:widget-options="'placeholder':'An address in hexadecimal, e.g. 0x4000'">
|
<xs:annotation acrn:title="Virtual I/O address" acrn:defaults="[hex(i) for i in range(0x9200, 0x9280, 8)]" acrn:unique-among="//vuart_connection/endpoint[vm_name=$parent/vm_name]/io_port/text()">
|
||||||
<xs:documentation>Specify the COM base for each legacy virtual UART.</xs:documentation>
|
<xs:documentation>Specify the COM base for each legacy virtual UART.</xs:documentation>
|
||||||
</xs:annotation>
|
</xs:annotation>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
Loading…
Reference in New Issue
Block a user