[Lguest] Error inserting lg: Cannot allocate memory
inflo
inflo at web.de
Wed Mar 5 01:20:01 EST 2008
hi,
i dont understand, the guard page will be automatically added in
__get_vm_area_node, http://lxr.free-electrons.com/source/mm/vmalloc.c
line 201
size += PAGE_SIZE;
> + * it's worked so far. The +1 is because __get_vm_area
> allocates a + * guard page, so we need space for that. */
> switcher_vma = __get_vm_area(TOTAL_SWITCHER_PAGES * PAGE_SIZE,
> - VM_ALLOC, SWITCHER_ADDR, VMALLOC_END);
> + VM_ALLOC, SWITCHER_ADDR, SWITCHER_ADDR
> + + (TOTAL_SWITCHER_PAGES+1) * PAGE_SIZE);
flo
More information about the Lguest
mailing list