mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-30 13:05:45 +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:
@@ -13,11 +13,11 @@ def sos_cpu_affinity(etree):
|
||||
if common.get_node("//vm[load_order = 'SERVICE_VM']", etree) is None:
|
||||
return None
|
||||
|
||||
if common.get_node("//vm[load_order = 'SERVICE_VM' and count(cpu_affinity/pcpu_id)]", etree) is not None:
|
||||
if common.get_node("//vm[load_order = 'SERVICE_VM' and count(cpu_affinity//pcpu_id)]", etree) is not None:
|
||||
return None
|
||||
|
||||
sos_extend_all_cpus = board_cfg_lib.get_processor_info()
|
||||
pre_all_cpus = etree.xpath("//vm[load_order = 'PRE_LAUNCHED_VM']/cpu_affinity/pcpu_id/text()")
|
||||
pre_all_cpus = etree.xpath("//vm[load_order = 'PRE_LAUNCHED_VM']/cpu_affinity//pcpu_id/text()")
|
||||
|
||||
cpus_for_sos = list(set(sos_extend_all_cpus) - set(pre_all_cpus))
|
||||
return sorted(cpus_for_sos)
|
||||
|
Reference in New Issue
Block a user