Re: [PATCH 4/4] vmm: Use a static memory map

From: KAMEZAWA Hiroyuki <kamezawa.hiroyu_at_jp.fujitsu.com>
Date: 2006-10-13 10:56:40
On Thu, 12 Oct 2006 12:18:28 -0700 (PDT)
Christoph Lameter <clameter@sgi.com> wrote:

> - The plan is to further generalize the virtual mem map support
>   in the Linux kernel. With this patch the virtual memory map
>   is more independent from VMALLOC.
This purpose is great. I like this patch.

> +#define VIRTUAL_MEM_MAP_SIZE   (1UL << (IA64_MAX_PHYS_BITS - PAGE_SHIFT +\
> +					STRUCT_PAGE_ORDER))

I'm not sure but Is this size of virtual-memory able to be mapped by any configs ?


>  #else
> -# define VMALLOC_END		(RGN_BASE(RGN_GATE) + (1UL << (4*PAGE_SHIFT - 9)))
> +#define VIRTUAL_MEM_MAP_SIZE 0
>  #endif
>  
> +#define VMALLOC_START  (VIRTUAL_MEM_MAP + VIRTUAL_MEM_MAP_SIZE)
> +#define VMALLOC_END    (RGN_BASE(RGN_GATE) + (1UL << (4*PAGE_SHIFT - 9)))
> +
And, (1UL << (4*PAGE_SHIFT-9)) - VIRTUAL_MEM_MAP_SIZE is real VMALLOC size. 
I think.

-Kame


-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Oct 13 10:53:01 2006

This archive was generated by hypermail 2.1.8 : 2006-10-13 10:53:12 EST