From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Deegan Subject: Re: [PATCH] x86/mem sharing: Take care of domain reference for shared pages Date: Thu, 5 Apr 2012 11:09:27 +0100 Message-ID: <20120405100927.GC14774@ocelot.phlegethon.org> References: <6a3e651ee3b6123eca9c.1333554512@xdev.gridcentric.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <6a3e651ee3b6123eca9c.1333554512@xdev.gridcentric.ca> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andres Lagar-Cavilla Cc: andres@gridcentric.ca, adin@gridcentric.ca, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 11:48 -0400 on 04 Apr (1333540112), Andres Lagar-Cavilla wrote: > Making a page sharable removes it from the previous owner's list. Making it > private adds it. These actions are similar to freeing or allocating a page. > Except that they were not minding the domain reference that is taken/dropped > when the first/last page is allocated/freed. > > Without fixing this, a domain might remain zombie when destroyed if all its > pages are shared. > > Signed-off-by: Andres Lagar-Cavilla Applied, thanks. Tim.