Langsdorf, Mark
2007-Oct-26 16:37 UTC
[Xen-devel] passing a cpumask to the hypervisor as an uint8_t
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@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2007-Oct-27 07:27 UTC
Re: [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@amd.com> 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@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel