From e3a8b09e628bbd221aa0182271136e330d439790 Mon Sep 17 00:00:00 2001 From: Shuang Zheng Date: Wed, 3 Mar 2021 18:59:22 +0800 Subject: [PATCH] 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 Acked-by: Victor Sun --- misc/config_tools/launch_config/com.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/misc/config_tools/launch_config/com.py b/misc/config_tools/launch_config/com.py index efa4467f8..fbd4fd6b7 100644 --- a/misc/config_tools/launch_config/com.py +++ b/misc/config_tools/launch_config/com.py @@ -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)