From: Tim Deegan Subject: Re: [PATCH] p2m: Allow non-leaf entries to be replaced by leaf entries Date: Fri, 21 Jan 2011 16:06:54 +0000 Message-ID: <20110121160654.GK8286@whitby.uk.xensource.com> References: <9ca9331c97808b6aa026.1295624275@elijah> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <9ca9331c97808b6aa026.1295624275@elijah> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org At 15:37 +0000 on 21 Jan (1295624275), George Dunlap wrote: > p2m: Allow non-leaf entries to be replaced by leaf entries > > Allow l2 and l3 p2m tables to be replaced with 2MB and 1GB pages > respectively, freeing the p2m table page properly. This allows, for example, > a sequence of 512 singleton zero pages to be replaced with a superpage > populate-on-demand entry. > > Changes: > * Add a p2m_free_ptp() corresponding to p2m_alloc_ptp(), which will > handle everything related to the freeing properly. > * Add p2m_free_entry(), based on ept_free_entry(), which will free > intermediate tables recursively. > * For both ept and p2m, when replacing non-leaf entries with leaf > entries, keep old entry and call *_free_entry() after new entry > has been written and proper flushes have been done. > > Signed-off-by: George Dunlap Applied, thanks. (I made a few small changes to help the debug=y build.) Tim. -- Tim Deegan Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)