From: "Jan Beulich" Subject: Re: [PATCH] 1/2: cpufreq/PowerNow! in Xen: Time and platform changes Date: Fri, 31 Aug 2007 09:41:47 +0100 Message-ID: <46D7F06B.76E4.0078.0@novell.com> References: <46D70B20.2010108@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <46D70B20.2010108@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: Keir Fraser , Kevin Tian , xen-devel@lists.xensource.com, Mark Langsdorf List-Id: xen-devel@lists.xenproject.org >Here is the missing piece of the puzzle. A platform >hypercall operation to get system wide idle time. Two things I'm not clear about here: - How is the caller going to be able to associate the logical CPU numbers returned with vCPU numbers? - How is the caller supposed to deal with logical CPUs it has no vCPU for? I continue to think that it is not reasonable to expect vCPUs to be pinned = just for the purpose of doing frequency control (and even then I don't think = there's a guaranteed association between vCPU and logical CPU numbers), as much as I don't think it is a good idea to require dom0 to have as many vCPUs = as there are logical CPUs (which isn't even possible on systems with >32 = logical CPUs). Jan