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

Re: [Xen-devel] [PATCH][RFC] add platform call for cpu idle information



>>> Rik van Riel <riel@xxxxxxxxxx> 02.10.07 00:57 >>>
>In order to make cpu frequency scaling useful from the
>dom0 kernel, the cpu idle time really needs to be available
>through a hypercall that can be invoked from the kernel.
>
>This patch basically cut'n'pastes the sysctl getcpuinfo
>code to platform_hypercall.c.
>
>Unfortunately due to some COMPAT macros the code does not
>compile. I have been trying to make it compile all afternoon,
>but some magic macros seem to keep getting in my way...
>
>What do I need to change to make the below compile on x86_64?

You'd definitely need to extend the #ifndef COMPAT section close to the top
of the file with

# undef copy_to_compat_offset
# define copy_to_compat_offset copy_to_guest_offset

I can't immediately see what else might be needed.

Jan


_______________________________________________
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®.