diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-01-31 09:39:44 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-01-31 09:39:44 +0000 |
commit | aba29a98bcd81046b6a9e32a6e8810e8c9fec987 (patch) | |
tree | 0da73413a708d69a0a5034e1c070e0aaa8fd0d44 /tools/libxc/xc_tbuf.c | |
parent | 4c4ca29ff93143cac29b32cb49c58570244a03b7 (diff) | |
download | xen-aba29a98bcd81046b6a9e32a6e8810e8c9fec987.tar.gz xen-aba29a98bcd81046b6a9e32a6e8810e8c9fec987.tar.bz2 xen-aba29a98bcd81046b6a9e32a6e8810e8c9fec987.zip |
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>
Diffstat (limited to 'tools/libxc/xc_tbuf.c')
-rw-r--r-- | tools/libxc/xc_tbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_tbuf.c b/tools/libxc/xc_tbuf.c index 266732608a..3948d0af7d 100644 --- a/tools/libxc/xc_tbuf.c +++ b/tools/libxc/xc_tbuf.c @@ -103,7 +103,7 @@ int xc_tbuf_set_cpu_mask(int xc_handle, uint32_t mask) 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; |