From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNiAz-0004a8-Ds for qemu-devel@nongnu.org; Mon, 15 Oct 2012 06:45:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNiAr-0007Bu-KE for qemu-devel@nongnu.org; Mon, 15 Oct 2012 06:45:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNiAr-0007Bn-CM for qemu-devel@nongnu.org; Mon, 15 Oct 2012 06:45:29 -0400 Message-ID: <507BE941.7000205@redhat.com> Date: Mon, 15 Oct 2012 12:45:21 +0200 From: Avi Kivity MIME-Version: 1.0 References: <1349962023-560-1-git-send-email-avi@redhat.com> <1350009361.20486.131.camel@pasglop> In-Reply-To: <1350009361.20486.131.camel@pasglop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v1 0/7] IOMMU support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt Cc: "Michael S. Tsirkin" , liu ping fan , qemu-devel@nongnu.org, Blue Swirl , Alex Williamson , Anthony Liguori , Paolo Bonzini On 10/12/2012 04:36 AM, Benjamin Herrenschmidt wrote: > On Thu, 2012-10-11 at 15:26 +0200, Avi Kivity wrote: >> These patches add IOMMU support to the memory core. IOMMUs can be added anywhere in >> the memory hierarchy, and may be arranged in series. > > I haven't had a chance to review in details yet, but one thing I noticed > is that you basically have a single read/write protection information > for a translation. > > This is a loss of functionality to some extent (well, maybe not from the > existing iommu layer but from what could be done by our HW) in that we > have separate read and write permission bits. > > This is actually worth fixing I think. Catching incorrect reads from > write-only regions is probably worth it in term of debugging drivers. > I do have an is_write parameter to translate, in fact I added it in order to implement the spapr iommu. Or do you mean something else? -- error compiling committee.c: too many arguments to function