From: Stefan Berger Subject: [PATCH] [RFC] scrub pages when balloon frees them Date: Tue, 01 Apr 2008 21:46:01 -0400 Message-ID: <1207100761.3573.7.camel@gsal-3.watson.ibm.com> Reply-To: stefanb@us.ibm.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-MTYfhlB4sIlrbzts2IYX" 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 Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --=-MTYfhlB4sIlrbzts2IYX Content-Type: text/plain Content-Transfer-Encoding: 7bit When a domain is killed, all its memory pages are cleared. However, I looked at the code path that is run when a domain releases memory from the balloon and could not find code that would scrub these pages. So I added this line, but I am wondering whether previously it was forgotten or not done due to some other reason? Signed-off-by: Stefan Berger --=-MTYfhlB4sIlrbzts2IYX Content-Disposition: attachment; filename=scrub_page_when_deflate_balloon.diff Content-Type: text/x-patch; name=scrub_page_when_deflate_balloon.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r b64be2bc7a91 xen/common/page_alloc.c --- a/xen/common/page_alloc.c Tue Jan 15 14:24:05 2008 +0000 +++ b/xen/common/page_alloc.c Tue Apr 01 21:35:32 2008 -0400 @@ -455,6 +455,7 @@ static void free_heap_pages( { cpus_clear(pg[i].u.free.cpumask); } + scrub_page(page_to_virt(&pg[i])); } spin_lock(&heap_lock); --=-MTYfhlB4sIlrbzts2IYX Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-MTYfhlB4sIlrbzts2IYX--