X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=linux_module%2Fmm.c;h=c23cb2fc5e701b5be44f021e7fbed43a221b1692;hp=e4852c395a483a572340b220c65cdae1d60f42e2;hb=7e99758f3884f8f3d3f8895d9e4461f456331483;hpb=5e3bb26339e3a3ca09c057b28ab24463669053c8 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); */