Hi,
During the update of the cpu affinity map format, the old format was broken (
'[' was switched with ']'). Also, the mapstr might contain garbage since the
string is not initiate (however buf incorrectly is). This small patch fixes
both the problems.
Regards,
Henrik
--- libvirt-0.7.0.org/src/xend_internal.c 2009-07-23 18:33:02.000000000 +0200
+++ libvirt-0.7.0/src/xend_internal.c 2009-07-30 12:57:33.975775000 +0200
@@ -3801,10 +3801,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 */
--
Libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list