From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Deegan Subject: Re: Superpages for VT-D Date: Fri, 3 Aug 2012 12:40:51 +0100 Message-ID: <20120803114051.GC25286@ocelot.phlegethon.org> References: <7914B38A4445B34AA16EB9F1352942F1012F0CDD8A71@SJCPMAILBOX01.citrite.net> <20120719102326.GC75169@ocelot.phlegethon.org> <7914B38A4445B34AA16EB9F1352942F1012F0CDD9588@SJCPMAILBOX01.citrite.net> <20120719145318.GA78502@ocelot.phlegethon.org> <7914B38A4445B34AA16EB9F1352942F1012F0D841328@SJCPMAILBOX01.citrite.net> <20120724194150.GA68065@ocelot.phlegethon.org> <7914B38A4445B34AA16EB9F1352942F1012F0DE66157@SJCPMAILBOX01.citrite.net> <20120802111102.GE11437@ocelot.phlegethon.org> <7914B38A4445B34AA16EB9F1352942F1012F0DE665E4@SJCPMAILBOX01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <7914B38A4445B34AA16EB9F1352942F1012F0DE665E4@SJCPMAILBOX01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Santosh Jodh Cc: "xiantao.zhang@intel.com" , "Nakajima, Jun" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org At 08:56 -0700 on 02 Aug (1343897810), Santosh Jodh wrote: > Thanks for confirming. BTW, would the IOMMU ever have entries above > domains max mapped pfn? I don't believe so, but potentially some grant-table-style operations might want to map pages in for DMA that don't need to be mapped in for CPU access. But if you're writing a dump routine from scratch it should be easy enough (and more efficient) to dump all the entries with a depth-first pass over the trie, rather than individually querying all frames up to max_mapped_pfn. Tim. > -----Original Message----- > From: Tim Deegan [mailto:tim@xen.org] > Sent: Thursday, August 02, 2012 4:11 AM > To: Santosh Jodh > Cc: xiantao.zhang@intel.com; Nakajima, Jun; xen-devel@lists.xen.org > Subject: Re: [Xen-devel] Superpages for VT-D > > At 13:44 -0700 on 31 Jul (1343742260), Santosh Jodh wrote: > > I am going to try to add this support. > > > > It looks like a new iommu_ops handler would be needed that would do > > the actual work of dumping the entries - one for AMD and one for > > Intel. Am I reading this correctly? > > I think that's correct. > > > Or is it better to get the root_table + paging_mode (for AMD) and > > pgd_maddr + agaw (for Intel) and then do a generic dump? > > No; the iommu tabels are sufficiebntly arch-specific that it's best to add arch-specific dump routines. > > Cheers, > > Tim. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel