[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] passing a cpumask to the hypervisor as an uint8_t


  • To: "Langsdorf, Mark" <mark.langsdorf@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
  • Date: Sat, 27 Oct 2007 08:27:22 +0100
  • Delivery-date: Sat, 27 Oct 2007 00:22:39 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcgX7nd+mmmnujxhRQa3OYHSkbPoewAfFjJ0
  • Thread-topic: [Xen-devel] passing a cpumask to the hypervisor as an uint8_t

Actually, on x86 you don't have to do anything. Little-endian bitmaps do not
have a granularity (byte-chunked bitmap is same as a longword-chunked
bitmap).

 -- Keir

On 26/10/07 17:37, "Langsdorf, Mark" <mark.langsdorf@xxxxxxx> wrote:

> Keir, Kevin -
> 
> Could you please provide the code snippet
> for passing the cpumask out of the Linux
> dom0 to the Xen hypervisor in the new
> getidletime platform op?  Linux cpumasks
> are structures to an array of unsigned
> long, but getidletime takes it as a
> XEN_GUEST_HANDLE(uint8_t).  I can't figure
> out the conversation.  Thanks in advanace.
> 
> -Mark Langsdorf
> Operating System Research Center
> AMD
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.