acrn-hypervisor/misc/config_tools/configurator/pyodide
dongpingx 56108c0a1f misc: Configurator Main VM Support
This patch is to support Main VM, i.e., the Main VM scenario is similar to
paritioned scenario, which select one VM as Main VM and owns the
physical resources.

I extracted all pcis from the board, substracted them with dispatched ones
and then make an assignment to replace the old enums.

This is implemented through two methods called updateSchema which is
to update schema on the current VM and updateLoadSchema which is
to maintain pcis, i.e. removed the pcis listed on the pre-launched VM,
while loading scenario.xml.

I tested locally and confirmed the functionalties above are implemented.

Signed-off-by: dongpingx <dongpingx.wu@intel.com>
Tracked-On: #8657
2024-07-18 10:41:48 +08:00
..
__init__.py config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
generateConfigSummary.py config-tools: generate config_summary.rst 2022-11-14 09:53:53 +08:00
generateLaunchScript.py config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
loadBoard.py config_tools: support dynamic enum names in XML schema 2022-08-29 17:48:12 +08:00
loadScenario.py config_tools: Add vue-json-schema-form and advanced custom component for IVSHMEM field 2022-05-08 15:52:28 +08:00
populateDefaultValues.py config_tools: set 'own_pcpu' of RTVM 2022-11-30 16:35:02 +08:00
pyodide.py config-tools: change name for board XML 2022-05-21 23:23:02 +08:00
README.md config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
tests.py config_tools: check XML file structures on load 2022-05-19 09:31:46 +08:00
updateSchema.py misc: Configurator Main VM Support 2024-07-18 10:41:48 +08:00
validateBoardStructure.py config_tools: check XML file structures on load 2022-05-19 09:31:46 +08:00
validateScenario.py config_tools: fix the issue that fail to import scenario 2022-06-29 13:53:42 +08:00
validateScenarioStructure.py config_tools: relax the checks of scenario XMLs from users 2022-06-29 13:53:42 +08:00

ACRN Configurator WASM Python Module

Every file must set __package__ = 'configurator.pyodide' before import, set this magic var can resolve python relative import error when we direct run it.

Function define

Every python script need a test function and a main function.

test

run script will call this function, so please set script default params in this function

main

in js side will use this function. like:

// after pyodide install all dependices
var launch_cfg_gen = pyodide.pyimport("configurator.pyodide.launch_cfg_gen").main;
var board_xml = this.readFile('xxxx/board.xml');
var scenario_xml = this.readFile('xxx/scenario.xml');
var launch_scripts = launch_cfg_gen(board_xml, scenario_xml);
console.log(launch_scripts)