WARNING - OLD ARCHIVES

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

xen-devel

[Xen-devel] [PATCH] Make HPET device model paranoid to counter wrap

To: "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Make HPET device model paranoid to counter wrap
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 21 Oct 2008 09:58:39 +0100
Cc: Peter Johnston <Peter.Johnston@xxxxxxxxxx>
Delivery-date: Tue, 21 Oct 2008 01:59:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckzWzWJc+3uGp9OEd2v1AAX8io7RQ==
Thread-topic: [PATCH] Make HPET device model paranoid to counter wrap
User-agent: Microsoft-Entourage/11.4.0.080122
Changing the hpet periodic timers to use vpt periodic timers means there is
no real reason to have a hpet callback at all.  However, the value of the
comparator is now computed when it is read (which is rarely), based on the
difference between the current time and the last comparator value.  This
works unless the current time has wrapped and passed the comparator
completely at least once since it was last read.  This patch reimplements
the hpet callback so that the comparator is updated on every timer
expiration (for a running timer).  It is probably not needed but better safe
than sorry.
 
Signed-off-by: Peter Johnston <peter.johnston@xxxxxxxxxx>

Attachment: hvm-hpet-paranoid
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Make HPET device model paranoid to counter wrap, Keir Fraser <=