debuggers.hg
changeset 16989:475f4323b86a
libxc: Fix the third argument of bitmap_64_to_byte in xc_tbuf_set_cpu_mask
Signed-off-by: Eric Liu <eric.e.liu@intel.com>
Signed-off-by: Eric Liu <eric.e.liu@intel.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Thu Jan 31 09:39:44 2008 +0000 (2008-01-31) |
parents | 0faf620bc749 |
children | 1b4fa085bec6 |
files | tools/libxc/xc_tbuf.c |
line diff
1.1 --- a/tools/libxc/xc_tbuf.c Thu Jan 31 09:38:34 2008 +0000 1.2 +++ b/tools/libxc/xc_tbuf.c Thu Jan 31 09:39:44 2008 +0000 1.3 @@ -103,7 +103,7 @@ int xc_tbuf_set_cpu_mask(int xc_handle, 1.4 sysctl.interface_version = XEN_SYSCTL_INTERFACE_VERSION; 1.5 sysctl.u.tbuf_op.cmd = XEN_SYSCTL_TBUFOP_set_cpu_mask; 1.6 1.7 - bitmap_64_to_byte(bytemap, &mask64, sizeof (mask64)); 1.8 + bitmap_64_to_byte(bytemap, &mask64, sizeof (mask64) * 8); 1.9 1.10 set_xen_guest_handle(sysctl.u.tbuf_op.cpu_mask.bitmap, bytemap); 1.11 sysctl.u.tbuf_op.cpu_mask.nr_cpus = sizeof(bytemap) * 8;