From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joanna Rutkowska Subject: Re: Does xc_map_foreign_pages() update IOMMU tables? Date: Thu, 13 May 2010 14:09:45 +0200 Message-ID: <4BEBEC09.1010503@invisiblethingslab.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0840478234==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0840478234== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4C551F4CE92198F7B58609A1" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4C551F4CE92198F7B58609A1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 05/13/2010 02:00 PM, Keir Fraser wrote: > On 13/05/2010 12:48, "Joanna Rutkowska" = > wrote: >=20 >> 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 vie= w)? >=20 > 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. >=20 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. --------------enig4C551F4CE92198F7B58609A1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkvr7AkACgkQORdkotfEW86wPACg10+cROvr2vChOCZ2g8LrsNhW yTUAoK01N7CihWc8VYi30syE3LRcEG3O =dRLm -----END PGP SIGNATURE----- --------------enig4C551F4CE92198F7B58609A1-- --===============0840478234== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0840478234==--