From: "Jan Beulich" Subject: Re: PML (Page Modification Logging) design for Xen Date: Tue, 17 Feb 2015 10:37:42 +0000 Message-ID: <54E3280602000078000608BE@mail.emea.novell.com> References: <54DB129D.3060102@linux.intel.com> <54DB4294.1080406@citrix.com> <54DC1249.60507@linux.intel.com> <54DCB43A.7080609@citrix.com> <54DD5D3D.7000601@linux.intel.com> <54DDD8AC.1040102@citrix.com> <54DE1813.3030509@citrix.com> <54E1D824.7090603@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54E1D824.7090603@citrix.com> 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: Andrew Cooper Cc: Kevin Tian , "keir@xen.org" , "tim@xen.org" , "xen-devel@lists.xen.org" , Kai Huang , Kai Huang List-Id: xen-devel@lists.xenproject.org >>> On 16.02.15 at 12:44, wrote: > On 14/02/15 03:01, Kai Huang wrote: >> To me looks currently tracking vram (HAP) shatters all superpages, >> instead only superpages in vram range would be. Am I misunderstanding >> here? > > You are completely correct. > > Having just re-reviewed the HAP code, superpages are fully shattered as > soon as logdirty mode is touched, which realistically means > unconditionally, given that Qemu will always track guest VRAM. (So much > for the toolstack trying to optimise the guest by building memory using > superpages; Qemu goes and causes Xen extra work by shattering them all.) So this is due to which code? I ask because I can't seem to be able to spot it (p2m-ept.c uses ept_split_super_page() only on when needed, not unconditionally everywhere)... Jan