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/
Home Products Support Community News


RE: [Xen-devel] [PATCH] [VTD] Separate VT-d page table from P2M table

To: "Han, Weidong" <weidong.han@xxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] [VTD] Separate VT-d page table from P2M table
From: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
Date: Tue, 22 Apr 2008 15:51:46 +0100
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, "Kay, Allen M" <allen.m.kay@xxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Delivery-date: Tue, 22 Apr 2008 07:52:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <08DF4D958216244799FC84F3514D70F00145C007@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <08DF4D958216244799FC84F3514D70F00145C007@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
[Weidong Han]
> Keir Fraser wrote:
>> On 22/4/08 13:17, "Han, Weidong" <weidong.han@xxxxxxxxx> wrote:
>>>> Are you saying that the VT-d 2MB page format is different from
>>>> the EPT 2MB page format? Or that VTd does not support 2MB pages?
>>> Now VTd does not support 2MB pages.
>> Then don't allow EPT 2MB mappings for domains which have passthru
>> devices?

> No, EPT is 2MB, VT-d page table is 4KB.

So EPT only supports 2MB mappings?  Not 4KB?  That doesn't sound right.

Another possible inompatibility: The VT-d chipset I'm using only
allows 4-level page tables.  Not sure if similar restrictions might
apply to EPT.  Also, in another project I worked on I found it
advantageous to emulate superpages in the guest even if this was not
supported by the VT hardware --- lower memory footprint, quicker table
lookups.  Such optimizations might be another reason for separating
the tables.

That said, I would really disfavor separating the tables.  There are
enough memory management structures as it is right now.  If the tables
really, really, really need to be separated then don't make it a boot
time option.  The capabilities of VT-d (and probably also EPT) is
readily available at initialization time, and that's where the
decision for sharing or not should be done.


Xen-devel mailing list