direct-io.hg

changeset 15511:83fd4ad219cd

Introduce 'bootscrub' boolean cmdline option. Default on.

no-bootscrub will disable boot-time RAM scrubbing, speeding up boot
time significantly on big-memory systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Mon Jul 09 14:30:46 2007 +0100 (2007-07-09)
parents 5e8eb0cf2daf
children aa640601575f
files xen/common/page_alloc.c
line diff
     1.1 --- a/xen/common/page_alloc.c	Mon Jul 09 14:29:53 2007 +0100
     1.2 +++ b/xen/common/page_alloc.c	Mon Jul 09 14:30:46 2007 +0100
     1.3 @@ -46,6 +46,12 @@ static char opt_badpage[100] = "";
     1.4  string_param("badpage", opt_badpage);
     1.5  
     1.6  /*
     1.7 + * no-bootscrub -> Free pages are not zeroed during boot.
     1.8 + */
     1.9 +static int opt_bootscrub __initdata = 1;
    1.10 +boolean_param("bootscrub", opt_bootscrub);
    1.11 +
    1.12 +/*
    1.13   * Bit width of the DMA heap.
    1.14   */
    1.15  static unsigned int  dma_bitsize = CONFIG_DMA_BITSIZE;
    1.16 @@ -624,6 +630,9 @@ void __init scrub_heap_pages(void)
    1.17      void *p;
    1.18      unsigned long mfn;
    1.19  
    1.20 +    if ( !opt_bootscrub )
    1.21 +        return;
    1.22 +
    1.23      printk("Scrubbing Free RAM: ");
    1.24  
    1.25      for ( mfn = first_valid_mfn; mfn < max_page; mfn++ )