mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-06 11:20:32 +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:
@@ -807,7 +807,7 @@ def main(args):
|
||||
if mmio_dev_node is not None and mmio_dev_node.text.strip() == 'y':
|
||||
dict_passthru_devices[vm_id].append(mmio_dev_node.tag)
|
||||
dict_pcpu_list[vm_id] = []
|
||||
for pcpu_id in vm.findall('cpu_affinity/pcpu_id'):
|
||||
for pcpu_id in vm.findall('cpu_affinity//pcpu_id'):
|
||||
if pcpu_id is not None and pcpu_id.text.strip() in pcpu_list:
|
||||
dict_pcpu_list[vm_id].append(int(pcpu_id.text))
|
||||
|
||||
|
Reference in New Issue
Block a user