From: Tim Deegan Subject: Re: [PATCH v2 2/6] x86/EPT: don't walk entire page tables when changing types on a range Date: Thu, 24 Apr 2014 18:00:59 +0200 Message-ID: <20140424160059.GJ48969@deinos.phlegethon.org> References: <53567B1C020000780000AB8C@nat28.tlf.novell.com> <53567CC4020000780000ABA7@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WdM57-0002e4-SZ for xen-devel@lists.xenproject.org; Thu, 24 Apr 2014 16:01:02 +0000 Content-Disposition: inline In-Reply-To: <53567CC4020000780000ABA7@nat28.tlf.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 , Keir Fraser , suravee.suthikulpanit@amd.com, Eddie Dong , Jun Nakajima , xen-devel , Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org At 13:29 +0100 on 22 Apr (1398169764), Jan Beulich wrote: > This requires a new P2M backend hook and a little bit of extra care on > accounting in the generic function. > > Note that even on leaf entries we must not immediately set the new > type (in an attempt to avoid the EPT_MISCONFIG VM exits), since the > global accounting in p2m_change_type_range() gets intentionally done > only after updating page tables (or else the update there would > conflict with the function's own use of p2m_is_logdirty_range()), and > the correct type can only be calculated with that in place. > > Signed-off-by: Jan Beulich Looks good, once 1/6 is ready. Reviewed-by: Tim Deegan