From: "Jan Beulich" Subject: Re: [PATCH][RFC] add platform call for cpu idle information Date: Mon, 08 Oct 2007 13:57:58 +0100 Message-ID: <470A4576.76E4.0078.0@novell.com> References: <20071001185736.3ff3fc05@cuia.boston.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20071001185736.3ff3fc05@cuia.boston.redhat.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rik van Riel Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Rik van Riel 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