Received: from eggs.gnu.org ([2001:4830:134:3::10]:41598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSOxE-0006ll-1z for qemu-devel@nongnu.org; Wed, 27 Jul 2016 09:32:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSOx9-0008M7-S8 for qemu-devel@nongnu.org; Wed, 27 Jul 2016 09:32:55 -0400 Date: Wed, 27 Jul 2016 21:32:45 +0800 From: Peter Xu Message-ID: <20160727133245.GE18777@pxdev.xzpeter.org> References: <1469605906-20243-1-git-send-email-aik@ozlabs.ru> <20160727085359.GA18777@pxdev.xzpeter.org> <2f1d30a2-fe94-1197-381e-f4e3edb7bb1f@ozlabs.ru> <20160727132907.GD18777@pxdev.xzpeter.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160727132907.GD18777@pxdev.xzpeter.org> Subject: Re: [Qemu-devel] [PATCH qemu] kvm-irqchip: Only do explicit IRQ routing commit when IRQCHIP is in use List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, David Gibson , Paolo Bonzini , alex.williamson@redhat.com, mst@redhat.com, Thomas Huth On Wed, Jul 27, 2016 at 09:29:07PM +0800, Peter Xu wrote: [...] > > This works too. > > > > You may also want to copy if(!kvm_gsi_routing_enabled()) from > > kvm_irqchip_add_msi_route() to align API (not needed in my case though). Or > > just check the result of these checks by if(!s->irq_routes) :) > > Thanks. > > Right. Do you like to post a v2 for this one? (since of course honor > is yours and fault is mine :) Please let me know if you want me to do > this for you. It'll be nice we have this fix asap so that less people > suffers. Btw, please ignore above message if you still prefer v1 and sure that it works in all cases. :) -- peterx