WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] p2m: Allow non-leaf entries to be replaced by le

To: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] p2m: Allow non-leaf entries to be replaced by leaf entries
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Fri, 21 Jan 2011 16:06:54 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 21 Jan 2011 08:11:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <9ca9331c97808b6aa026.1295624275@elijah>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <9ca9331c97808b6aa026.1295624275@elijah>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
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 <george.dunlap@xxxxxxxxxxxxx>

Applied, thanks.  (I made a few small changes to help the debug=y build.)

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>