From: Keir Fraser Subject: Re: cpufreq status information Date: Mon, 08 Sep 2008 14:38:41 +0100 Message-ID: References: <48C540DC.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48C540DC.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 8/9/08 14:12, "Jan Beulich" wrote: > Trying to understand whether CPU frequency scaling is actually working on > a system currently requires (afaics) source patches, as there is no way to > get the current state of a CPU. Even if this is intentional, this doesn't seem > very helpful when considering to make this functionality available to > customers: I'm certain quite a few will ask how they can tell whether this > is actually working. Well, they might notice that their battery lasts longer than an hour. :-) > So I'm basically considering to add a generic mechanism first, and then > make cpufreq the first user of it. The question just is - use a completely > new (guest-ro) per-vCPU page, perhaps with chained descriptors rather > than a fixed layout, or extend the vCPU info structure, but e.g. require > the guest to use VCPUOP_register_vcpu_info to gain access to all > structure fields. I'm skeptical about throwing in more shared-memory structures between Xen and guests anyway. It doesn't even seem a good fit here since this info is not of great interest to most guests in my opinion. I presume most users' curiosities will be satisfied by being able to poll CPU frequencies/voltages from dom0 via a hypercall. -- Keir