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] NMI delivery not correctly working

To: Kaushik Barde <Kaushik_Barde@xxxxxxxxxxx>, Christoph Egger <Christoph.Egger@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] NMI delivery not correctly working
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Wed, 25 Jul 2007 07:22:39 +0100
Delivery-date: Tue, 24 Jul 2007 23:16:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <0EF82802ABAA22479BC1CE8E2F60E8C3018F95BA@xxxxxxxxxxxxxxxxxxxxxxx>
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: AcfOFSvtajGyxzoIEdy8MAAX8io7RQACLO6wABmU1oQ=
Thread-topic: [Xen-devel] NMI delivery not correctly working
User-agent: Microsoft-Entourage/11.3.3.061214
On 24/7/07 19:26, "Kaushik Barde" <Kaushik_Barde@xxxxxxxxxxx> wrote:

> Processor disables calls to subsequent NMIs till it receives next IRET
> instruction

Yes.

> (via masking of maskable interrupts).

No, since NMIs are, of course, not maskable by conventional means.

> I guess, what I am not clear about is how a fully-virtualized guest
> whould issue a IRET hypercall?

It's used just like any other hypercall. Guest jumps at the correct offset
into its hypercall transfer page.

 -- Keir

> -Kaushik
> 
> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Keir Fraser
> Sent: Tuesday, July 24, 2007 10:08 AM
> To: Christoph Egger; xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-devel] NMI delivery not correctly working
> 
> On 24/7/07 16:47, "Christoph Egger" <Christoph.Egger@xxxxxxx> wrote:
> 
>> I know, there is a line "current->nmi_masked = 0;" in do_iret() in
>> xen/arch/x86/x86_(32|64)/traps.c, but this is actually never called
>> after NMI delivery.
> 
> Guests *must* use the iret hypercall when returning from their NMI
> handler.
> This is giving a virtualised equivalent of the 'NMI-blocking' latch
> implemented in x86 processors, which is reset by the IRET instruction.
> 
>  -- Keir
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


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