From: Keir Fraser Subject: Re: scrubbing pages on vm pause Date: Tue, 25 May 2010 15:19:51 +0100 Message-ID: References: <4BFBDC84.2090500@invisiblethingslab.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4BFBDC84.2090500@invisiblethingslab.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Joanna Rutkowska Cc: "xen-devel@lists.xensource.com" , Rafal Wojtczuk List-Id: xen-devel@lists.xenproject.org On 25/05/2010 15:19, "Joanna Rutkowska" wrote: > Let's consider this scenario: > > xm save domain1 > > xm create domain2 > > Can the domain2 get *unscrubbed* pages that were previously used by > domain1, but were not scrubbed properly by domain1? Generally speaking a domain loses pages to the free pool in only two ways: via a decrease_reservation hypercall, and via domain destruction. In the former case the domain itself is responsible for first scrubbing the page. In the latter case Xen is responsible. With both avenues covered, domain2 cannot get unscrubbed pages from domain1. -- Keir