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] [PATCH 4/4] amd iommu: Large io page support - implement

To: "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 4/4] amd iommu: Large io page support - implementation
From: Wei Wang2 <wei.wang2@xxxxxxx>
Date: Tue, 7 Dec 2010 12:20:03 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 07 Dec 2010 03:23:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <987664A83D2D224EAE907B061CE93D5301936C1BF6@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <201012031703.48774.wei.wang2@xxxxxxx> <987664A83D2D224EAE907B061CE93D5301936C1BF6@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 20070904.708012)
Hi Allen,
Actually, each amd iommu pde entry uses bit 9-11 to encode next page table 
level, but these bits are also used as AVL bits by p2m table to encode 
different page types...So, it might not be quite easy to share NPT table with 
amd iommu unless we change p2m table encoding for this first.
Thanks,
Wei

On Tuesday 07 December 2010 01:47:22 Kay, Allen M wrote:
> Hi Wei,
>
> My understanding is that both EPT/NPT already supports 2M and 1G page
> sizes.  If this is true and if NPT supports the same page table format as
> AMD iommu, shouldn't iommu 2M and 1G support just a matter of pointing
> iommu page table pointer to NPT page table of the same guest OS thus
> sharing the same page table between NPT and AMD iommu?
>
> This should save a lot code changes in iommu code.  We just need to flush
> iommu page table in IOTLB at appropriate places.
>
> Allen
>
> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Wei Wang2 Sent:
> Friday, December 03, 2010 8:04 AM
> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-devel] [PATCH 4/4] amd iommu: Large io page support -
> implementation
>
> This is the implementation.
>
> Thanks,
> We
> Signed-off-by: Wei Wang <wei.wang2@xxxxxxx>
> --
> Legal Information:
> Advanced Micro Devices GmbH
> Sitz: Dornach, Gemeinde Aschheim,
> Landkreis München Registergericht München, HRB Nr. 43632
> Geschäftsführer:
> Alberto Bozzo, Andrew Bowd




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