Received: from eggs.gnu.org ([208.118.235.92]:59739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6Uyv-0003am-EQ for qemu-devel@nongnu.org; Sat, 10 Mar 2012 17:41:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6Uyt-0008T2-On for qemu-devel@nongnu.org; Sat, 10 Mar 2012 17:41:45 -0500 Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <1331169142-13325-2-git-send-email-david@gibson.dropbear.id.au> Date: Sat, 10 Mar 2012 23:41:40 +0100 Content-Transfer-Encoding: 7bit Message-Id: References: <1331169142-13325-1-git-send-email-david@gibson.dropbear.id.au> <1331169142-13325-2-git-send-email-david@gibson.dropbear.id.au> Subject: Re: [Qemu-devel] [PATCH 1/2] pseries: Add support for level interrupts to XICS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 08.03.2012, at 02:12, David Gibson wrote: > The pseries "xics" interrupt controller, like most interrupt > controllers can support both message (i.e. edge sensitive) interrupts > and level sensitive interrupts, but it needs to know which are which. > > When I implemented the xics emulation for qemu, the only devices we > supported were the PAPR virtual IO devices. These devices only use > message interrupts, so they were the only ones I implemented in xics. > > Since then, however, we have added support for PCI devices, which use > level sensitive interrupts. It turns out the message interrupt logic > still actually works most of the time for these, but there are > circumstances where we can lost interrupts due to the incorrect > interrupt logic. > > This patch, therefore, implements the correct xics level-sensitive > interrupt logic. The type of the interrupt is set when a device > allocates a new xics interrupt. > > Signed-off-by: David Gibson Thanks, applied to ppc-next. Alex