From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2 3/3] pt-irq fixes and improvements Date: Thu, 12 Jun 2014 10:02:16 +0100 Message-ID: <1402563736.4342.24.camel@kazak.uk.xensource.com> References: <538DEF42020000780001767A@mail.emea.novell.com> <538DF12A020000780001769C@mail.emea.novell.com> <538DE0C3.5010203@citrix.com> <538EF3C00200007800017A1C@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wv0tq-0006WE-Fk for xen-devel@lists.xenproject.org; Thu, 12 Jun 2014 09:02:22 +0000 In-Reply-To: <538EF3C00200007800017A1C@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Kevin Tian , Keir Fraser , Andrew Cooper , Ian Jackson , Stefano Stabellini , Yang Z Zhang , xen-devel List-Id: xen-devel@lists.xenproject.org On Wed, 2014-06-04 at 09:24 +0100, Jan Beulich wrote: > Tools side: > - don't silently ignore unrecognized PT_IRQ_TYPE_* values > - respect that the interface type contains a union, making the code at > once no longer depend on the hypervisor ignoring the bus field of the > PCI portion of the interface structure) > > Hypervisor side: > - don't ignore the PCI bus number passed in > - don't store values (gsi, link) calculated from other stored values > - avoid calling xfree() with a spin lock held where easily possible > - have pt_irq_destroy_bind() respect the passed in type > - scope reduction and constification of various variables > - use switch instead of if/else-if chains > - formatting > > Signed-off-by: Jan Beulich > Reviewed-by: Andrew Cooper Toosl: Acked-by: Ian Campbell