From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoiIR-0006ON-B5 for qemu-devel@nongnu.org; Tue, 10 Jul 2012 17:48:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoiIP-0006Ke-Ty for qemu-devel@nongnu.org; Tue, 10 Jul 2012 17:48:38 -0400 Message-ID: <1341956906.2428.128.camel@bling.home> From: Alex Williamson Date: Tue, 10 Jul 2012 15:48:26 -0600 In-Reply-To: <1341955927.2561.37.camel@pasglop> References: <1341899497-23265-1-git-send-email-aik@ozlabs.ru> <1341899497-23265-3-git-send-email-aik@ozlabs.ru> <1341939323.2428.104.camel@bling.home> <1341955927.2561.37.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2] vfio-powerpc: added VFIO support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt Cc: Alexey Kardashevskiy , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Alexander Graf , David Gibson On Wed, 2012-07-11 at 07:32 +1000, Benjamin Herrenschmidt wrote: > On Tue, 2012-07-10 at 10:55 -0600, Alex Williamson wrote: > > > > I wish you could do this through a MemoryListener like we do on x86. > > > > Can you elaborate ? TCE (iommu) manipulation on PAPR is done via > specific hypervisor calls, not sure what a MemoryListener would do > here ... Hmm, the guest directed iommu updates via hypercalls may not really fit the MemoryListener model. I'm just trying to think of ways to avoid having an offshoot of vfio in the power code base by making use of common abstraction layers. If we got a region_add/del callback we could potentially move the spapr map and unmap into vfio like we do for x86. Thanks, Alex