From: "Jan Beulich" Subject: Re: [RFC PATCH] dpci: Put the dpci back on the list if running on another CPU. Date: Wed, 18 Mar 2015 07:41:55 +0000 Message-ID: <55093A53020000780006B1D8@mail.emea.novell.com> References: <1421081130-22959-1-git-send-email-konrad.wilk@oracle.com> <54B4FF600200007800054376@mail.emea.novell.com> <20150123014459.GA6106@l.oracle.com> <54C2248102000078000589D6@mail.emea.novell.com> <20150317174454.GA16436@l.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YY8c1-0007D2-Tk for xen-devel@lists.xenproject.org; Wed, 18 Mar 2015 07:41:58 +0000 In-Reply-To: <20150317174454.GA16436@l.oracle.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: Konrad Rzeszutek Wilk Cc: andrew.cooper3@citrix.com, malcolm.crossley@citrix.com, xen-devel@lists.xenproject.org, linux@eikelenboom.it List-Id: xen-devel@lists.xenproject.org >>> On 17.03.15 at 18:44, wrote: > As you can see to preserve the existing functionality such as > being able to schedule N amount of interrupt injections > for the N interrupts we might get - I modified '->masked' > to be an atomic counter. Why would that be? When an earlier interrupt wasn't fully handled, real hardware wouldn't latch more than one further instance either. > The end result is that we can still live-lock. Unless we: > - Drop on the floor the injection of N interrupts and > just deliever at max one per VMX_EXIT (and not bother > with interrupts arriving when we are in the VMX handler). I'm afraid I again don't see the point here. > - Alter the softirq code slightly - to have an variant > which will only iterate once over the pending softirq > bits per call. (so save an copy of the bitmap on the > stack when entering the softirq handler - and use that. > We could also xor it against the current to catch any > non-duplicate bits being set that we should deal with). That's clearly not an option: The solution should be isolated to DPCI code, i.e. without altering existing behavior in other (more generic) components. Jan