acrn-hypervisor/misc/config_tools/data
Junjie Mao 7a1fbcf51f config_tools: add upgrader of scenario XMLs
With a bunch of dramatic improvement to the schema of scenario XML
recently, it is now non-trivial for users of previous releases to migrate
their scenario definitions to the next-gen schema, which will be a
major obstacle when upgrading to the next ACRN release.

In order to ease the upgrade of scenario XML, this patch introduces a
script that takes a scenario XML of previous releases and generates a new
one which satisfies the latest schema. The major data that can be migrated
include:

  - Virtual UART and shared memory configurations

  - VM types, load_order and guest flags

Other data are preserved as long as they are still needed according to the
schema. The script to print a list that summarizes the data that are
unintendedly discarded during the upgrade, so that users can double check
the results and edit the generated scenario using the configurator.

The upgrader share the same command-line interface of the default value
populator and scenario validator.

More upgrading logic will be added at the same time the schema is changed.

v1 -> v2:
  * The upgrader now pretty-prints the upgraded XML.
  * Apply the upgrader to the current scenario XMLs in the repo. The
    ordering of nodes are adjusted to align with the schema, but no
    essential changes are made.
  * Set the log level to INFO.

Tracked-On: #6690
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2022-03-15 10:22:37 +08:00
..
cfl-k700-i7 config_tools: add upgrader of scenario XMLs 2022-03-15 10:22:37 +08:00
generic_board config_tools: add upgrader of scenario XMLs 2022-03-15 10:22:37 +08:00
nuc11tnbi5 config_tools: add upgrader of scenario XMLs 2022-03-15 10:22:37 +08:00
qemu config_tools: add upgrader of scenario XMLs 2022-03-15 10:22:37 +08:00
sample_launch_scripts config_tool: remove "gpu" parameter when pass-thru IGD 2021-09-22 15:32:01 +08:00
tgl-vecow-spc-7100-Corei7 config_tools: add upgrader of scenario XMLs 2022-03-15 10:22:37 +08:00
whl-ipc-i5 config_tools: add upgrader of scenario XMLs 2022-03-15 10:22:37 +08:00