config_tools: Add virtio_device example for all the platforms

We should add virtio_devices network / block / console nodes
to the generic_board scenario xmls.
But now we found some of the hybrid / hybrid_rt even the shared xml
are missing virtio devices block nodes, or not user will generate
invalid launch scripts.

Tracked-On: #7392
Signed-off-by: lirui34 <ruix.li@intel.com>
This commit is contained in:
lirui34 2022-04-28 05:40:17 -04:00 committed by acrnsi-robot
parent 79442cbc96
commit b7f50ef980
6 changed files with 213 additions and 13 deletions

View File

@ -178,8 +178,26 @@
<vcpu_clos>0</vcpu_clos>
<vcpu_clos>0</vcpu_clos>
</clos>
<memory>
<size>4096</size>
</memory>
<console_vuart>COM Port 1</console_vuart>
<pci_devs>
<pci_dev>00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] (rev 02)</pci_dev>
</pci_devs>
<PTM>n</PTM>
<os_type>Windows OS</os_type>
<vbootloader>y</vbootloader>
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console/>
<network>
<interface_name>WaaG</interface_name>
</network>
<input/>
<block>./win10-ltsc.img</block>
</virtio_devices>
</vm>
<vm id="3">
<load_order>POST_LAUNCHED_VM</load_order>
@ -197,7 +215,25 @@
<vcpu_clos>0</vcpu_clos>
<vcpu_clos>0</vcpu_clos>
</clos>
<memory>
<size>512</size>
</memory>
<console_vuart>COM Port 1</console_vuart>
<PTM>n</PTM>
<os_type>Non-Windows OS</os_type>
<vbootloader>y</vbootloader>
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console>
<use_type>Virtio console</use_type>
<backend_type>stdio</backend_type>
</console>
<network>
<interface_name>YaaG</interface_name>
</network>
<input/>
<block>./YaaG.img</block>
</virtio_devices>
</vm>
</acrn-config>

View File

@ -153,8 +153,26 @@
<vcpu_clos>0</vcpu_clos>
<vcpu_clos>0</vcpu_clos>
</clos>
<memory>
<size>4096</size>
</memory>
<console_vuart>COM Port 1</console_vuart>
<pci_devs>
<pci_dev>00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)</pci_dev>
</pci_devs>
<PTM>n</PTM>
<os_type>Windows OS</os_type>
<vbootloader>y</vbootloader>
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console/>
<network>
<interface_name>WaaG</interface_name>
</network>
<input/>
<block>./win10-ltsc.img</block>
</virtio_devices>
</vm>
<vm id="3">
<load_order>POST_LAUNCHED_VM</load_order>
@ -168,7 +186,25 @@
<clos>
<vcpu_clos>0</vcpu_clos>
</clos>
<memory>
<size>512</size>
</memory>
<console_vuart>COM Port 1</console_vuart>
<PTM>n</PTM>
<os_type>Non-Windows OS</os_type>
<vbootloader>y</vbootloader>
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console>
<use_type>Virtio console</use_type>
<backend_type>stdio</backend_type>
</console>
<network>
<interface_name>YaaG</interface_name>
</network>
<input/>
<block>./YaaG.img</block>
</virtio_devices>
</vm>
</acrn-config>

View File

@ -133,8 +133,29 @@
<clos>
<vcpu_clos>0</vcpu_clos>
</clos>
<memory>
<size>4096</size>
</memory>
<console_vuart>COM Port 1</console_vuart>
<pci_devs>
<pci_dev>00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)</pci_dev>
</pci_devs>
<PTM>n</PTM>
<os_type>Windows OS</os_type>
<vbootloader>y</vbootloader>
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console>
<use_type>Virtio console</use_type>
<backend_type>stdio</backend_type>
</console>
<network>
<interface_name>WaaG</interface_name>
</network>
<input/>
<block>./win10-ltsc.img</block>
</virtio_devices>
</vm>
<vm id="3">
<load_order>POST_LAUNCHED_VM</load_order>
@ -148,7 +169,25 @@
<clos>
<vcpu_clos>0</vcpu_clos>
</clos>
<memory>
<size>512</size>
</memory>
<console_vuart>COM Port 1</console_vuart>
<PTM>n</PTM>
<os_type>Non-Windows OS</os_type>
<vbootloader>y</vbootloader>
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console>
<use_type>Virtio console</use_type>
<backend_type>stdio</backend_type>
</console>
<network>
<interface_name>YaaG</interface_name>
</network>
<input/>
<block>./YaaG.img</block>
</virtio_devices>
</vm>
</acrn-config>

