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/>

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/>

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

@@ -114,8 +114,7 @@
<virtio_devices>
<console/>
<network>
<virtio_framework/>
<interface_name>WaaG</interface_name>
<interface_name>WaaG</interface_name>
</network>
<input/>
<block>./win10-ltsc.img</block>
@@ -155,8 +154,7 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>RT</interface_name>
<interface_name>RT</interface_name>
</network>
<input/>
<block>./core-image-weston-intel-corei7-64.wic</block>
@@ -193,8 +191,7 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>YaaG3</interface_name>
<interface_name>YaaG3</interface_name>
</network>
<input/>
<block>./YaaG.img</block>
@@ -231,8 +228,7 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>YaaG4</interface_name>
<interface_name>YaaG4</interface_name>
</network>
<input/>
<block>./YaaG.img</block>
@@ -269,8 +265,7 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>YaaG5</interface_name>
<interface_name>YaaG5</interface_name>
</network>
<input/>
<block>./YaaG.img</block>
@@ -307,8 +302,7 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>YaaG6</interface_name>
<interface_name>YaaG6</interface_name>
</network>
<input/>
<block>./YaaG.img</block>

View File

@@ -119,7 +119,6 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>WaaG</interface_name>
</network>
<input/>
@@ -161,7 +160,6 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>RT</interface_name>
</network>
<input/>

View File

@@ -175,7 +175,6 @@
<virtio_devices>
<console/>
<network>
<virtio_framework/>
<interface_name>WaaG</interface_name>
</network>
<input/>

View File

@@ -123,7 +123,6 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>RT</interface_name>
</network>
<input/>

View File

@@ -103,7 +103,6 @@
<virtio_devices>
<console/>
<network>
<virtio_framework/>
<interface_name>WaaG</interface_name>
</network>
<input/>

View File

@@ -103,7 +103,6 @@
<virtio_devices>
<console/>
<network>
<virtio_framework/>
<interface_name>WaaG</interface_name>
</network>
<input/>
@@ -144,7 +143,6 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>RT</interface_name>
</network>
<input/>

View File

@@ -103,7 +103,6 @@
<virtio_devices>
<console/>
<network>
<virtio_framework/>
<interface_name>WaaG</interface_name>
</network>
<input/>
@@ -144,7 +143,6 @@
<backend_type>stdio</backend_type>
</console>
<network>
<virtio_framework/>
<interface_name>RT</interface_name>
</network>
<input/>