lkml.org 
[lkml]   [2010]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 0/4] memblock related fixes for -tip
    On 10/13/2010 04:14 PM, Jeremy Fitzhardinge wrote:
    >
    > The Xen code is setting the max_pfn_mapped correctly, but it is just
    > being overridden by:
    >
    > max_pfn_mapped = KERNEL_IMAGE_SIZE >> PAGE_SHIFT;
    >
    > in setup_arch() - and KERNEL_IMAGE_SIZE is hard-coded to 512MB...
    >
    > How is this correct? Does kernel/head_64.S map everything up to 512MB
    > or something?
    >

    Yes:
    /*
    * 512 MB kernel mapping. We spend a full page on this pagetable
    * anyway.
    *
    * The kernel code+data+bss must not be bigger than that.
    *
    * (NOTE: at +512MB starts the module area, see MODULES_VADDR.
    * If you want to increase this then increase MODULES_VADDR
    * too.)
    */
    PMDS(0, __PAGE_KERNEL_LARGE_EXEC,
    KERNEL_IMAGE_SIZE/PMD_SIZE)

    This is, however, wrong in the sense that it obviously shouldn't be
    getting executed on the Xen codepath.

    -hpa


    \
     
     \ /
      Last update: 2010-10-14 01:21    [W:0.072 / U:244.104 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site