From: Peter Dinda Date: Wed, 16 Nov 2011 18:31:09 +0000 (-0600) Subject: Use GFP_DMA32 for small page allocations X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=7e99758f3884f8f3d3f8895d9e4461f456331483;p=palacios.git Use GFP_DMA32 for small page allocations --- diff --git a/linux_module/mm.c b/linux_module/mm.c index e4852c3..c23cb2f 100644 --- a/linux_module/mm.c +++ b/linux_module/mm.c @@ -91,6 +91,8 @@ static uintptr_t alloc_contig_pgs(u64 num_pages, u32 alignment) { } } + /* printk("PALACIOS BAD: LARGE PAGE ALLOCATION FAILED\n"); */ + return 0; } @@ -103,9 +105,11 @@ uintptr_t alloc_palacios_pgs(u64 num_pages, u32 alignment) { struct page * pgs = NULL; int order = get_order(num_pages * PAGE_SIZE); - pgs = alloc_pages(GFP_DMA, order); + pgs = alloc_pages(GFP_DMA32, order); WARN(!pgs, "Could not allocate pages\n"); + + /* if (!pgs) { printk("PALACIOS BAD: SMALL PAGE ALLOCATION FAILED\n"); A */} /* printk("%llu pages (order=%d) aquired from alloc_pages\n", num_pages, order); */