|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Re: [XEN-IOMMU] Proposal of DMA protection/isolationsupp
To: |
Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx> |
Subject: |
Re: [Xen-devel] Re: [XEN-IOMMU] Proposal of DMA protection/isolationsupport |
From: |
tgh <wwwwww4187@xxxxxxxxxxx> |
Date: |
Fri, 18 Jan 2008 16:10:46 +0800 |
Cc: |
muli@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx, Thomas Woller <thomas.woller@xxxxxxx>, Wei Wang2 <wei.wang2@xxxxxxx>, "Dannowski, Uwe" <Uwe.Dannowski@xxxxxxx>, elsie.wahlig@xxxxxxx, "Hohmuth, Michael" <Michael.Hohmuth@xxxxxxx>, amit.shah@xxxxxxxxxxxx |
Delivery-date: |
Fri, 18 Jan 2008 00:11:31 -0800 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxx |
In-reply-to: |
<DD74FBB8EE28D441903D56487861CD9D26D3E383@xxxxxxxxxxxxxxxxxxxxxx> |
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> |
References: |
<C3ABFF33.1A94F%Keir.Fraser@xxxxxxxxxxxx> <1200501262.4026.91.camel@xxxxxxxxxxxx> <DD74FBB8EE28D441903D56487861CD9D26D3E383@xxxxxxxxxxxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
Thunderbird 1.5.0.7 (Windows/20060909) |
hi
IOMMU, could it be used in KVM ,or not? if it could , what about the
difference between the usage in xen and the usage in KVM?
Thanks
Ian Pratt 写道:
After looking into the grant mapping code (use block device as an
example), I got some ideas to share with you and the list. Please
correct me if I missed something. There might be 2 places to trigger
iommu mapping:
1) Before submitting io request to generic block layer, block backend
driver will invoke GNTTABOPs to map granted remote pages . However
creating iommu mapping only in GNTTABOP not very enough because local
pages will also be submitted to block layer and they should also be
translated by iommu.
2) When dma layer is invoked to prepare a bus address for native block
device driver. It would be better to have a "hypervisor-aware" dma
layer
which always maps virtual address to bus address via hypercall.
__gnttab_dma_map_page() might be a good place to trigger this new
hypercall. Both remote and local pages can be mapped by this way.
It's much better to create most mappings in #1 when the operations are
easily batchable into a single hypercall, and then fill in the missing
mappings when required at #2.
Since in many situations dom0 does very little IO for itself, this
should be a significant win, especially for networking.
Ian
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|