All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][Bug 900] Fix xc_vcpu_{set/get}affinity
@ 2007-02-15  9:19 Masaki Kanno
  2007-02-16  5:06 ` [Xen-devel] " Masaki Kanno
  0 siblings, 1 reply; 4+ messages in thread
From: Masaki Kanno @ 2007-02-15  9:19 UTC (permalink / raw)
  To: xen-ia64-devel, xen-devel

[-- Attachment #1: Mail message body --]
[-- Type: text/plain, Size: 179 bytes --]

Hi,

I fixed the Xen-bugzilla No.900.

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


Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>

Best regards,
 Kan


[-- Attachment #2: xc_vcpu_affinity.patch --]
[-- Type: application/octet-stream, Size: 785 bytes --]

diff -r 6c63ff548888 tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c	Wed Feb 14 10:14:37 2007 -0700
+++ b/tools/libxc/xc_domain.c	Fri Feb 16 03:04:55 2007 +0900
@@ -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;
 }

[-- Attachment #3: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@lists.xensource.com
http://lists.xensource.com/xen-ia64-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xen-devel] [PATCH][Bug 900] Fix xc_vcpu_{set/get}affinity
  2007-02-15  9:19 [PATCH][Bug 900] Fix xc_vcpu_{set/get}affinity Masaki Kanno
@ 2007-02-16  5:06 ` Masaki Kanno
  2007-02-16  5:13   ` [Xen-ia64-devel] " Alex Williamson
  0 siblings, 1 reply; 4+ messages in thread
From: Masaki Kanno @ 2007-02-16  5:06 UTC (permalink / raw)
  To: xen-ia64-devel, xen-devel

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

>Hi,
>
>I fixed the Xen-bugzilla No.900.
>
>http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=900
>
>
>Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
>
>Best regards,
> Kan
>
>
>-------------------------------text/plain-------------------------------
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@lists.xensource.com
>http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xen-ia64-devel] Re: [PATCH][Bug 900] Fix xc_vcpu_{set/get}affinity
  2007-02-16  5:06 ` [Xen-devel] " Masaki Kanno
@ 2007-02-16  5:13   ` Alex Williamson
  2007-02-16  5:30     ` Re: [Xen-devel] [PATCH][Bug 900] Fixxc_vcpu_{set/get}affinity Masaki Kanno
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Williamson @ 2007-02-16  5:13 UTC (permalink / raw)
  To: Masaki Kanno; +Cc: xen-devel, xen-ia64-devel

On Fri, 2007-02-16 at 14:06 +0900, Masaki Kanno wrote:
> 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

-- 
Alex Williamson                             HP Open Source & Linux Org.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: [Xen-devel] [PATCH][Bug 900] Fixxc_vcpu_{set/get}affinity
  2007-02-16  5:13   ` [Xen-ia64-devel] " Alex Williamson
@ 2007-02-16  5:30     ` Masaki Kanno
  0 siblings, 0 replies; 4+ messages in thread
From: Masaki Kanno @ 2007-02-16  5:30 UTC (permalink / raw)
  To: Alex Williamson; +Cc: xen-devel, xen-ia64-devel

Hi Alex,

Thanks for your information. That makes me feel relieved. 

Best regards,
 Kan

>On Fri, 2007-02-16 at 14:06 +0900, Masaki Kanno wrote:
>> 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
>
>-- 
>Alex Williamson                             HP Open Source & Linux Org.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-16  5:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-15  9:19 [PATCH][Bug 900] Fix xc_vcpu_{set/get}affinity Masaki Kanno
2007-02-16  5:06 ` [Xen-devel] " Masaki Kanno
2007-02-16  5:13   ` [Xen-ia64-devel] " Alex Williamson
2007-02-16  5:30     ` Re: [Xen-devel] [PATCH][Bug 900] Fixxc_vcpu_{set/get}affinity Masaki Kanno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.