acrn-config: update UI to support virtio devices

Add multi device editing UI for Virtio-net and virtio-blk devices.

Tracked-On: #4185
Signed-off-by: Shuang Zheng <shuang.zheng@intel.com>
This commit is contained in:
Shuang Zheng
2019-12-03 16:38:28 +08:00
committed by wenlingz
parent 5309e41528
commit 5eb8040284
3 changed files with 30 additions and 3 deletions

View File

@@ -510,7 +510,14 @@ function save_launch(generator=null) {
$("input").each(function(){
var id = $(this).attr('id');
var value = $(this).val();
if(id!='new_launch_name' && id!='board_info_file'
if(id.indexOf('virtio_devices,network')>=0 || id.indexOf('virtio_devices,block')>=0) {
if(id in launch_config) {
launch_config[id].push(value);
} else {
launch_config[id] = [value];
}
} else if(id!='new_launch_name' && id!='board_info_file'
&& id!='board_info_upload' && id!='scenario_name'
&& id!="launch_file") {
launch_config[id] = value;