diff --git a/misc/config_tools/launch_config/launch_cfg_gen.py b/misc/config_tools/launch_config/launch_cfg_gen.py index 631ee4140..88c43d948 100755 --- a/misc/config_tools/launch_config/launch_cfg_gen.py +++ b/misc/config_tools/launch_config/launch_cfg_gen.py @@ -11,6 +11,7 @@ import os import sys import copy +import shlex import argparse import logging @@ -417,6 +418,10 @@ def generate_for_one_vm(board_etree, hv_scenario_etree, vm_scenario_etree, vm_id ### # Lastly, conclude the device model parameters with the VM name ### + customized_parameters = eval_xpath(vm_scenario_etree, ".//customized_parameters/text()") + if customized_parameters is not None: + customized_parameters = shlex.quote(customized_parameters) + script.add_plain_dm_parameter(f"{customized_parameters}") script.add_plain_dm_parameter(f"{vm_name}") return script diff --git a/misc/config_tools/schema/config.xsd b/misc/config_tools/schema/config.xsd index d4b4f606e..e7a79fbc4 100644 --- a/misc/config_tools/schema/config.xsd +++ b/misc/config_tools/schema/config.xsd @@ -472,6 +472,11 @@ argument and memory. Enable virtualization of PCIe Precision Time Measurement (PTM) mechanism for devices with PTM capability and for real-time application. The hypervisor provides PCIe root port emulation instead of host bridge emulation for the VM. PTM coordinates timing between the device and root port with the device's local timebases without relying on software. + + + Specify the customized parameters that are appened to the device model when launching this VM. + + Enable virt-IO devices in post-launched VMs.