Skip to content
Snippets Groups Projects
Commit 5b43cc23 authored by Tsachy Shacham's avatar Tsachy Shacham Committed by Iustin Pop
Browse files

hv_xen: fix use of CPU pinning constants


… to be consistent with hv_kvm

Signed-off-by: default avatarTsachy Shacham <tsachy@google.com>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 714e7fbb
No related branches found
No related tags found
No related merge requests found
......@@ -95,8 +95,7 @@ class XenHypervisor(hv_base.BaseHypervisor):
if len(cpu_list) == 1:
all_cpu_mapping = cpu_list[0]
if (len(all_cpu_mapping) == 1 and
all_cpu_mapping[0] == constants.CPU_PINNING_ALL_VAL):
if all_cpu_mapping == constants.CPU_PINNING_OFF:
# If CPU pinning has 1 entry that's "all", then remove the
# parameter from the config file
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment