From: George Dunlap Subject: xenheap pages mapped by dom0 Date: Fri, 18 Dec 2009 14:04:02 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org What's the standard practice regarding freeing xenheap pages that have been shared with dom0 (and may currently be mapped)? Do we need to make sure they're unmapped before we free them, or can we just call free_xenheap_pages() and let the reference counting take care of actually freeing them when dom0 unmaps them (if ever)? I'm looking at allowing xentrace buffers to be resized, and need to deal with potentially freeing pages which may be mapped by dom0. If it's as simple as free-and-forget, I'll include that functionality; if it's more complicated, I'll punt until another time (as I really only care about increasing the size of each cpu's buffer, not resizing buffers). -George