From: Wei Liu Subject: Re: [PATCH 1/3] x86/p2m: tighten conditions of IOMMU mapping updates Date: Wed, 23 Sep 2015 15:00:16 +0100 Message-ID: <20150923140016.GF9104@zion.uk.xensource.com> References: <560028DD02000078000A408D@prv-mh.provo.novell.com> <56002A1B02000078000A40B9@prv-mh.provo.novell.com> <56017EAC02000078000A470C@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zekav-0001Ux-TO for xen-devel@lists.xenproject.org; Wed, 23 Sep 2015 14:00:26 +0000 Content-Disposition: inline In-Reply-To: <56017EAC02000078000A470C@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Kevin Tian , Wei Liu , George Dunlap , Andrew Cooper , Jun Nakajima , xen-devel , Keir Fraser List-Id: xen-devel@lists.xenproject.org On Tue, Sep 22, 2015 at 08:15:39AM -0600, Jan Beulich wrote: > >>> On 21.09.15 at 16:02, wrote: > > In the EPT case permission changes should also result in updates or > > TLB flushes. > > > > In the NPT case the old MFN does not depend on the new entry being > > valid (but solely on the old one), and the need to update or TLB-flush > > again also depends on permission changes. > > > > In the shadow mode case, iommu_hap_pt_share should be ignored. > > > > Furthermore in the NPT/shadow case old intermediate page tables must > > be freed only after IOMMU side updates/flushes have got carried out. > > > > Signed-off-by: Jan Beulich > > Wei, > > I'm sorry, I forgot to Cc you on the patch and state that I think this > should be considered for 4.6. > While I think having this issue fixed for 4.6 would be nice, I would like to ... > Jan > > > --- > > In addition to the fixes here it looks to me as if both EPT and > > NPT/shadow code lack invalidation of IOMMU side paging structure > > caches, i.e. further changes may be needed. Am I overlooking something? have this question answered. Having a "fix" that doesn't actually fix the issue is not very useful... Wei.