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

[Xen-devel] RE: [RFC][PATCH][VTD] EPT/VT-d page table sharing

To: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: [Xen-devel] RE: [RFC][PATCH][VTD] EPT/VT-d page table sharing
From: "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Date: Fri, 10 Dec 2010 18:01:08 -0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Wei Wang2 <wei.wang2@xxxxxxx>, "Han, Weidong" <weidong.han@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxx>
Delivery-date: Fri, 10 Dec 2010 18:02:11 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20101209101231.GH9912@xxxxxxxxxxxxxxxxxxxxxxx>
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: <201012071220.03624.wei.wang2@xxxxxxx> <C92426CD.BDEE%keir@xxxxxxx> <20101208100318.GA9912@xxxxxxxxxxxxxxxxxxxxxxx> <201012081402.39900.wei.wang2@xxxxxxx> <20101208131116.GF9912@xxxxxxxxxxxxxxxxxxxxxxx> <987664A83D2D224EAE907B061CE93D530193A6BA72@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20101209101231.GH9912@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcuXiZwlTHAwlitqTDCZBp7IUKoOnQBTK7Gg
Thread-topic: [RFC][PATCH][VTD] EPT/VT-d page table sharing
Hi Tim,

Thanks for your feedback.  In attached updated patch, I have:

   1) moved setting of iommu_hap_pt_share flag to init_vtd_hw(). This function 
initialized other vt-d specific features.  Let me know if you know of a better 
place.
   2) rename avail2 field to sa_p2mt.

Let me know if you have any additional comments.

Allen

-----Original Message-----
From: Tim Deegan [mailto:Tim.Deegan@xxxxxxxxxx] 
Sent: Thursday, December 09, 2010 2:13 AM
To: Kay, Allen M
Cc: Wei Wang2; Keir Fraser; Han, Weidong; xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [RFC][PATCH][VTD] EPT/VT-d page table sharing

At 18:38 +0000 on 08 Dec (1291833518), Kay, Allen M wrote:
> Attached is EPT/VT-d page table sharing patch I mentioned earlier.  Basic 
> idea is to leverage 2MB and 1GB page size support in EPT by having VT-d using 
> the same page tables as EPT.  When EPT page table changes, flush VT-d IOTLB 
> cache.
> 
> We are still further testing this patch but would appreciate feedbacks.

Looks good!  Two minor nits:
 - the path through iommu_set_pgd where the feature gets turned on is a
   bit confusing.  It would be cleaner to have the global flag enabled 
   as part of the general machine init.
 - while you're moving the p2m bits into avail2, could you rename the
   avail2 field to p2mt or similar?  It would make the rest of the code
   clearer.

Cheers,

Tim.

> Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>
> Signed-off-by: Allen Kay <allen.m.kay@xxxxxxxxx>



-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

Attachment: share1210.patch
Description: share1210.patch

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