From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christoph Egger" Subject: [PATCH] Page scrubbing Date: Tue, 11 Sep 2007 17:07:05 +0200 Message-ID: <200709111707.06187.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_a8q5GeiwuH/9vdP" 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 --Boundary-00=_a8q5GeiwuH/9vdP Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! Make scrub_heap_pages() print from where to where it scrubs pages. Signed-off-by: Christoph Egger This patch uncovers a strange behaviour on 32bit. On 64bit I get this: (XEN) Scrubbing Free RAM 0xffff830000100000 -> 0xffff83003fff0000: ....done. On 32bit I get this: (XEN) Scrubbing Free RAM 0xffc00000 ->=20 0xdefb0000: .............................done. On 64bit the scrubber goes up, but on 32bit it goes down. Is this behaviour expected? =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_a8q5GeiwuH/9vdP Content-Type: text/x-diff; charset=us-ascii; name=xen_scrub.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen_scrub.diff diff -r 9071521d4864 xen/common/page_alloc.c --- a/xen/common/page_alloc.c Fri Sep 07 11:39:10 2007 +0100 +++ b/xen/common/page_alloc.c Thu Aug 16 17:00:26 2007 +0200 @@ -596,7 +596,9 @@ void __init scrub_heap_pages(void) if ( !opt_bootscrub ) return; - printk("Scrubbing Free RAM: "); + printk("Scrubbing Free RAM 0x%p -> 0x%p: ", + page_to_virt(mfn_to_page(first_valid_mfn)), + page_to_virt(mfn_to_page(max_page))); for ( mfn = first_valid_mfn; mfn < max_page; mfn++ ) { --Boundary-00=_a8q5GeiwuH/9vdP 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 --Boundary-00=_a8q5GeiwuH/9vdP--