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] xen: implement vector callback for evtchn deliv

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xen: implement vector callback for evtchn delivery
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Tue, 11 May 2010 12:11:44 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Tue, 11 May 2010 04:09:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BE83FB802000078000021D2@xxxxxxxxxxxxxxxxxx>
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>
References: <alpine.DEB.2.00.1005101521130.11380@kaball-desktop> <4BE83FB802000078000021D2@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Mon, 10 May 2010, Jan Beulich wrote:
> >>> Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> 10.05.10 16:27 >>>
> >--- a/xen/arch/x86/hvm/irq.c
> >+++ b/xen/arch/x86/hvm/irq.c
> >@@ -185,16 +185,16 @@
> > 
> > void hvm_assert_evtchn_irq(struct vcpu *v)
> > {
> >-    if ( v->vcpu_id != 0 )
> >-        return;
> >-
> 
> Shouldn't this conditional move ...
> 
> >     if ( unlikely(in_irq() || !local_irq_is_enabled()) )
> >     {
> >         tasklet_schedule(&v->arch.hvm_vcpu.assert_evtchn_irq_tasklet);
> >         return;
> >     }
> > 
> >-    hvm_set_callback_irq_level(v);
> >+    if (is_hvm_pv_evtchn_vcpu(v))
> >+        vcpu_kick(v);
> >+    else
> 
> ... here? I can't immediately see other changes in this patch
> preventing the checked for condition from happening.
> 

Yes you are right, thank you.
I'll send the patch again with the fix included.

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