From: "pradeep singh rautela" Subject: swiotlb and Xen query? Date: Wed, 2 May 2007 18:19:06 +0530 Message-ID: <6bc632150705020549l63456f8dkcf40750cb6fdc9d6@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1783752199==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel , xenkernelnewbies@googlegroups.com List-Id: xen-devel@lists.xenproject.org --===============1783752199== Content-Type: multipart/alternative; boundary="----=_Part_6685_14936358.1178110146272" ------=_Part_6685_14936358.1178110146272 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, dom0 and domU uses swiotlb mechanism to emulate hardware IOMMU, right? And that so because the whole memory is visible to hypervisor only and not to other domains, am i right? My doubt is once the translation table between virtual and physical addresses is set by the swiotlb.How does device becomes aware of this table which is emulated in hardware as a matter of fact using swiotlb.the device does not knows about this table when accessing physical memory, isnt it? Another question is - dom0 and domU they both have their swiotlb mappings.This means Xen also keeps record of a mapping between these two tables in dom0 and domU? Am i right? Doesnt this means wasting a lot of memory in allocating bounce buffers for swiotlb during booting of dom0 and then during booting of domUs? Please bear as i am just starting with the Xen code . Any pointers or links will be really helpful. Thank you ~psr -- --- pradeep singh rautela "Genius is 1% inspiration, and 99% perspiration" - not me :) ------=_Part_6685_14936358.1178110146272 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All,

dom0 and domU uses swiotlb mechanism to emulate hardware IOMMU, right?
And that so because the whole memory is visible to hypervisor only and not to other domains, am i right?

My doubt is once the translation table between virtual and physical addresses is set by the swiotlb.How does device becomes aware of this table which is emulated in hardware as a matter of fact using swiotlb.the device does not knows about this table when accessing physical memory, isnt it?

Another question is -
dom0 and domU they both have their swiotlb mappings.This means Xen also keeps record of a mapping between these two tables in dom0 and domU? Am i right? Doesnt this means wasting a lot of memory in allocating bounce buffers for swiotlb during booting of dom0 and then during booting of domUs?

Please bear as i am just starting with the Xen code .
Any pointers or links will be really helpful.

Thank you
~psr


--
---
pradeep singh rautela

"Genius is 1% inspiration, and 99% perspiration" - not me :) ------=_Part_6685_14936358.1178110146272-- --===============1783752199== 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 --===============1783752199==--