From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SokH3-0005Vh-Dm for qemu-devel@nongnu.org; Tue, 10 Jul 2012 19:55:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SokGz-00049W-5W for qemu-devel@nongnu.org; Tue, 10 Jul 2012 19:55:20 -0400 Received: from mail-gh0-f173.google.com ([209.85.160.173]:58580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SokGz-000496-0n for qemu-devel@nongnu.org; Tue, 10 Jul 2012 19:55:17 -0400 Received: by ghrr14 with SMTP id r14so662801ghr.4 for ; Tue, 10 Jul 2012 16:55:14 -0700 (PDT) Message-ID: <4FFCC0DE.7060400@ozlabs.ru> Date: Wed, 11 Jul 2012 09:55:10 +1000 From: Alexey Kardashevskiy MIME-Version: 1.0 References: <1341899497-23265-1-git-send-email-aik@ozlabs.ru> <1341899497-23265-3-git-send-email-aik@ozlabs.ru> <4FFCAC0D.4040800@freescale.com> In-Reply-To: <4FFCAC0D.4040800@freescale.com> Content-Type: text/plain; charset=KOI8-R 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: Alexander Graf , qemu-devel@nongnu.org, Alex Williamson , qemu-ppc@nongnu.org, Scott Wood , David Gibson On 11/07/12 08:26, Scott Wood wrote: > 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. Ben, is is SPAPR? BOOK3S? -- Alexey