WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [XEN-IOMMU] Proposal of DMA protection/isolation support

To: Wei Wang2 <wei.wang2@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>, <iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [XEN-IOMMU] Proposal of DMA protection/isolation support
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 10 Jan 2008 15:54:53 +0000
Cc: muli@xxxxxxxxxx, Michael.Hohmuth@xxxxxxx, Uwe.Dannowski@xxxxxxx, thomas.woller@xxxxxxx
Delivery-date: Thu, 10 Jan 2008 07:55:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1199980104.4405.122.camel@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AchToSN4Yg3JB7+UEdyXQwAX8io7RQ==
Thread-topic: [XEN-IOMMU] Proposal of DMA protection/isolation support
User-agent: Microsoft-Entourage/11.3.6.070618
Grant table mappings/unmappings are an obvious place where we already trap
to the hypervisor and could make correspodning changes to iommu mappings?

It depends if we want the iommu to do any more than prevent arbitrary DMA
access to foreign pages. What's the threat model you are wanting to use the
iommu to protect against?

 -- Keir

On 10/1/08 15:48, "Wei Wang2" <wei.wang2@xxxxxxx> wrote:

> hi list,
> I am considering adding DMA protection/isolation support for iommu
> machine:  Below are the suggested approaches to be discussed:
> 
> 1) Para-virtualized IOMMU
> If it is possible to integrate IOMMU driver into guest kernel, we can
> just implement a set of para-virtualized interface to forward hardware
> operations from guest to HV. Guest kernel will allocation IO page table
> for itself, but IO-PTE updating is verified by HV through hypercall.
> 
> 2) IOMMU-aware dma layer.
> Currently, driver domain utilizes swiotlb to get dma_address below 4G,
> which is an additional overhead to IOMMU machine. For IOMMU machine, we
> can implement a new dma layer which takes "guest_domain-id",
> "device_bdf", and "guest_page" information as parameters and returns
> virtual io address to guest OS. Guest OS only have very limited
> knowledge/control to IOMMU. In this case, HV will allocate and update IO
> page table for guest domain.
> 
> 3) Hooking guest memory changes
> No guest OS modification is needed in this approach.  All we need is to
> update IO page table when guest physical memory changes triggered by
> domain initialization, ballooning, and grant reference mapping...
> 
> Thanks for any comments, ideas, corrections... to this thread.
> 
> -Wei
> 
> 
> 
> 
> 
> 



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel