From: Keir Fraser Subject: Re: Xen cpufreq support status: how to notify hypervisor of frequency change? Date: Mon, 10 Apr 2006 15:01:50 +0100 Message-ID: References: <200604081829.00179.yourst@yourst.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200604081829.00179.yourst@yourst.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: "Matt T. Yourst" Cc: yourst@cs.binghamton.edu, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 8 Apr 2006, at 23:29, Matt T. Yourst wrote: > This appears to happen because virtual timer interrupts do not get > delivered > on a regular basis for a few seconds following the frequency change. > > Assuming we want to keep the cpufreq driver itself in dom0, what's the > proper > way to notify the hypervisor that the CPU frequency has just changed, > so it > can adjust its timers like the cpufreq driver on the native kernel > does? > > I'd really like to have cpufreq working properly under Xen (for both > workstations and to a lesser extent servers), so what would be the > best way > to get this running? The TSC needs recalibrating on the affected CPU. This will require adapting local_time_calibration() in arch/x86/time.c. -- Keir