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

[Xen-changelog] [xen-3.2-testing] libxc: Fix the third argument of bitmap_64_to_byte in



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1202134460 0
# Node ID 3862f16b049f3369c70fe4bc8c505474f1facd77
# Parent  9443e4a2751b064db162109a463a34eaa218bcf7
libxc: Fix the third argument of bitmap_64_to_byte in
xc_tbuf_set_cpu_mask
Signed-off-by: Eric Liu <eric.e.liu@xxxxxxxxx>
xen-unstable changeset:   16951:475f4323b86a9c15e81e31ba9a25d19c5fa51eb5
xen-unstable date:        Thu Jan 31 09:39:44 2008 +0000
---
 tools/libxc/xc_tbuf.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 9443e4a2751b -r 3862f16b049f tools/libxc/xc_tbuf.c
--- a/tools/libxc/xc_tbuf.c     Mon Feb 04 14:13:51 2008 +0000
+++ b/tools/libxc/xc_tbuf.c     Mon Feb 04 14:14:20 2008 +0000
@@ -103,7 +103,7 @@ int xc_tbuf_set_cpu_mask(int xc_handle, 
     sysctl.interface_version = XEN_SYSCTL_INTERFACE_VERSION;
     sysctl.u.tbuf_op.cmd  = XEN_SYSCTL_TBUFOP_set_cpu_mask;
 
-    bitmap_64_to_byte(bytemap, &mask64, sizeof (mask64));
+    bitmap_64_to_byte(bytemap, &mask64, sizeof (mask64) * 8);
 
     set_xen_guest_handle(sysctl.u.tbuf_op.cpu_mask.bitmap, bytemap);
     sysctl.u.tbuf_op.cpu_mask.nr_cpus = sizeof(bytemap) * 8;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.