acrn-config: fix the issue of generating the vuart with incorrect name

When generate the launch scripts, the pm_by_vuart setting of pm_notify_channel
in launch setting should be according to the config of SOS vuart1.

Tracked-On: #5154

Signed-off-by: Shixiong Zhang <shixiongx.zhang@intel.com>
This commit is contained in:
Shixiong Zhang 2020-09-14 02:17:56 -04:00 committed by wenlingz
parent 0660ab5a7b
commit fdbdf1aa5f
2 changed files with 3 additions and 2 deletions

View File

@ -587,7 +587,8 @@ def dm_arg_set(names, sel, virt_io, dm, vmid, config):
err_key = "uos:id={}:poweroff_channel".format(vmid)
launch_cfg_lib.ERR_LIST[err_key] = "vuart1 of VM{} in scenario file should select 'SOS_COM2_BASE'".format(sos_vmid + vmid)
return
print(" {} \\".format(launch_cfg_lib.PM_CHANNEL_DIC[pm_key]), file=config)
scenario_cfg_lib.get_sos_vuart_settings()
print(" {} \\".format(launch_cfg_lib.PM_CHANNEL_DIC[pm_key] + scenario_cfg_lib.SOS_UART1_VALID_NUM), file=config)
# set logger_setting for all VMs
print(" $logger_setting \\", file=config)

View File

@ -49,7 +49,7 @@ PM_CHANNEL_DIC = {
'IOC':'--pm_notify_channel ioc',
'PowerButton':'--pm_notify_channel power_button',
'vuart1(pty)':'--pm_notify_channel uart \\\n --pm_by_vuart pty,/run/acrn/life_mngr_$vm_name \\\n -l com2,/run/acrn/life_mngr_$vm_name',
'vuart1(tty)':'--pm_notify_channel uart --pm_by_vuart tty,/dev/ttyS1',
'vuart1(tty)':'--pm_notify_channel uart --pm_by_vuart tty,/dev/',
}
MOUNT_FLAG_DIC = {}