From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoitC-0004KU-H8 for qemu-devel@nongnu.org; Tue, 10 Jul 2012 18:26:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoitA-00072u-Vw for qemu-devel@nongnu.org; Tue, 10 Jul 2012 18:26:38 -0400 Message-ID: <4FFCAC0D.4040800@freescale.com> Date: Tue, 10 Jul 2012 17:26:21 -0500 From: Scott Wood MIME-Version: 1.0 References: <1341899497-23265-1-git-send-email-aik@ozlabs.ru> <1341899497-23265-3-git-send-email-aik@ozlabs.ru> In-Reply-To: <1341899497-23265-3-git-send-email-aik@ozlabs.ru> Content-Type: text/plain; charset="UTF-8" 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: Alexey Kardashevskiy Cc: Alex Williamson , David Gibson , qemu-ppc@nongnu.org, Alexander Graf , qemu-devel@nongnu.org On 07/10/2012 12:51 AM, Alexey Kardashevskiy wrote: > The patch enables VFIO on POWER. > > It literally does the following: > > 1. POWERPC IOMMU support (the kernel counterpart is required) [snip] > +/* -------- API for POWERPC IOMMU -------- */ > + > +#define POWERPC_IOMMU 2 > + > +struct tce_iommu_info { > + __u32 argsz; > + __u32 dma32_window_start; > + __u32 dma32_window_size; > +}; > + > +#define POWERPC_IOMMU_GET_INFO _IO(VFIO_TYPE, VFIO_BASE + 12) Is there a more specific name that could be used for this? Not all PowerPC chips have the same kind of IOMMU. -Scott