From: Ian Campbell Subject: Re: [PATCH 1/2] xen/arm: remove workaround to inject evtchn_irq on irq enable Date: Wed, 2 Jul 2014 16:38:14 +0100 Message-ID: <1404315494.8137.16.camel@kazak.uk.xensource.com> References: <1403633514-8853-1-git-send-email-stefano.stabellini@eu.citrix.com> <53AAE4B3.4080802@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53AAE4B3.4080802@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: julien.grall@citrix.com, xen-devel@lists.xensource.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 2014-06-25 at 16:03 +0100, Julien Grall wrote: > Hi Stefano, > > On 06/24/2014 07:11 PM, Stefano Stabellini 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 calling vgic_vcpu_inject_irq in the appropriate > > places at vcpu creation time, making sure to call it after the vcpu is > > up (_VPF_down has been cleared). > > While it's works perfectly on common case, as the toolstack is always > setting VGCF_online. > > It would be possible to call the hypercall DOMCTL_vcpusetcontext without > this flags enable. If so, the new VCPU will never receive event channel > interrupt. I think the only other way to clear _VPF_down is the psci code, so I suppose it needs a kick too. The other option is VCPUOP_up whch we do not support (or wire up) on ARM.