From: Ian Jackson Subject: Re: [PATCH 07/16] xenpaging: populate only paged-out pages Date: Wed, 3 Nov 2010 12:38:59 +0000 Message-ID: <19665.22499.347592.712902@mariner.uk.xensource.com> References: <20101102223010.603002116@aepfle.de> <20101102223013.193448172@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20101102223013.193448172@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Olaf Hering Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("[Xen-devel] [PATCH 07/16] xenpaging: populate only paged-out pages"): > populdate a paged-out page only once to reduce pressure in the ringbuffer. > Several cpus may still request a page at once. xenpaging can handle this. > > But: maybe this will miss pages in paging-out state? I can't answer your second question, but surely this pattern: > - p2m_mem_paging_populate(p2m, ram_gfn); > + if ( p2m_is_paged(p2mt) ) > + p2m_mem_paging_populate(p2m, ram_gfn); would better be done inside p2m_mem_paging_populate ? Unless there are some calls to _populate which should skip the check ? Ian.