[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[libvirt] vcpupin broken towards Xen using xend
- From: Henrik Persson <henrik e persson ericsson com>
- To: libvirt-list redhat com
- Cc:
- Subject: [libvirt] vcpupin broken towards Xen using xend
- Date: Thu, 30 Jul 2009 13:08:07 +0200
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 */
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]