acrn-config: change gvt_args from selectbox to editbox

1. Some VMs don't need pci-gvt args or or need specific configuration
for 'gvt_args' item tag, this patch changes from selectable behavior to
editable for 'gvt_args' item from webUI.

2. Modify the description for gvt_args item tag from launch config xmls.

Tracked-On: #3854
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-12-08 15:17:41 +08:00
committed by wenlingz
parent 05682b2bad
commit d699347e7b
39 changed files with 46 additions and 47 deletions

View File

@@ -225,11 +225,13 @@ def interrupt_storm(pt_sel, config):
print("", file=config)
def gvt_arg_set(uos_type, config):
def gvt_arg_set(dm, vmid, uos_type, config):
if uos_type not in ('CLEARLINUX', 'ANDROID', 'ALIOS', 'WINDOWS'):
return
print(' -s 2,pci-gvt -G "$2" \\', file=config)
gvt_args = dm['gvt_args'][vmid]
if gvt_args:
print(' -s 2,pci-gvt -G "$2" \\', file=config)
def log_level_set(uos_type, config):
@@ -546,7 +548,7 @@ def dm_arg_set(names, sel, virt_io, dm, vmid, config):
virtio_args_set(dm, virt_io, vmid, config)
# GVT args set
gvt_arg_set(uos_type, config)
gvt_arg_set(dm, vmid, uos_type, config)
# vbootloader setting
vboot_arg_set(dm, vmid, config)