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] late lapic timer interrupts for hvm guest

To: Juergen Gross <juergen.gross@xxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] late lapic timer interrupts for hvm guest
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 28 Oct 2008 08:10:15 +0000
Cc:
Delivery-date: Tue, 28 Oct 2008 01:11:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4906C331.1070203@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: Ack41JuC2iC2gKTHEd2LtwAWy6hiGQ==
Thread-topic: [Xen-devel] late lapic timer interrupts for hvm guest
User-agent: Microsoft-Entourage/11.4.0.080122
On 28/10/08 07:45, "Juergen Gross" <juergen.gross@xxxxxxxxxxxxxxxxxxx>
wrote:

>      pt->scheduled = NOW() + period;
>      /*
>       * Offset LAPIC ticks from other timer ticks. Otherwise guests which use
>       * LAPIC ticks for process accounting can see long sequences of process
>       * ticks incorrectly accounted to interrupt processing.
>       */
>      if ( pt->source == PTSRC_lapic )
>          pt->scheduled += period >> 1;
> 
> We have ported our mainframe OS BS2000 to x86_64/XEN and we are using the
> lapic timer as the main timer interrupt source (one shot mode). Finally I've
> found the above coding which seems to be the root cause of late interrupts.
> 
> I think the problem mentioned in the comment won't occur if the guest uses
> the lapic timer in one shot mode with varying timer values (like BS2000). Or
> am I wrong here?

Right. That extra code could be conditional on setting up a periodic LAPIC
timer.

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>