From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduard - Gabriel Munteanu Subject: Re: [PATCH 2/7] pci: memory access API and IOMMU support Date: Mon, 30 Aug 2010 01:11:23 +0300 Message-ID: <20100829221122.GA8750@localhost> References: <1283119703-9781-1-git-send-email-eduard.munteanu@linux360.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: joro@8bytes.org, blauwirbel@gmail.com, paul@codesourcery.com, avi@redhat.com, anthony@codemonkey.ws, av1474@comtv.ru, yamahata@valinux.co.jp, kvm@vger.kernel.org, qemu-devel@nongnu.org To: mst@redhat.com Return-path: Received: from mail-bw0-f46.google.com ([209.85.214.46]:41250 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753357Ab0H2WNI (ORCPT ); Sun, 29 Aug 2010 18:13:08 -0400 Received: by bwz11 with SMTP id 11so3304621bwz.19 for ; Sun, 29 Aug 2010 15:13:06 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1283119703-9781-1-git-send-email-eduard.munteanu@linux360.ro> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Aug 30, 2010 at 01:08:23AM +0300, Eduard - Gabriel Munteanu wrote: > PCI devices should access memory through pci_memory_*() instead of > cpu_physical_memory_*(). This also provides support for translation and > access checking in case an IOMMU is emulated. > > Memory maps are treated as remote IOTLBs (that is, translation caches > belonging to the IOMMU-aware device itself). Clients (devices) must > provide callbacks for map invalidation in case these maps are > persistent beyond the current I/O context, e.g. AIO DMA transfers. > > Signed-off-by: Eduard - Gabriel Munteanu > --- Please merge this instead of the patch I sent with the series. I wanted to avoid resubmitting the whole series. Eduard From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=46064 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Opq7g-0008Ov-RF for qemu-devel@nongnu.org; Sun, 29 Aug 2010 18:13:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Opq7f-00060h-NS for qemu-devel@nongnu.org; Sun, 29 Aug 2010 18:13:08 -0400 Received: from mail-bw0-f45.google.com ([209.85.214.45]:58628) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Opq7f-00060W-Hi for qemu-devel@nongnu.org; Sun, 29 Aug 2010 18:13:07 -0400 Received: by bwz3 with SMTP id 3so3515634bwz.4 for ; Sun, 29 Aug 2010 15:13:06 -0700 (PDT) Sender: Eduard - Gabriel Munteanu Date: Mon, 30 Aug 2010 01:11:23 +0300 From: Eduard - Gabriel Munteanu Message-ID: <20100829221122.GA8750@localhost> References: <1283119703-9781-1-git-send-email-eduard.munteanu@linux360.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1283119703-9781-1-git-send-email-eduard.munteanu@linux360.ro> Subject: [Qemu-devel] Re: [PATCH 2/7] pci: memory access API and IOMMU support List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mst@redhat.com Cc: kvm@vger.kernel.org, joro@8bytes.org, qemu-devel@nongnu.org, blauwirbel@gmail.com, yamahata@valinux.co.jp, paul@codesourcery.com, avi@redhat.com On Mon, Aug 30, 2010 at 01:08:23AM +0300, Eduard - Gabriel Munteanu wrote: > PCI devices should access memory through pci_memory_*() instead of > cpu_physical_memory_*(). This also provides support for translation and > access checking in case an IOMMU is emulated. > > Memory maps are treated as remote IOTLBs (that is, translation caches > belonging to the IOMMU-aware device itself). Clients (devices) must > provide callbacks for map invalidation in case these maps are > persistent beyond the current I/O context, e.g. AIO DMA transfers. > > Signed-off-by: Eduard - Gabriel Munteanu > --- Please merge this instead of the patch I sent with the series. I wanted to avoid resubmitting the whole series. Eduard