From: "pradeep singh rautela" Subject: Re: swiotlb and Xen query? Date: Thu, 3 May 2007 14:54:55 +0530 Message-ID: <6bc632150705030224w789eca7eu2a279631bf99a316@mail.gmail.com> References: <6bc632150705022141g28129200kf000cccb9d105551@mail.gmail.com> <907625E08839C4409CE5768403633E0B018E1CAF@sefsexmb1.amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1305572893==" Return-path: In-Reply-To: <907625E08839C4409CE5768403633E0B018E1CAF@sefsexmb1.amd.com> 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: "Petersson, Mats" Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --===============1305572893== Content-Type: multipart/alternative; boundary="----=_Part_20353_31536453.1178184295519" ------=_Part_20353_31536453.1178184295519 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 5/3/07, Petersson, Mats wrote: > > [snip] > > > > > > That was really very informative Mats. > > Thanks you very much for the help. > > So, i guess swiotlb comes into picture only if there is a DMA > > transfer from a domU whose p2m mapping turns out to be above > > the 4GB( assuming device to be 32 bit) of the machine memory. > > Other wise just normal p2m mapping is enough to find the > > actual machine address, which can be handed over to the > > device for DMAing. Am i right? > > Yes, that's pretty much how it works. In theory, it could be that > devices only work on a 31, 28 or some other number of bit-range, but > yes, that's the principle. Ok.Got this correct. I am sure this can cause problems while migrating live domains across cpus. yes/no/thoughts? Thank you ~psr -- > Mats > > > > Thank you once again for the patience. > > > > Regards > > ~psr > > > [snip] > > > -- --- pradeep singh rautela "Genius is 1% inspiration, and 99% perspiration" - not me :) ------=_Part_20353_31536453.1178184295519 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 5/3/07, Petersson, Mats <Mats.Petersson@amd.com> wrote:
[snip]
>
>
> That was really very informative Mats.
> Thanks you very much for the help.
> So, i guess swiotlb comes into picture only if there is a DMA
> transfer from a domU whose p2m mapping turns out to be above
> the 4GB( assuming device to be 32 bit) of the machine memory.
> Other wise just normal p2m mapping is enough to find the
> actual machine address, which can be handed over to the
> device for DMAing. Am i right?

Yes, that's pretty much how it works. In theory, it could be that
devices only work on a 31, 28 or some other number of bit-range, but
yes, that's the principle.

Ok.Got this correct.
I am sure this can cause problems while migrating live domains across cpus.
yes/no/thoughts?

Thank you
~psr

--
Mats
>
> Thank you once again for the patience.
>
> Regards
> ~psr
>
[snip]





--
---
pradeep singh rautela

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