From: "Jan Beulich" Subject: Re: [PATCH v9 07/10] xen: remove workaround to inject evtchn_irq on irq enable Date: Fri, 25 Jul 2014 09:12:05 +0100 Message-ID: <53D22D750200007800025DC0@mail.emea.novell.com> References: <1406223192-26267-7-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XAabp-00080L-Hd for xen-devel@lists.xenproject.org; Fri, 25 Jul 2014 08:12:09 +0000 In-Reply-To: <1406223192-26267-7-git-send-email-stefano.stabellini@eu.citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: julien.grall@citrix.com, xen-devel , Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 24.07.14 at 19:33, wrote: > evtchn_upcall_pending is already set by common code at vcpu creation, > therefore on ARM we also need to call vgic_vcpu_inject_irq for it. > Currently we do that from vgic_enable_irqs as a workaround. > > Do this properly by introducing an appropriate arch specific hook: > arch_evtchn_inject. arch_evtchn_inject is called by map_vcpu_info to > inject the evtchn irq into the guest. On ARM is implemented by calling > vgic_vcpu_inject_irq, on x86 is unneeded. >From a mechanical pov this has my ack, but I still don't see why ARM needs what x86 (even for HVM) appears to get along fine without. Jan