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] Interrupt for HVM guests

To: Emre Can Sezer <ecsezer@xxxxxxxx>
Subject: Re: [Xen-devel] Interrupt for HVM guests
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 08 Jun 2009 22:29:24 +0100
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 08 Jun 2009 14:29:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A2D658A.7030707@xxxxxxxx>
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: Acnobt2YdP2Wo8THSZuRk5ZqLfE3/QAEVPc0
Thread-topic: [Xen-devel] Interrupt for HVM guests
User-agent: Microsoft-Entourage/12.17.0.090302
On 08/06/2009 20:24, "Emre Can Sezer" <ecsezer@xxxxxxxx> wrote:

> Thanks Keir.  I do have another question though.  I am trying to find
> out whether a page fault occurred during an interrupt handling.  I
> implemented two page tables for HVM guests that help me track execution
> within the guest kernel.  So there is a very good chance that an
> interrupt might also result in a page fault as soon as it is injected.
> I tried counting these events by checking the IF flags in regs->rflags
> and also looking at VIF and VIP flags without success.  Is this a viable
> method for determining whether a page fault was caused during interrupt
> handling?  If not, is there any VM state I can check?

You can easily determine if the page fault happens during interrupt
injection, but once the guest OS starts handling the interrupt it will be
hard to track. The OS is likely to ACK the interrupt quite early and re-set
EFLAGS.IF to 1 before it actually executes the device driver ISR.

 -- Keir



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

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