config_tools: add psram config in launch config

add "--psram" in acrn dm arguments in launch scripts
when PSRAM_ENABLED=y and the VM is post-launched RTVM.

Tracked-On: #5649

Signed-off-by: Shuang Zheng <shuang.zheng@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Shuang Zheng 2021-03-03 18:59:22 +08:00 committed by wenlingz
parent 7c6a52037a
commit e3a8b09e62
1 changed files with 9 additions and 0 deletions

View File

@ -613,6 +613,15 @@ def dm_arg_set(names, sel, virt_io, dm, vmid, config):
# shm regions args set
shm_arg_set(dm, vmid, config)
# psram set
psram_enabled = 'n'
try:
psram_enabled = common.get_hv_item_tag(common.SCENARIO_INFO_FILE, "FEATURES", "PSRAM", "PSRAM_ENABLED")
except:
pass
if uos_type == "PREEMPT-RT LINUX" and psram_enabled == 'y':
print(" --psram \\", file=config)
for value in sel.bdf.values():
if value[vmid]:
print(" $intr_storm_monitor \\", file=config)