From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFm50-0004Hw-Bo for qemu-devel@nongnu.org; Mon, 17 Oct 2011 08:14:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFm4z-0004yC-1e for qemu-devel@nongnu.org; Mon, 17 Oct 2011 08:14:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFm4y-0004y6-PB for qemu-devel@nongnu.org; Mon, 17 Oct 2011 08:14:05 -0400 Message-ID: <4E9C1C08.9040907@redhat.com> Date: Mon, 17 Oct 2011 14:14:00 +0200 From: Avi Kivity MIME-Version: 1.0 References: <4E9C09E7.2010106@redhat.com> <4E9C0E6C.2070809@siemens.com> <4E9C100A.2070705@redhat.com> <4E9C1184.4040908@siemens.com> In-Reply-To: <4E9C1184.4040908@siemens.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC][PATCH 11/45] msi: Factor out delivery hook List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Alex Williamson , Marcelo Tosatti , "qemu-devel@nongnu.org" , "kvm@vger.kernel.org" , "Michael S. Tsirkin" On 10/17/2011 01:29 PM, Jan Kiszka wrote: > >> > >> APIC is x86-specific, MSI is not. I think Xen will also want to make use > >> of this hook. I originally though of using it for the KVM in-kernel > >> models as well, but I will now establish a callback at APIC-level > >> (upstream will look differently from qemu-kvm in this regard). > >> > > > > But you still have to handle it the the platform interrupt controller > > (or whatever processes msi messages) since you can still DMA there. So > > you don't get away from doing it there anyway. > > Right, but that's the slow path (which is still handled - on x86 via the > MMIO region the APIC still maintains). > It's handled by caching and immediately uncaching the MSIMessage/kvm route relationship? Can you post a git tree? It will be easier for me to understand the whole thing this way. -- error compiling committee.c: too many arguments to function