acrn-config: enable item check for launch config tool

1. enable item check for acrn-dm args which set from webUI input.
2. remove 'cpu_num' tag from launch config xml.

v1-v2:
    1). add method to check 'cpu_num'/'mem_size' in config xml.

v2-v3:
    1). as 'vcpu_num' configured in scenario, the parameter for acrn-dm is no
longer needed, remove 'cpu_num' tag and its handler from launch config.
    2). add 'poweroff_channel' tag for generic config.

Tracked-On: #3811
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Wei Liu
2019-10-15 18:50:59 +08:00
committed by wenlingz
parent 98dc755ef1
commit aee3bc3622
28 changed files with 123 additions and 60 deletions

View File

@@ -2,7 +2,6 @@
<uos id="2">
<uos_type desc="UOS type">PREEMPT-RT LINUX</uos_type>
<rtos_type desc="UOS Realtime capability">Hard RT</rtos_type>
<cpu_num desc="max cpu number for the vm">1</cpu_num>
<mem_size desc="UOS memory size in MByte">1024</mem_size>
<gvt_args configurable="0" desc="GVT argument for the vm"></gvt_args>
<vbootloader desc="virtual bootloader method" readonly="true">ovmf</vbootloader>

View File

@@ -2,7 +2,6 @@
<uos id="3">
<uos_type desc="UOS type">VXWORKS</uos_type>
<rtos_type desc="UOS Realtime capability">Hard RT</rtos_type>
<cpu_num desc="max cpu number for the vm">1</cpu_num>
<mem_size desc="UOS memory size in MByte">2048</mem_size>
<gvt_args desc="GVT argument for the vm"></gvt_args>
<vbootloader desc="virtual bootloader method" readonly="true">ovmf</vbootloader>

View File

@@ -2,7 +2,6 @@
<uos id="1">
<uos_type desc="UOS type">WINDOWS</uos_type>
<rtos_type desc="UOS Realtime capability">no</rtos_type>
<cpu_num desc="max cpu number for the vm">1</cpu_num>
<mem_size desc="UOS memory size in MByte">4096</mem_size>
<gvt_args desc="GVT argument for the vm">64 448 8</gvt_args>
<vbootloader desc="virtual bootloader method">ovmf</vbootloader>

View File

@@ -2,7 +2,6 @@
<uos id="1">
<uos_type desc="UOS type">WINDOWS</uos_type>
<rtos_type desc="UOS Realtime capability">no</rtos_type>
<cpu_num desc="max cpu number for the vm">1</cpu_num>
<mem_size desc="UOS memory size in MByte">4096</mem_size>
<gvt_args desc="GVT argument for the vm">64 448 8</gvt_args>
<vbootloader desc="virtual bootloader method">ovmf</vbootloader>
@@ -30,7 +29,6 @@
<uos id="2">
<uos_type desc="UOS type">PREEMPT-RT LINUX</uos_type>
<rtos_type desc="UOS Realtime capability">Hard RT</rtos_type>
<cpu_num desc="max cpu number for the vm">1</cpu_num>
<mem_size desc="UOS memory size in MByte">1024</mem_size>
<gvt_args configurable="0" desc="GVT argument for the vm"></gvt_args>
<vbootloader desc="" readonly="true">ovmf</vbootloader>

View File

@@ -4,7 +4,6 @@
<rtos_type desc="UOS Realtime capability">no</rtos_type>
<mem_size desc="UOS memory size in MByte">4096</mem_size>
<gvt_args desc="GVT argument for the vm">64 448 8</gvt_args>
<cpu_num desc="max cpu number for the vm">1</cpu_num>
<vbootloader desc="virtual bootloader method">ovmf</vbootloader>
<rootfs_dev desc="rootfs partition devices" readonly="true">/dev/sda3</rootfs_dev>
<rootfs_img desc="rootfs image" readonly="true">./win10-ltsc.img</rootfs_img>
@@ -30,7 +29,6 @@
<uos id="2">
<uos_type desc="UOS type">PREEMPT-RT LINUX</uos_type>
<rtos_type desc="UOS Realtime capability">Hard RT</rtos_type>
<cpu_num desc="max cpu number for the vm">1</cpu_num>
<mem_size desc="UOS memory size in MByte">1024</mem_size>
<gvt_args configurable="0" desc="GVT argument for the vm"></gvt_args>
<vbootloader desc="" readonly="true">ovmf</vbootloader>
@@ -57,7 +55,6 @@
<uos id="3">
<uos_type desc="UOS type">VXWORKS</uos_type>
<rtos_type desc="UOS Realtime capability">Hard RT</rtos_type>
<cpu_num desc="max cpu number for the vm">1</cpu_num>
<mem_size desc="UOS memory size in MByte">2048</mem_size>
<gvt_args desc="GVT argument for the vm"></gvt_args>
<vbootloader desc="virtual boot loader method" readonly="true">ovmf</vbootloader>

View File

@@ -2,7 +2,6 @@
<uos id="1">
<uos_type desc="UOS type">CLEARLINUX</uos_type>
<rtos_type desc="UOS Realtime capability">no</rtos_type>
<cpu_num desc="max cpu number for the vm">1</cpu_num>
<mem_size desc="UOS memory size in MByte">2048</mem_size>
<gvt_args desc="GVT argument for the vm">64 448 8</gvt_args>
<vbootloader desc="virtual bootloader method" readonly="true">ovmf</vbootloader>

View File

@@ -2,7 +2,6 @@
<uos id="1">
<uos_type desc="UOS type">ZEPHYR</uos_type>
<rtos_type desc="UOS Realtime capability">no</rtos_type>
<cpu_num desc="max cpu number for the vm">1</cpu_num>
<mem_size desc="UOS memory size in MByte">128</mem_size>
<gvt_args desc="GVT argument for the vm"></gvt_args>
<vbootloader desc="virtual bootloader method" readonly="true">ovmf</vbootloader>