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] [PATCH] Move RTC from Qemu to HV

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Move RTC from Qemu to HV
From: "Yang, Xiaowei" <xiaowei.yang@xxxxxxxxx>
Date: Tue, 26 Sep 2006 23:05:14 +0800
Delivery-date: Tue, 26 Sep 2006 08:05:47 -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
Thread-index: AcbhfSgZ1zf5Dd22R7mr0rlT/3Bpdw==
Thread-topic: [PATCH] Move RTC from Qemu to HV
As we know some version of Windows (e.g 32bit Vista and 64bit Win2k3)
use RTC as main periodic timer at 64HZ. Currently RTC is in Qemu which
means its irq may be potentially lost due to Qemu not got scheduled on
time. And it's not sync with Guest TSC (adjusted by TSC_OFFSET). This
will cause many problems, like HVM time goes slow; TSC can't be measured
by cross referring to RTC time. 
This patch moves RTC from Qemu to HV, to resolve these problems. Since
we still need Qemu to fill out RTC ram with (local)time, fd/hd
information, HV will copy this ram from Qemu at startup and then
maintains it by itself. 
Another issue resolved by this patch is Windows which use RTC as
periodic timer hangs at login screen because there are no resources to
wait it up after it calls halt. After moving, RTC timer will wake it. 
One extra benefit is that Vista responses faster. It can be explained by
fewer IO port access cost and more accurate RTC time, which Vista may
use to refresh screen.


Attachment: rtc4.patch
Description: rtc4.patch

Xen-devel mailing list