On Sat, 10 Feb 2007, Rusty Russell wrote: > Well it was the use of get_order() which triggered Andi's alarm bells, > so I went back to deriving it. This code is correct, however. + hype_pages = alloc_pages(GFP_KERNEL|__GFP_ZERO, HYPERVISOR_MAP_ORDER); + if (!hype_pages) + return -ENOMEM; This will try and allocate 2^16 pages. I guess we need a HYPERVISOR_PAGE_ORDER ? - James -- James Morris <[email protected]> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 4 of 7] lguest: Config and headers
- From: Rusty Russell <[email protected]>
- Re: [PATCH 4 of 7] lguest: Config and headers
- References:
- [PATCH 0 of 7] lguest host code
- From: Rusty Russell <[email protected]>
- [PATCH 1 of 7] lguest: Move mce_disabled to asm/mce.h so lguest can use it.
- From: Rusty Russell <[email protected]>
- [PATCH 2 of 7] lguest: Rename cpu_gdt_descr and remove extern declaration from smpboot.c
- From: Rusty Russell <[email protected]>
- [PATCH 3 of 7] lguest: Remove extern declaration from mm/discontig.c, put in header.
- From: Rusty Russell <[email protected]>
- [PATCH 4 of 7] lguest: Config and headers
- From: Rusty Russell <[email protected]>
- Re: [PATCH 4 of 7] lguest: Config and headers
- From: James Morris <[email protected]>
- Re: [PATCH 4 of 7] lguest: Config and headers
- From: Rusty Russell <[email protected]>
- [PATCH 0 of 7] lguest host code
- Prev by Date: Re: NAK new drivers without proper power management?
- Next by Date: Re: NAK new drivers without proper power management?
- Previous by thread: Re: [PATCH 4 of 7] lguest: Config and headers
- Next by thread: Re: [PATCH 4 of 7] lguest: Config and headers
- Index(es):