From: "Jan Beulich" Subject: Re: PML (Page Modification Logging) design for Xen Date: Tue, 17 Feb 2015 10:40:43 +0000 Message-ID: <54E328BB02000078000608D5@mail.emea.novell.com> References: <54DB129D.3060102@linux.intel.com> <54DB4294.1080406@citrix.com> <54DB6392020000780005F08B@mail.emea.novell.com> <54DC1171.1030000@linux.intel.com> <54DC4C1A.6010404@linux.intel.com> <20150212124213.GB82524@deinos.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Kevin Tian Cc: Kai Huang , Andrew Cooper , Tim Deegan , "keir@xen.org" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 13.02.15 at 03:28, wrote: >> From: Tim Deegan [mailto:tim@xen.org] >> Sent: Thursday, February 12, 2015 8:42 PM >> >> At 07:08 +0000 on 12 Feb (1423721283), Tian, Kevin wrote: >> > for general log dirty, ept_invalidate_emt is required because there is >> > access permission change (dirtied page becomes rw after 1st fault, >> > so need to change them back to ro again for the new dirty tracking >> > round). But for PML, there's no permission change at all (always rw), >> > so such behavior should be noted by general logdirty layer for better >> > optimization. >> >> AIUI the reason for calling ept_invalidate_emt() is to avoid having to >> update a large number of EPTEs at once. If you still need to update a >> large number of EPTEs (to clear the Dirty bits), that has to me >> preemptable, or else use ept_invalidate_emt(). >> >> Or have I misunderstood? > > preemptable is fine and we can judge whether dirty set is large or not. > My feeling is that replace simple D-bit cleanup with ept misconfig exit > is not optimal. Jan explained not strictly one misconfig exit for every D > bit since whole L1 will be handled in a batch, but we need have some > understanding of actual impact based on various workload patterns. What alternatives do you see when dealing with a global run over all entries? Jan