This patch formats virtio input entry as "Device name: xxx, Device physical path: xxx".v2-->v3:1. remove the exception handler of enum in pyodide/loadBoard.py.3. update the `acrn:options-sorted-by` function for virtio input.v1-->v2:use XPATH instead of the specific python code to parse virtio input data.Tracked-On: #6691Signed-off-by: Kunhui-Li <kunhuix.li@...>
--- misc/config_tools/schema/VMtypes.xsd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)diff --git a/misc/config_tools/schema/VMtypes.xsd b/misc/config_tools/schema/VMtypes.xsdindex 302e152b6..91fd76cd6 100644--- a/misc/config_tools/schema/VMtypes.xsd+++ b/misc/config_tools/schema/VMtypes.xsd@@ -395,7 +395,9 @@ device file when user config it as virtio serial port, which can be read and wri <xs:complexType name="VirtioInputConfiguration"> <xs:sequence> <xs:element name="backend_device_file" type="xs:string" minOccurs="0">- <xs:annotation acrn:title="Backend device file" acrn:widget-options="'placeholder': '/dev/input/eventX'">+ <xs:annotation acrn:title="Backend device file" acrn:widget-options="'placeholder': '/dev/input/eventX'"+ acrn:options="for $input in //inputs/input return concat('Device name: ', $input/name/text(), ', Device physical path: ', $input/phys/text())"+ acrn:options-sorted-by="lambda s: s"> <xs:documentation>Specifying backend device in service vm with device description.</xs:documentation> </xs:annotation> </xs:element>
© 2023 Groups.io