Received: from eggs.gnu.org ([2001:4830:134:3::10]:47792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur63j-0004VX-Jy for qemu-devel@nongnu.org; Mon, 24 Jun 2013 08:39:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur63i-0005dt-8Y for qemu-devel@nongnu.org; Mon, 24 Jun 2013 08:39:51 -0400 Date: Mon, 24 Jun 2013 15:39:43 +0300 From: Gleb Natapov Message-ID: <20130624123943.GI18508@redhat.com> References: <1371737338-25148-1-git-send-email-aik@ozlabs.ru> <874ncshh67.fsf@codemonkey.ws> <51C39578.6020204@ozlabs.ru> <20130623140736.GB20842@redhat.com> <1372023554.3944.111.camel@pasglop> <1372049162.30572.172.camel@ul30vt.home> <87y59zbst8.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y59zbst8.fsf@codemonkey.ws> Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] RFC kvm irqfd: add directly mapped MSI IRQ support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: "Michael S. Tsirkin" , qemu-trivial@nongnu.org, qemu-devel , Alex Williamson , qemu-ppc@nongnu.org, Paolo Bonzini , Paul Mackerras , David Gibson On Mon, Jun 24, 2013 at 07:24:03AM -0500, Anthony Liguori wrote: > Alex Williamson writes: > > > On Sun, 2013-06-23 at 16:58 -0500, Anthony Liguori wrote: > >> Yeah, but none of this is Power specific... so we can do the same for x86, no? > >> > >> I'm still trying to wrap my head around why we need MSI knowledge at > >> all in the kernel for x86. I presume it's to fast-path irqfd when > >> doing vhost? > > > > Or device assignment. Any paths where we want to inject an MSI > > interrupt without going through userspace. Thanks, > > With VFIO, we use irqfd, if we program the irqfd as the underlying IRQ > that MSI would route to, isn't that sufficient? > Not sure I understand what you mean by IRQ here, there is no "IRQ pin" on x86 CPU with APIC architecture (there is ExtINT but it is not relevant here). If by IRQ you mean "information needed to inject interrupt through APIC" then this is how things work now. > That's more or less what Ben is proposing for Power... > > Regards, > > Anthony Liguori > > > > > Alex -- Gleb.