mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 18:14:53 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user