acrn-hypervisor/misc/config_tools/launch_config
Kunhui-Li 93ea0075dd config_tools: update the regex pattern of offline cpu
The pattern matching logic (used by 'tr') is erroneous in the launch
script generation logic. While its purpose is to return the CPU number
from the 'cpuX' string (where 'X' is the CPU number),
it does it incorrectly for any multiple of 10. Examples:
- Processing 'cpu10' returns 1 (instead of 10)
- Processing 'cpu20' returns 2 (instead of 20)
This patch changes the [1-99] pattern matching to [0-9] which fixes it.

This error led to the incorrect CPU cores being used (and offlined)
for some VMs which could lead to confusing problems especially when
an exclusive use of that CPU core was assumed and expected (e.g. RTVM).

when CONFIG_BOOTPARAM_HOTPLUG_CPU0 is turned on in the kernel,
there is a risk that we try to offline cpu0. So we also add extra check
for cpu0 to aviod the risk.

Tracked-On: #6482
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
2021-09-09 09:17:14 +08:00
..
com.py config_tools: update the regex pattern of offline cpu 2021-09-09 09:17:14 +08:00
launch_cfg_gen.py config-tools: enable "allow_trigger_s5" through launch.xml 2021-06-04 13:54:26 +08:00
launch_item.py config-tools: enable "allow_trigger_s5" through launch.xml 2021-06-04 13:54:26 +08:00
pt.py config_tools: update the logic of getting gpu bdf 2021-08-26 20:08:38 +08:00
README acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00

Please run launch_cfg_gen.py to generate board related configuration files.

usage: python3 launch_cfg_gen.py [h] --board <board_info_file> --scenario <scenario_info_file> --launch <launch_info_file>
positional arguments:
  board_info_file  : file name of the board info XML
  scenario_info_file  : file name of the scenario info XML
  launch_info_file :  file name of the launch info
  uosid :  this is the relateive id for post launch vm in scenario info XML:[1..max post launch vm]