mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-11 13:49:39 +00:00
config_tools: track whether each vCPU is used for real-time or not
According to DX recommendations, this patch adds a Boolean item to each vCPU which allows users to specify the vCPUs intended for real-time-critical tasks. This information will be used to organize other widgets (CAT-related ones for now) in the configurator to tell apart real-time ones from the others for better clarity. All vCPUs are by default not real-time-critical, except those in the RT VMs which are. Tracked-On: #6690 Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -206,7 +206,7 @@ def generate_for_one_vm(board_etree, hv_scenario_etree, vm_scenario_etree, vm_id
|
||||
###
|
||||
# CPU and memory resources
|
||||
###
|
||||
cpus = set(eval_xpath_all(vm_scenario_etree, ".//cpu_affinity/pcpu_id[text() != '']/text()"))
|
||||
cpus = set(eval_xpath_all(vm_scenario_etree, ".//cpu_affinity//pcpu_id[text() != '']/text()"))
|
||||
lapic_ids = cpu_id_to_lapic_id(board_etree, vm_name, cpus)
|
||||
if lapic_ids:
|
||||
script.add_dynamic_dm_parameter("add_cpus", f"{' '.join([str(x) for x in sorted(lapic_ids)])}")
|
||||
|
Reference in New Issue
Block a user