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

Re: [Xen-devel] Does xc_map_foreign_pages() update IOMMU tables?

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Does xc_map_foreign_pages() update IOMMU tables?
From: Joanna Rutkowska <joanna@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 13 May 2010 14:09:45 +0200
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 13 May 2010 05:07:52 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:cc:subject:references:in-reply-to:content-type; s=smtpout; bh=BefYLXdyHYHZc0fQ7JSI7HQ3d2M=; b=iWzgFFpovvZAWN7xvh86pwl9ZxTa0gpPyU5/kC3ZfmZlGcrBn1T/8iR6kBNWON/xzeStPmJGQ7P4wV6ZZ6+pTHdz4ky1MTJvIUM6fIXxCwso/wVQgnChyYLRJRY1ybQe3bDzu0/iutmDgwZwTk/a54HAG6VBBN8m56MwNdmgtvw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C811A854.1428A%keir.fraser@xxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C811A854.1428A%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.4
On 05/13/2010 02:00 PM, Keir Fraser wrote:
> On 13/05/2010 12:48, "Joanna Rutkowska" <joanna@xxxxxxxxxxxxxxxxxxxxxx>
> wrote:
> 
>> Does the xc_map_foreign_pages() update also the IOMMU/VT-d tables so
>> that the mapped pages belong also to Dom0 (from the IOMMU point of view)?
> 
> Seeing as how xc_map_foreign_pages() maps pages into a particular
> guest-process virtual address space, whereas IOMMU tables are a mapping from
> guest-physical address space, it's clear that x_m_f_p() cannot sensibly be
> having any effect on the IOMMU.
> 
Interesting. That suggests the graphics drivers we tested do not use DMA
for XShmPutImage()...

Anyway, what would be the recommend way of updating IOMMU mappings in
this case? Would you consider patching of x_m_f_p() an acceptable
solution? (perhaps with some additional flag: "update_iommu")?

joanna.

Attachment: signature.asc
Description: OpenPGP digital signature

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