From: "Jan Beulich" Subject: Re: [PATCH] passthrough: streamline _hvm_dirq_assist() Date: Thu, 18 Sep 2014 08:49:39 +0100 Message-ID: <541AAAB3020000780003605E@mail.emea.novell.com> References: <5411BC630200007800033E1A@mail.emea.novell.com> <20140917203245.GA15018@laptop.dumpdata.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 1XUWTF-0001OY-KE for xen-devel@lists.xenproject.org; Thu, 18 Sep 2014 07:49:41 +0000 In-Reply-To: <20140917203245.GA15018@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: xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 17.09.14 at 22:32, wrote: > On Thu, Sep 11, 2014 at 02:14:43PM +0100, Jan Beulich wrote: >> The loop inside this function was calling two functions with loop- >> invariable arguments which clearly don't need calling more than once: >> send_guest_pirq() and __msi_pirq_eoi(). After moving these out of the >> loop it further became apparent that folding the hvm_pci_msi_assert() >> helper into the main function can further help readability. >> >> In the course of this I noticed that __hvm_dpci_eoi() called >> hvm_pci_intx_deassert() unconditionally, whereas hvm_pci_intx_assert() >> (correctly) got called only when !hvm_domain_use_pirq(), so the former >> is being made conditional now too. >> >> Signed-off-by: Jan Beulich > > Reviewed-by: Konrad Rzeszutek Wilk > > Thought I would also like to test it first, so if you are OK with > waiting until I send out an 'Tested-by' I would appreciate it. Too late - it passed the push gate yesterday already. Jan