Re: [PATCH v3] config_tools: format vitio input in configurator

Junjie Mao

Kunhui-Li <> writes:

This patch formats virtio input entry as "Device name: xxx, Device physical path: xxx".

1. remove the exception handler of enum in pyodide/
3. update the `acrn:options-sorted-by` function for virtio input.

use XPATH instead of the specific python code to parse virtio input data.

Tracked-On: #6691
Signed-off-by: Kunhui-Li <>
Reviewed-by: Junjie Mao <junjie.mao@...>

Best Regards
Junjie Mao

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.xsd
index 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: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>

Join { to automatically receive all group messages.