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

RE: [Xen-devel] [PATCH] Add a timer mode that disables pending missed ti

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] Add a timer mode that disables pending missed ticks
From: "Shan, Haitao" <haitao.shan@xxxxxxxxx>
Date: Wed, 31 Oct 2007 11:10:17 +0800
Cc: Dave Winchell <dwinchell@xxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, "Dong, Eddie" <eddie.dong@xxxxxxxxx>, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Delivery-date: Tue, 30 Oct 2007 20:15:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C34D0886.17A54%Keir.Fraser@xxxxxxxxxxxx>
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>
References: <823A93EED437D048963A3697DB0E35DED56B99@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C34D0886.17A54%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcgbARjJKKG5c3pgTC6LtDRffvi9TwADqFEmABaaAJA=
Thread-topic: [Xen-devel] [PATCH] Add a timer mode that disables pending missed ticks
Hi, Keir, Dave
 
Sorry, I made a silly mistake for my last patch. The attached will fix it.
 
This piece of code should actually be added in pt_restore_timer rather than pt_timer_fn.
+        else if ( (NOW() - pt->scheduled) >= 0 )
+        {
+            pt->pending_intr_nr++;
+            pt->scheduled = NOW() + pt->period;
+        }

Best Regards
Haitao Shan

 


From: Keir Fraser [mailto:Keir.Fraser@xxxxxxxxxxxx]
Sent: 2007年10月31日 0:13
To: Shan, Haitao
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Dong, Eddie; Jiang, Yunhong; Dave Winchell
Subject: Re: [Xen-devel] [PATCH] Add a timer mode that disables pending missed ticks


Applied as c/s 16274. Please take a look and make sure the mode works as you expect.

 -- Keir

On 30/10/07 14:28, "Shan, Haitao" <haitao.shan@xxxxxxxxx> wrote:

Hi, Keir,

This patch adds a new timer mode, in which no missed ticks is calculated. This can be used with latest x86_64 linux guest, since it can pick up missed ticks themselves.

 <<no_missed_ticks.patch>>

Best Regards
Haitao Shan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

Attachment: no_missed_ticks_fix.patch
Description: no_missed_ticks_fix.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>