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.


Resource control extensions to host OS interface
[palacios.git] / palacios / src / palacios / vmm_mem.c
index 9cf6ea1..ac91eeb 100644 (file)
@@ -217,11 +217,12 @@ int v3_init_mem_map(struct v3_vm_info * vm) {
 #ifdef V3_CONFIG_SWAPPING
            // nothing to do - memset will have done it.
 #endif
-    
+
            region->host_addr = (addr_t)V3_AllocPagesExtended(block_pages,
                                                              PAGE_SIZE_4KB,
                                                              node_id,
-                                                             0, 0); // no constraints 
+                                                             vm->resource_control.pg_filter_func,
+                                                             vm->resource_control.pg_filter_state);
            
            if ((void *)region->host_addr == NULL) { 
                PrintError(vm, VCORE_NONE, "Could not allocate guest memory\n");