Received: from eggs.gnu.org ([2001:4830:134:3::10]:51416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqyfO-0005q4-Ci for qemu-devel@nongnu.org; Mon, 24 Jun 2013 00:46:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqyfL-0004eO-VE for qemu-devel@nongnu.org; Mon, 24 Jun 2013 00:46:14 -0400 Message-ID: <1372049162.30572.172.camel@ul30vt.home> From: Alex Williamson Date: Sun, 23 Jun 2013 22:46:02 -0600 In-Reply-To: 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> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: Anthony Liguori , "Michael S. Tsirkin" , qemu-trivial@nongnu.org, qemu-devel , qemu-ppc@nongnu.org, Paolo Bonzini , Paul Mackerras , David Gibson On Sun, 2013-06-23 at 16:58 -0500, Anthony Liguori wrote: > On Sun, Jun 23, 2013 at 4:39 PM, Benjamin Herrenschmidt > wrote: > > On Sun, 2013-06-23 at 10:02 -0500, Anthony Liguori wrote: > >> It doesn't make a lot of sense to have Power do MSI decoding in > >> userspace while x86 does it in the kernel. I assume the kernel > >> doesn't have enough information to do the translation on Power? > > > > Well, it would need the host bridge which it doesn't have and it > > would need a concept of mapping that to interrupt numbers which > > we don't want in the kernel. > > > > We can keep the kernel side a LOT simpler (completely avoiding > > the whole route bloatware) by sticking to our "simple" direct map kernel > > stuff and doing the mapping from address/data to interrupts in qemu, so > > we'll stick to that. > > 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, Alex