From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Subject: Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC Date: Thu, 25 Apr 2013 11:53:36 -0500 Message-ID: <1366908816.30341.2@snotra> References: <1366394561.8828.2@snotra> <8B2F293E-1252-4F71-B2F0-9459C7100693@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; delsp=Yes; format=Flowed Content-Transfer-Encoding: 8BIT Cc: , "kvm@vger.kernel.org mailing list" , Marcelo Tosatti , Gleb Natapov To: Alexander Graf Return-path: In-Reply-To: <8B2F293E-1252-4F71-B2F0-9459C7100693@suse.de> (from agraf@suse.de on Thu Apr 25 04:58:51 2013) Content-Disposition: inline Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 04/25/2013 04:58:51 AM, Alexander Graf wrote: > > On 19.04.2013, at 20:02, Scott Wood wrote: > > > On 04/19/2013 09:06:26 AM, Alexander Graf wrote: > >> + if (notify_eoi != -1) { > >> + spin_unlock_irq(&opp->lock); > >> + kvm_notify_acked_irq(opp->kvm, 0, notify_eoi); > >> + spin_lock_irq(&opp->lock); > >> + } > > > > I'd rather not have the "_irq" here, which could break if we enter > this patch via an "_irqsave" (I realize there currently is no such > path that reaches EOI emulation). > > > > Will we ever set notify_eoi when addr != EOI? I'm wondering why it > was moved out of the switch statement, instead of being put at the > end of the case EOI: code. > > I doubt it, but that's for the compiler to optimize away. I found it > cleaner for some reason to put it down there. I don't think it really > matters. Cleanliness is my concern as well. It doesn't seem clean to arbitrarily split up the EOI implementation. -Scott