config_tools: update upgrader.py script for virtio

1. add virtio gpu logic in upgrader.py script.
2. fix the upgraded virtio elements issue.
3. add the logic to remove the element with empty value in xml file
to use the default value.

Tracked-On: #7301
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Kunhui-Li
2022-04-20 23:28:03 +08:00
committed by acrnsi-robot
parent 68f88a4bc9
commit 15e83758d6
13 changed files with 71 additions and 73 deletions

View File

@@ -147,7 +147,6 @@
<virtio_devices>
<console/>
<network>
<virtio_framework/>
<interface_name>WaaG</interface_name>
</network>
<input/>
@@ -181,7 +180,6 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>YaaG</interface_name>
</network>
<input/>

View File

@@ -102,7 +102,6 @@
<virtio_devices>
<console/>
<network>
<virtio_framework/>
<interface_name>WaaG</interface_name>
</network>
<input/>
@@ -143,7 +142,6 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>RT</interface_name>
</network>
<input/>
@@ -181,7 +179,6 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>YaaG3</interface_name>
</network>
<input/>
@@ -219,7 +216,6 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>YaaG4</interface_name>
</network>
<input/>
@@ -257,7 +253,6 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>YaaG5</interface_name>
</network>
<input/>
@@ -295,7 +290,6 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>YaaG6</interface_name>
</network>
<input/>