]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix vcpupin on Xen problem
authorHenrik Persson <henrik.e.persson@ericsson.com>
Thu, 30 Jul 2009 11:29:46 +0000 (13:29 +0200)
committerDaniel Veillard <veillard@redhat.com>
Thu, 30 Jul 2009 11:32:03 +0000 (13:32 +0200)
* src/xend_internal.c: the update on the cpu affinity map format
  had na error and made the changes in the wrong buffer, fix those

src/xend_internal.c

index e23ae2bca5ec25fa92e236bc6634bec76f58b61a..a6be97a04f09fee7620ae18f3c29a6562ce3f558 100644 (file)
@@ -3801,10 +3801,10 @@ xenDaemonDomainPinVcpu(virDomainPtr domain, unsigned int vcpu,
 
     priv = (xenUnifiedPrivatePtr) domain->conn->privateData;
     if (priv->xendConfigVersion < 3) {
-        buf[0] = ']';
-        buf[1] = 0;
+        mapstr[0] = '[';
+        mapstr[1] = 0;
     } else {
-        buf[0] = 0;
+        mapstr[0] = 0;
     }
 
     /* from bit map, build character string of mapped CPU numbers */