From: Henrik Persson Date: Thu, 30 Jul 2009 11:29:46 +0000 (+0200) Subject: Fix vcpupin on Xen problem X-Git-Tag: v0.7.0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9bece0c8f0bf0942019fe38a1d7d9907c16669e;p=thirdparty%2Flibvirt.git Fix vcpupin on Xen problem * 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 --- diff --git a/src/xend_internal.c b/src/xend_internal.c index e23ae2bca5..a6be97a04f 100644 --- a/src/xend_internal.c +++ b/src/xend_internal.c @@ -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 */