ia64/xen-unstable

changeset 13971:4bd0ea9c499f

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@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Thu Feb 15 13:36:00 2007 +0000 (2007-02-15)
parents 70f05d642a2e
children 89d315c7dcea
files tools/libxc/xc_domain.c
line diff
     1.1 --- a/tools/libxc/xc_domain.c	Thu Feb 15 10:54:12 2007 +0000
     1.2 +++ b/tools/libxc/xc_domain.c	Thu Feb 15 13:36:00 2007 +0000
     1.3 @@ -102,7 +102,7 @@ int xc_vcpu_setaffinity(int xc_handle,
     1.4      domctl.domain = (domid_t)domid;
     1.5      domctl.u.vcpuaffinity.vcpu    = vcpu;
     1.6  
     1.7 -    bitmap_64_to_byte(local, &cpumap, sizeof (cpumap));
     1.8 +    bitmap_64_to_byte(local, &cpumap, sizeof(cpumap) * 8);
     1.9  
    1.10      set_xen_guest_handle(domctl.u.vcpuaffinity.cpumap.bitmap, local);
    1.11  
    1.12 @@ -148,7 +148,7 @@ int xc_vcpu_getaffinity(int xc_handle,
    1.13      ret = do_domctl(xc_handle, &domctl);
    1.14  
    1.15      unlock_pages(local, sizeof (local));
    1.16 -    bitmap_byte_to_64(cpumap, local, sizeof (local));
    1.17 +    bitmap_byte_to_64(cpumap, local, sizeof(local) * 8);
    1.18   out:
    1.19      return ret;
    1.20  }