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: [PATCH][VTD] fixing vt-d/ept page table sharing in xen-4

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: [Xen-devel] RE: [PATCH][VTD] fixing vt-d/ept page table sharing in xen-4.1
From: "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Date: Mon, 22 Aug 2011 09:51:00 -0700
Accept-language: en-US
Acceptlanguage: en-US
Cc: "Ren, Yongjie" <yongjie.ren@xxxxxxxxx>, Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, "keir@xxxxxxx" <keir@xxxxxxx>, Tim Deegan <tim@xxxxxxx>, "Hao, Xudong" <xudong.hao@xxxxxxxxx>, "Li, Xin" <xin.li@xxxxxxxxx>
Delivery-date: Mon, 22 Aug 2011 09:52:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E5223CD02000078000525DB@xxxxxxxxxxxxxxxxxxxx>
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: <CE59C043D0EC3349B2BF41C0EC72229B12D21111FB@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <CE59C043D0EC3349B2BF41C0EC72229B12D216E382@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20110803171239.GA71832@xxxxxxxxxxxxxxxxxxxxx> <987664A83D2D224EAE907B061CE93D5301EA1F3274@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4E3FAF0F0200007800050178@xxxxxxxxxxxxxxxxxxxx> <20110808151150.GB5845@xxxxxxxxxxxxxxxxxxxxx> <20110810162534.GB11708@xxxxxxxxxxxxxxxxxxxxx> <20110815101159.GG11708@xxxxxxxxxxxxxxxxxxxxx> <20110815104059.GH11708@xxxxxxxxxxxxxxxxxxxxx> <987664A83D2D224EAE907B061CE93D5301EA3F8905@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20110816091320.GL11708@xxxxxxxxxxxxxxxxxxxxx> <987664A83D2D224EAE907B061CE93D5301EA531481@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4E5223CD02000078000525DB@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcxgnqGORAM5UuQSRqqZrNu9h9vQ2QATGorQ
Thread-topic: [PATCH][VTD] fixing vt-d/ept page table sharing in xen-4.1
Probably the right thing to do is set this flag in p2m_alloc_table(), after 
calling pagetabel_from_mfn() and before calling iommu_share_p2m_table().   
However, this will require passing the domain pointer to p2m_alloc_table().

What do you think Tim?

Allen

-----Original Message-----
From: Jan Beulich [mailto:JBeulich@xxxxxxxxxx] 
Sent: Monday, August 22, 2011 12:39 AM
To: Kay, Allen M
Cc: Li, Xin; Hao, Xudong; Ren, Yongjie; Xen Devel; keir@xxxxxxx; Tim Deegan
Subject: Re: [PATCH][VTD] fixing vt-d/ept page table sharing in xen-4.1

>>> On 20.08.11 at 03:47, "Kay, Allen M" <allen.m.kay@xxxxxxxxx> wrote:
> Tim/Keir,
> 
> Attached is a patch for fixing VT-d/EPT sharing issue in xen-4.1-testing.  It 
> is base on Tim's patch with the following changes:
> 
> 1) moving "d->arch.paging.mode = mode | PG_HAP_enable" before calling 
> p2m_alloc_table().  Otherwise, the call to iommu_use_hap_pt() in 
> iommu_set_pgd() will not return TRUE.

Wouldn't you need to revert this change in the error paths that sit
between the new and old places of where this happens/happened?

And is it certain that setting this earlier won't confuse other code?

Jan


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

<Prev in Thread] Current Thread [Next in Thread>