[libvirt] vcpupin broken towards Xen using xend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]