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: Wei Wang2 <wei.wang2@xxxxxxx>, "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 4/4] amd iommu: Large io page support - implementation
From: Keir Fraser <keir@xxxxxxx>
Date: Tue, 07 Dec 2010 18:00:45 +0000
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 07 Dec 2010 10:04:03 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:user-agent:date :subject:from:to:cc:message-id:thread-topic:thread-index:in-reply-to :mime-version:content-type:content-transfer-encoding; bh=AK7kGc1xf6vN7DNGEHZKBDpQfF+4l6K+0LXxC6PwkRc=; b=sOl561atvQx+W43oE2jByEQPgSvUMzYRUhBYblctmvdHxrX3MrfJZqEJrpk3pa/JL1 MbP3fANBxniMEACjX60ohL/j5P1bXk9/c7EsZn/VpNkZzTxjFMSM5JiQrLbuZT86Bhd7 osRZF2IJMKy75OtH3TUVe4Mg9JRq3dFsoxOe8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=C9VdYS32PMbutePhj4mJTs8PDJSHFEAjGo0PouWntwvlVg764MkYAvSAI6RrFISgSe Ca7Vi0ktHxrnsS4PcF5/epyiRNKWdOjZAuCQ00vKXbHBUuohqZzQQOovesW06Ogcr5mc E6/w2zybT5OU3kGc/dCdhvYMSX2JfRhrn2dSM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201012071220.03624.wei.wang2@xxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcuWOKuCVywSSenv/Ua/Biq4rmSbRQ==
Thread-topic: [Xen-devel] [PATCH 4/4] amd iommu: Large io page support - implementation
User-agent: Microsoft-Entourage/12.27.0.100910
Cc'ing Tim -- he could advise how plausible it is to find other available
bits to move the p2m types to. Also I'm not sure whether the p2m tables ever
get used as host pagetables these days (e.g., when guest has CR0.PG=0). That
could affect how difficult it is to mess with the p2m format.

If it's possible, though, it's probably worth pursuing. Sharing the tables
uses less memory, and could be less complicated code too.

 -- Keir

On 07/12/2010 11:20, "Wei Wang2" <wei.wang2@xxxxxxx> wrote:

> 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



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