From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: mem_sharing: summarized problems when domain is dying Date: Fri, 21 Jan 2011 16:32:34 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jui-Hao Chiang Cc: MaoXiaoyun , xen devel , Tim Deegan List-Id: xen-devel@lists.xenproject.org [sorry, accidentally sent too early] On Fri, Jan 21, 2011 at 4:29 PM, George Dunlap wrote: > I'm not sure the exact rationale behind the "cannot fail" flag; but it > looks like in grant_table.c, both callers of gfn_to_mfn_unshare() > handle the case where the returned p2m entry is just ...invalid. I wonder if "unsharing" the page, but marking the entry invalid during death would help. I suppose the problem there is that if you're keeping the VM around but paused for analysis, you'll have holes in your address space. But just returning an invalid entry to the callers who try to unshare pages might work. -George