From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5PBL-0005BV-Oo for qemu-devel@nongnu.org; Sun, 28 Dec 2014 20:31:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5PBH-0001s5-S9 for qemu-devel@nongnu.org; Sun, 28 Dec 2014 20:31:39 -0500 Message-ID: <54A0AEF2.3050300@intel.com> Date: Mon, 29 Dec 2014 09:31:30 +0800 From: "Chen, Tiejun" MIME-Version: 1.0 References: <1419581126-12927-1-git-send-email-tiejun.chen@intel.com> <549D356A.4050506@parallels.com> <549EC79C.2090608@redhat.com> In-Reply-To: <549EC79C.2090608@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] kvm_irqchip_assign_irqfd: just set irqfd in case of kvm_irqfds_enabled() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Peter Maydell , "Denis V. Lunev" Cc: QEMU Trivial , QEMU Developers , kvm-devel On 2014/12/27 22:52, Paolo Bonzini wrote: > > > On 26/12/2014 18:59, Peter Maydell wrote: >> Mm, but once you're into such microoptimisations as this you really >> need to have a good justification for the effort, in the form of >> profiling measurements that indicate that this is a hot path. >> In this case that seems pretty unlikely, because I'd expect all >> the systems where we care about performance will support irqfds, >> so we won't be taking the early-exit code path anyhow. (And >> not supporting irqfds is leaving much more performance on the >> table than we could possibly be talking about in this function.) > > Also, it's even possible for a compiler to figure this out. All in all, > I don't see any advantage to this patch... > Indeed, its just a cleanup to make codes readable and comprehensible since oftentimes we don't initially write such a subsequent code just because we have this possibility to figure them out by the compiler, or others. And this is why I'm CCing Qemu trivial. Tiejun