|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [XEN-IOMMU] Proposal of DMA protection/isolation support
To: |
Wei Wang2 <wei.wang2@xxxxxxx> |
Subject: |
[Xen-devel] Re: [XEN-IOMMU] Proposal of DMA protection/isolation support |
From: |
Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> |
Date: |
Wed, 16 Jan 2008 16:45:29 +0000 |
Cc: |
muli@xxxxxxxxxx, "Dannowski, Uwe" <Uwe.Dannowski@xxxxxxx>, "Hohmuth, Michael" <Michael.Hohmuth@xxxxxxx>, "Woller, Thomas" <thomas.woller@xxxxxxx>, iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, elsie.wahlig@xxxxxxx, amit.shah@xxxxxxxxxxxx |
Delivery-date: |
Wed, 16 Jan 2008 08:45:55 -0800 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxx |
In-reply-to: |
<1200501262.4026.91.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: |
AchYXzOLcisVp8RSEdy6vwAX8io7RQ== |
Thread-topic: |
[XEN-IOMMU] Proposal of DMA protection/isolation support |
User-agent: |
Microsoft-Entourage/11.3.6.070618 |
On 16/1/08 16:34, "Wei Wang2" <wei.wang2@xxxxxxx> wrote:
> 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.
Local pages could always be mapped into the iommu, and only remote pages
would need to be temporarily mapped via the gnttab hooks.
> 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.
An extra hypercall here will likely hurt performance.
-- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|