Skip to contentSkip to conversation

Fix xc_vcpu_{set/get}affinity

PATCH In review Masaki Kanno 2 participants 4 messages Feb 15, 2007 – Feb 16, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix xc_vcpu_{set/get}affinity

Hi,

I fixed the Xen-bugzilla No.900.

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=900

Best regards,
Kan

tools/libxc/xc_domain.c +2 -2
diff -r 6c63ff548888 tools/libxc/xc_domain.c
@@ -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-ia64-devel mailing list
[email protected]
http://lists.xensource.com/xen-ia64-devel

#1 lore raw

Hi,

Could you apply this patch? Or do you have comment?
If this issue is not solved, Xen/ia64 is not able to set affinity to virtual CPU in Xen 3.0.5.

Best regards,
Kan

Quoted 18 lines

Hi,

I fixed the Xen-bugzilla No.900.

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=900

Best regards,
Kan

-------------------------------text/plain-------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 5 lines · Masaki Kanno

Hi,

Could you apply this patch? Or do you have comment?
If this issue is not solved, Xen/ia64 is not able to set affinity to virtual CPU in Xen 3.0.5.

It's in the xen-unstable.hg staging tree, should show up whenever
that gets unstuck again.

Alex

Signature · 1 line
Alex Williamson                             HP Open Source & Linux Org.
#3 lore raw

Re: Re: [Xen-devel] [PATCH][Bug 900] Fixxc_vcpu_{set/get}affinity

Hi Alex,

Thanks for your information. That makes me feel relieved.

Best regards,
Kan

Quoted 14 lines · Masaki Kanno
Quoted 5 lines

Hi,

Could you apply this patch? Or do you have comment?
If this issue is not solved, Xen/ia64 is not able to set affinity to virtual CPU in Xen 3.0.5.

It's in the xen-unstable.hg staging tree, should show up whenever
that gets unstuck again.

Alex

Signature · 1 line
Alex Williamson                             HP Open Source & Linux Org.