From: Stefano Stabellini Subject: Re: [PATCH] xen: implement vector callback for evtchn delivery Date: Tue, 11 May 2010 12:11:44 +0100 Message-ID: References: <4BE83FB802000078000021D2@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-path: In-Reply-To: <4BE83FB802000078000021D2@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, 10 May 2010, Jan Beulich wrote: > >>> Stefano Stabellini 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.