From c607b1f747cd941341232a60f550bc4b0aad723a Mon Sep 17 00:00:00 2001
From: Tsachy Shacham <tsachy@google.com>
Date: Fri, 16 Sep 2011 12:04:19 +0200
Subject: [PATCH] hv_kvm: bugfix
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Tsachy Shacham <tsachy@google.com>
Signed-off-by: RenΓ© Nussbaumer <rn@google.com>
Reviewed-by: RenΓ© Nussbaumer <rn@google.com>
---
 lib/hypervisor/hv_kvm.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py
index 31f9d14c5..7b2edf48c 100644
--- a/lib/hypervisor/hv_kvm.py
+++ b/lib/hypervisor/hv_kvm.py
@@ -1380,6 +1380,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
     # Note: CPU pinning is using up_hvp since changes take effect
     # during instance startup anyway, and to avoid problems when soft
     # rebooting the instance.
+    cpu_pinning = False
     if up_hvp.get(constants.HV_CPU_MASK, None):
       cpu_pinning = True
       if not startup_paused:
-- 
GitLab