projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c4ca29
)
libxc: Fix the third argument of bitmap_64_to_byte in xc_tbuf_set_cpu_mask
author
Keir Fraser
<keir.fraser@citrix.com>
Thu, 31 Jan 2008 09:39:44 +0000
(09:39 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Thu, 31 Jan 2008 09:39:44 +0000
(09:39 +0000)
Signed-off-by: Eric Liu <eric.e.liu@intel.com>
tools/libxc/xc_tbuf.c
patch
|
blob
|
history
diff --git
a/tools/libxc/xc_tbuf.c
b/tools/libxc/xc_tbuf.c
index 266732608a40c16653ec0ca644e359bf05823d54..3948d0af7dcfdb2f2e23bde4113a248083b27460 100644
(file)
--- 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;