From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUmTv-0001df-Un for qemu-devel@nongnu.org; Tue, 02 Aug 2016 23:04:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUmTq-0005p5-8n for qemu-devel@nongnu.org; Tue, 02 Aug 2016 23:04:30 -0400 Date: Wed, 3 Aug 2016 11:04:13 +0800 From: Peter Xu Message-ID: <20160803030413.GN6207@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> <20160727133245.GE18777@pxdev.xzpeter.org> <471998242.13134246.1470167303059.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <471998242.13134246.1470167303059.JavaMail.zimbra@redhat.com> 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: Paolo Bonzini Cc: Alexey Kardashevskiy , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, David Gibson , alex williamson , mst@redhat.com, Thomas Huth On Tue, Aug 02, 2016 at 03:48:23PM -0400, Paolo Bonzini 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. :) > > Peter, please post v2 according to your patch and Alexey's suggestion. > David, can you handle it? Sure, then let me send a v2 later. Will CC David. Thanks! -- peterx