mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-15 03:40:03 +00:00
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> |
||
---|---|---|
.. | ||
com.py | ||
launch_cfg_gen.py | ||
launch_item.py | ||
pt.py | ||
README |
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]