WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Rik van Riel" <riel@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][RFC] add platform call for cpu idle information
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Mon, 08 Oct 2007 13:57:58 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 08 Oct 2007 05:57:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20071001185736.3ff3fc05@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20071001185736.3ff3fc05@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> 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

<Prev in Thread] Current Thread [Next in Thread>