Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Use GFP_DMA32 for small page allocations
Peter Dinda [Wed, 16 Nov 2011 18:31:09 +0000 (12:31 -0600)]
linux_module/mm.c

index e4852c3..c23cb2f 100644 (file)
@@ -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); */