# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1171546560 0
# Node ID 4bd0ea9c499f8bbf9544d45e788f943f8a313360
# Parent 70f05d642a2e1c0a688e17e39e622e930998e60b
libxc: Fix xc_vcpu_{set,get}_affinity (Xen-bugzilla No.900).
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=900
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
tools/libxc/xc_domain.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -r 70f05d642a2e -r 4bd0ea9c499f tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c Thu Feb 15 10:54:12 2007 +0000
+++ b/tools/libxc/xc_domain.c Thu Feb 15 13:36:00 2007 +0000
@@ -102,7 +102,7 @@ int xc_vcpu_setaffinity(int xc_handle,
domctl.domain = (domid_t)domid;
domctl.u.vcpuaffinity.vcpu = vcpu;
- bitmap_64_to_byte(local, &cpumap, sizeof (cpumap));
+ bitmap_64_to_byte(local, &cpumap, sizeof(cpumap) * 8);
set_xen_guest_handle(domctl.u.vcpuaffinity.cpumap.bitmap, local);
@@ -148,7 +148,7 @@ int xc_vcpu_getaffinity(int xc_handle,
ret = do_domctl(xc_handle, &domctl);
unlock_pages(local, sizeof (local));
- bitmap_byte_to_64(cpumap, local, sizeof (local));
+ bitmap_byte_to_64(cpumap, local, sizeof(local) * 8);
out:
return ret;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|