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/
Home Products Support Community News


[Xen-devel] Xen cpufreq support status: how to notify hypervisor of freq

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Xen cpufreq support status: how to notify hypervisor of frequency change?
From: "Matt T. Yourst" <yourst@xxxxxxxxxx>
Date: Sat, 8 Apr 2006 18:29:00 -0400
Cc: yourst@xxxxxxxxxxxxxxxxx
Delivery-date: Mon, 10 Apr 2006 06:47:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8

I previously posted a patch to make the dom0 cpufreq drivers properly use 
DOM0_MSR (instead of wrmsr) to adjust the processor frequency and voltage. 

This does indeed adjust the frequency, but Xen seems to have major latency 
problems whenever the frequency change takes affect, causing various problems 
like losing mouse events, uncontrolled keyboard repeats, and choppy audio and 
video playback for a few seconds after the shift.

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?

- Matt Yourst

 Matt T. Yourst               yourst@xxxxxxxxxxxxxxxxx
 Binghamton University, Department of Computer Science

Xen-devel mailing list