From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpYTq-00058q-7L for qemu-devel@nongnu.org; Fri, 13 Jul 2012 01:31:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SpYTo-0002l6-KG for qemu-devel@nongnu.org; Fri, 13 Jul 2012 01:31:54 -0400 Received: from mail-gg0-f173.google.com ([209.85.161.173]:56008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpYTo-0002kw-GZ for qemu-devel@nongnu.org; Fri, 13 Jul 2012 01:31:52 -0400 Received: by ggnp1 with SMTP id p1so3514837ggn.4 for ; Thu, 12 Jul 2012 22:31:52 -0700 (PDT) Message-ID: <4FFFB2C2.5090307@ozlabs.ru> Date: Fri, 13 Jul 2012 15:31:46 +1000 From: Alexey Kardashevskiy MIME-Version: 1.0 References: <1341899497-23265-1-git-send-email-aik@ozlabs.ru> <1342083134-28669-1-git-send-email-aik@ozlabs.ru> <4FFF5143.8030206@freescale.com> In-Reply-To: <4FFF5143.8030206@freescale.com> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] RFC: vfio-powerpc: added VFIO support (v2) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Scott Wood Cc: Alex Williamson , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, David Gibson On 13/07/12 08:35, Scott Wood wrote: > On 07/12/2012 03:52 AM, Alexey Kardashevskiy wrote: >> +/* -------- 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) >> + >> +struct tce_iommu_dma_map { >> + __u32 argsz; >> + __u64 va; >> + __u64 dmaaddr; >> +}; >> + >> +#define POWERPC_IOMMU_MAP_DMA _IO(VFIO_TYPE, VFIO_BASE + 13) >> +#define POWERPC_IOMMU_UNMAP_DMA _IO(VFIO_TYPE, VFIO_BASE + 14) > > I thought you were going to change the name to be less generic... I will change them indeed, I am just focused now on other things such as EOI handlers and order of devices creation. Next iteration will be fixed. -- Alexey