From 5b43cc23a0de1bc1c20b5157e4f93d27a596b4ce Mon Sep 17 00:00:00 2001 From: Tsachy Shacham <tsachy@google.com> Date: Thu, 15 Sep 2011 10:58:44 +0200 Subject: [PATCH] hv_xen: fix use of CPU pinning constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit β¦ to be consistent with hv_kvm Signed-off-by: Tsachy Shacham <tsachy@google.com> Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/hypervisor/hv_xen.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/hypervisor/hv_xen.py b/lib/hypervisor/hv_xen.py index d41637c62..e0c56d0c4 100644 --- a/lib/hypervisor/hv_xen.py +++ b/lib/hypervisor/hv_xen.py @@ -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 -- GitLab