View File

@ -130,7 +130,58 @@
<clos>
<vcpu_clos>0</vcpu_clos>
</clos>
<memory>
<size>4096</size>
</memory>
<console_vuart>COM Port 1</console_vuart>
<pci_devs>
<pci_dev>00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] (rev 02)</pci_dev>
</pci_devs>
<PTM>n</PTM>
<os_type>Windows OS</os_type>
<vbootloader>y</vbootloader>
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console/>
<network>
<interface_name>WaaG</interface_name>
</network>
<input/>
<block>./win10-ltsc.img</block>
</virtio_devices>
</vm>
<vm id="3">
<load_order>POST_LAUNCHED_VM</load_order>
<vm_type>STANDARD_VM</vm_type>
<name>POST_STD_VM2</name>
<cpu_affinity>
<pcpu>
<pcpu_id>2</pcpu_id>
</pcpu>
</cpu_affinity>
<clos>
<vcpu_clos>0</vcpu_clos>
</clos>
<memory>
<size>512</size>
</memory>
<console_vuart>COM Port 1</console_vuart>
<PTM>n</PTM>
<os_type>Non-Windows OS</os_type>
<vbootloader>y</vbootloader>
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console>
<use_type>Virtio console</use_type>
<backend_type>stdio</backend_type>
</console>
<network>
<interface_name>YaaG</interface_name>
</network>
<input/>
<block>./YaaG.img</block>
</virtio_devices>
</vm>
</acrn-config>

View File

@ -193,7 +193,25 @@
<clos>
<vcpu_clos>0</vcpu_clos>
</clos>
<memory>
<size>512</size>
</memory>
<console_vuart>COM Port 1</console_vuart>
<PTM>n</PTM>
<os_type>Non-Windows OS</os_type>
<vbootloader>y</vbootloader>
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console>
<use_type>Virtio console</use_type>
<backend_type>stdio</backend_type>
</console>
<network>
<interface_name>YaaG</interface_name>
</network>
<input/>
<block>./YaaG.img</block>
</virtio_devices>
</vm>
</acrn-config>

View File

@ -98,7 +98,7 @@
<PTM>n</PTM>
<os_type>Windows OS</os_type>
<vbootloader>y</vbootloader>
<vuart0>y</vuart0>
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console/>
@ -175,10 +175,15 @@
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console/>
<network/>
<console>
<use_type>Virtio console</use_type>
<backend_type>stdio</backend_type>
</console>
<network>
<interface_name>YaaG3</interface_name>
</network>
<input/>
<block/>
<block>./YaaG.img</block>
</virtio_devices>
</vm>
<vm id="4">
@ -207,10 +212,15 @@
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console/>
<network/>
<console>
<use_type>Virtio console</use_type>
<backend_type>stdio</backend_type>
</console>
<network>
<interface_name>YaaG4</interface_name>
</network>
<input/>
<block/>
<block>./YaaG.img</block>
</virtio_devices>
</vm>
<vm id="5">
@ -239,10 +249,15 @@
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console/>
<network/>
<console>
<use_type>Virtio console</use_type>
<backend_type>stdio</backend_type>
</console>
<network>
<interface_name>YaaG5</interface_name>
</network>
<input/>
<block/>
<block>./YaaG.img</block>
</virtio_devices>
</vm>
<vm id="6">
@ -271,10 +286,15 @@
<vuart0>n</vuart0>
<usb_xhci/>
<virtio_devices>
<console/>
<network/>
<console>
<use_type>Virtio console</use_type>
<backend_type>stdio</backend_type>
</console>
<network>
<interface_name>YaaG6</interface_name>
</network>
<input/>
<block/>
<block>./YaaG.img</block>
</virtio_devices>
</vm>
</acrn-config>