File vcpupin-fix.patch of Package libvirt
commit c9bece0c8f0bf0942019fe38a1d7d9907c16669e
Author: Henrik Persson <henrik.e.persson@ericsson.com>
Date: Thu Jul 30 13:29:46 2009 +0200
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
Index: libvirt-0.4.6/src/xend_internal.c
===================================================================
--- libvirt-0.4.6.orig/src/xend_internal.c
+++ libvirt-0.4.6/src/xend_internal.c
@@ -3718,10 +3718,10 @@ xenDaemonDomainPinVcpu(virDomainPtr doma
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 */