From: "Jan Beulich" Subject: Re: [PATCH v6 for-xen-4.5 2/3] dpci: In hvm_dirq_assist stop using pt_pirq_iterate Date: Thu, 25 Sep 2014 15:29:32 +0100 Message-ID: <542442EC0200007800039067@mail.emea.novell.com> References: <1411438215-8146-1-git-send-email-konrad.wilk@oracle.com> <1411438215-8146-3-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XXA35-00084e-SM for xen-devel@lists.xenproject.org; Thu, 25 Sep 2014 14:29:36 +0000 In-Reply-To: <1411438215-8146-3-git-send-email-konrad.wilk@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: xen-devel@lists.xenproject.org, keir@xen.org, ian.jackson@eu.citrix.com, ian.campbell@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 23.09.14 at 04:10, wrote: > --- a/xen/drivers/passthrough/io.c > +++ b/xen/drivers/passthrough/io.c > @@ -534,9 +534,14 @@ void hvm_dpci_msi_eoi(struct domain *d, int vector) > spin_unlock(&d->event_lock); > } > > -static int _hvm_dirq_assist(struct domain *d, struct hvm_pirq_dpci *pirq_dpci, > - void *arg) > +static void hvm_dirq_assist(unsigned long _d) Please name this "arg" or some such, the name "_d" really was suitable only when the function took a (converted to scalar type) domain pointer. Beyond that this looks quite okay (pending the decision whether to fold into the first patch); personally I would aim at not using goto-s... Jan