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
_______________________________________________
Lguest mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/lguest

Reply via email to