From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43878 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONPj2-00088R-Kh for qemu-devel@nongnu.org; Sat, 12 Jun 2010 08:22:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONPj2-0002iH-3Q for qemu-devel@nongnu.org; Sat, 12 Jun 2010 08:22:12 -0400 Received: from mail.codesourcery.com ([38.113.113.100]:51557) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONPj1-0002i0-Pv for qemu-devel@nongnu.org; Sat, 12 Jun 2010 08:22:12 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH 09/16] Enable message delivery via IRQs Date: Sat, 12 Jun 2010 13:21:02 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201006121321.04898.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blue Swirl , Jan Kiszka , Jan Kiszka , Gleb Natapov , Juan Quintela > This patch allows to optionally attach a message to an IRQ event. The > message can contain a payload reference and a callback that the IRQ > handler may invoke to report the delivery result. The former can be used > to model message signaling interrupts, the latter to cleanly implement > IRQ de-coalescing logics. I don't like this. qemu_irq is a level triggered interface. Redundant calls to qemu_set_irq should (in principle) be a no-op. If you want message passing then IMO you should be using something else. Paul