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