Received: from eggs.gnu.org ([140.186.70.92]:49459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlY3O-0002dm-FP for qemu-devel@nongnu.org; Mon, 25 Jul 2011 23:11:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlY3M-0006yn-9R for qemu-devel@nongnu.org; Mon, 25 Jul 2011 23:11:30 -0400 Received: from ozlabs.org ([203.10.76.45]:36976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlY3L-0006yB-U1 for qemu-devel@nongnu.org; Mon, 25 Jul 2011 23:11:28 -0400 Date: Tue, 26 Jul 2011 11:54:54 +1000 From: David Gibson Message-ID: <20110726015454.GE2582@yookeroo.fritz.box> References: <1311639576-7616-1-git-send-email-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1311639576-7616-1-git-send-email-david@gibson.dropbear.id.au> Subject: Re: [Qemu-devel] [PATCH] Bugfixes for interrupt numbering in XICS code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: agraf@suse.de Cc: qemu-devel@nongnu.org On Tue, Jul 26, 2011 at 10:19:36AM +1000, David Gibson wrote: > The implementation of the XICS interrupt controller contains several > (difficult to trigger) bugs due to the fact that we were not 100% > consistent with which irq numbering we used. In most places, global > numbers were used as handled by the presentation layer, however a few > functions took "local" numberings, that is the source number within > the interrupt source controller which is offset from the global > number. In most cases the function and its caller agreed on this, but > in a few cases it didn't. > > This patch cleans this up by always using global numbering. > Translation to the local number is now always and only done when we > look up the individual interrupt source state structure. This should > remove the existing bugs and with luck reduce the chances of > re-introducing such bugs. > > Signed-off-by: David Gibson Ugh. Disregard, the bugfix has a bug, sorry. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson