From: "Jan Beulich" Subject: Re: [for-xen-4.5 v9 2/2] dpci: Replace tasklet with an softirq (v12) Date: Tue, 11 Nov 2014 08:46:52 +0000 Message-ID: <5461DB0C02000078000464FF@mail.emea.novell.com> References: <1415042078-8337-1-git-send-email-konrad.wilk@oracle.com> <1415042078-8337-3-git-send-email-konrad.wilk@oracle.com> <5458BA790200007800044B58@mail.emea.novell.com> <20141110210214.GA21090@laptop.dumpdata.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 1Xo76G-0006Lt-Sb for xen-devel@lists.xenproject.org; Tue, 11 Nov 2014 08:46:56 +0000 In-Reply-To: <20141110210214.GA21090@laptop.dumpdata.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: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, tim@xen.org, xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 10.11.14 at 22:02, wrote: > On Tue, Nov 04, 2014 at 10:37:29AM +0000, Jan Beulich wrote: >> >>> On 03.11.14 at 20:14, wrote: >> > +/* >> > + * Should only be called from hvm_do_IRQ_dpci. We use the >> >> This statement together with the comment in pt_pirq_softirq_active() >> is at least confusing: If the function is to be called in only one place, >> there shouldn't be a second place where its use is being suggested. >> Plus, a function with such required limited use would very likely better >> not be a separate function at all. > > Could you explain your rationale for it please? I explained the why in what is still being quoted above. > I am of course OK changing it, but when reading this patch and having most > of the functions that deal with the new code in one place - makes it easier > to read. Some pieces of code are necessarily scattered around, so one more wouldn't be a big deal. But I see you re-worded that comment now, and with that I don't mind the function remaining where it is. Hence Reviewed-by: Jan Beulich But please re-send properly paired with patch 1/2, to avoid mixing up versions when committing (it's already confusing that this one says v9 and v12 in the subject, while the patch history is at v13). Jan