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] RE: [Patch] Add NMI Injection and Pending Support inVMX

To: "Keir Fraser" <keir@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] RE: [Patch] Add NMI Injection and Pending Support inVMX
From: "Shan, Haitao" <haitao.shan@xxxxxxxxx>
Date: Wed, 4 Jul 2007 17:39:52 +0800
Cc: "Li, Xin B" <xin.b.li@xxxxxxxxx>, "Dong, Eddie" <eddie.dong@xxxxxxxxx>, "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>, "Li, Susie" <susie.li@xxxxxxxxx>
Delivery-date: Wed, 04 Jul 2007 02:38:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2B127B4.11D85%keir@xxxxxxxxxxxxx>
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: <823A93EED437D048963A3697DB0E35DE6E5BE6@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C2B127B4.11D85%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcezKHO8GVeq3H5BSPWle/Skc4bxjQACFWLQAGC4rxACMsm0wAAG46WYABEyaXAABYzGAAAKNnOUAAAqKbA=
Thread-topic: [Xen-devel] RE: [Patch] Add NMI Injection and Pending Support inVMX
Keir, thanks!
It is my fault that I did not notice that piece of code.

Best Regards
Haitao Shan

-----Original Message-----
From: Keir Fraser [mailto:keir@xxxxxxxxxxxxx] 
Sent: 2007年7月4日 17:32
To: Shan, Haitao; xen-devel@xxxxxxxxxxxxxxxxxxx
Cc: Li, Xin B; Li, Susie; Dong, Eddie; Cui, Dexuan
Subject: Re: [Xen-devel] RE: [Patch] Add NMI Injection and Pending Support inVMX

On 4/7/07 05:44, "Shan, Haitao" <haitao.shan@xxxxxxxxx> wrote:

> 1> If we do have IDT vectoring occurs, and at the same time, a NMI or irq is
> pending, should we better do a check to enable_intr_window instead of just
> return?
>             if ( (idtv_info_field&INTR_INFO_INTR_TYPE_MASK) == INTR_TYPE_NMI )
>                 __vmwrite(GUEST_INTERRUPTIBILITY_INFO,
>                           __vmread(GUEST_INTERRUPTIBILITY_INFO) &
>                           ~VMX_INTR_SHADOW_NMI);
>              HVM_DBG_LOG(DBG_LEVEL_1, "idtv_info_field=%x", idtv_info_field);
>              return;

That case does include a call to enable_intr_window(), immediately before
the code you quote. Did you miss that?

> -----------------------------The second question is here----------------
> 2> In enable_intr_window, if it is an NMI, then change intr_shadow from
> blocking_by_sti to blocking_by_movss if there is such case. But the
> intr_shadow is not written back to VMCS. Why should we do so?

This is a stupid mistake on my part. I'll fix it.

 Thanks,
 Keir

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