From: Ian Campbell Subject: Re: [PATCH 2/5] xen/arm: Keep count of inflight interrupts Date: Wed, 26 Jun 2013 11:59:12 +0100 Message-ID: <1372244352.7337.38.camel@zakaz.uk.xensource.com> References: <1372115067-17071-1-git-send-email-julien.grall@citrix.com> <1372115067-17071-3-git-send-email-julien.grall@citrix.com> <1372176768.18901.72.camel@zakaz.uk.xensource.com> <51C9D791.8020407@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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 , Stefano Stabellini , patches@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2013-06-25 at 19:38 +0100, Stefano Stabellini wrote: > > > If that is the case, this can only happen once, right? In that case > > > rather than an atomic_t we could just have a bit in the status field I > > > proposed before. It should be enough for us to keep track of the case > > > when the irq is supposed to stay high even after the guest EOIs it. (Of > > > course that means that we need to re-inject it into the guest). > > > > > > For the timer yes. I wonder, what happen if Xen receive an SGI (for > > instance SCHEDULE ipi) twice, does Xen must re-inject it multiple times? > > I don't think it can happen with anything but the vtimer: in order for > the scenario above to happen it takes an irq that is EOId in the > hardware before the guest EOIs it. > > SGIs are completely "emulated", there is not an hardware irq > corresponding to them. From the Xen point of view the SGI is inflight > exactly and only from the moment the first vcpu sends it, to the point > when the receiving vcpu EOIs it. Are we talking about real SGIs (passed by Xen between physical processors) or fake SGIs (emulated between virtual processors)? Ian.