mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
config_tool: Update CPU affinity error message
Update CPU affinity error message Co-authored-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
parent
9dfd14e6ad
commit
acc1c7fa0a
@ -361,7 +361,7 @@ def vm_cpu_affinity_check(scenario_file, cpu_affinity):
|
|||||||
for vm_i,cpu in cpu_affinity.items():
|
for vm_i,cpu in cpu_affinity.items():
|
||||||
if cpu is not None and cpu in use_cpus and not cpu_sharing_enabled:
|
if cpu is not None and cpu in use_cpus and not cpu_sharing_enabled:
|
||||||
key = "vm:id={},{}".format(vm_i, 'pcpu_id')
|
key = "vm:id={},{}".format(vm_i, 'pcpu_id')
|
||||||
err_dic[key] = "The same pcpu was configurated in <pcpu_id>/<cpu_affinity>, but CPU sharing is disabled by 'SCHED_NOOP'. Please re-configurate them!"
|
err_dic[key] = "The same pCPU was configured in <pcpu_id>/<cpu_affinity>, but CPU sharing is disabled by 'SCHED_NOOP'. Please enable CPU sharing or update your CPU affinity configuration."
|
||||||
return err_dic
|
return err_dic
|
||||||
else:
|
else:
|
||||||
use_cpus.append(cpu)
|
use_cpus.append(cpu)
|
||||||
|
Loading…
Reference in New Issue
Block a user