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.


Generalization of constraints on page allocation and implementation/use
[palacios.git] / linux_module / buddy.h
index e0ef86d..163c5a8 100644 (file)
@@ -92,14 +92,13 @@ buddy_remove_pool(struct buddy_memzone * zone,
                  void          **user_metadata);
 
 
-// constraint=0 => no constraints, otherwise bitmask of:
-#define LWK_BUDDY_CONSTRAINT_4GB 0x1
 
 /* Allocate pages, returns physical address */
 extern uintptr_t 
 buddy_alloc(struct buddy_memzone * zone,
            unsigned long order,
-           int constraints);
+           int (*filter_func)(void *paddr, void *filter_state),
+           void *filter_state);
 
 
 /* Free a physical address */