From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0qN0-0003gZ-QS for qemu-devel@nongnu.org; Tue, 06 Sep 2011 03:46:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0qMz-0006os-Lb for qemu-devel@nongnu.org; Tue, 06 Sep 2011 03:46:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0qMz-0006ok-CQ for qemu-devel@nongnu.org; Tue, 06 Sep 2011 03:46:57 -0400 Message-ID: <4E65CFEA.70604@redhat.com> Date: Tue, 06 Sep 2011 10:46:50 +0300 From: Avi Kivity MIME-Version: 1.0 References: <4E58FC3F.6080809@web.de> <4E5BE7C5.60705@us.ibm.com> <4E5BFF51.9010503@web.de> <4E5C00F0.9070103@redhat.com> <4E5DF096.6070207@redhat.com> <4E6285BB.2010505@codemonkey.ws> <20110905083857.GB26890@edde.se.axis.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] pc: Clean up PIC-to-APIC IRQ path List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Lucas Meneghel Rodrigues , Marcelo Tosatti , qemu-devel , Jan Kiszka , Gerd Hoffmann , "Edgar E. Iglesias" On 09/05/2011 10:36 PM, Blue Swirl wrote: > > I don't agree. That's not what qemu_irq represents. > > It represents a wire, a mechanism to drive changes through logic paths > > between state. It is intrinsically stateless. > > > > It may be the case that it is missused in some places, or that it isn't > > always the best thing to use to represent what ever you need to represent, > > so that you want to complement with other mechanisms. > > But universally replacing it with a stateful alternative seems wrong to me. > > Maybe there could be a stateless version of Pin for optimization: > Line? This would probably save one bool worth of memory and one memory > store access for each IRQ event. Let's actually measure the effect of the bool/store before we optimize it away. -- error compiling committee.c: too many arguments to function