X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fvnet%2Fvnet_host.h;h=548a2520dd6ff352aa049313c6e758bb32e6f72c;hb=675206650bb9a05023c0e53a1e0c21aa1f375f88;hp=6347fedf71fc5af0341c3dcbf254b9e1147532b4;hpb=acaadd79c597c8d5180fbfbec79c01fef3dff003;p=palacios.git diff --git a/palacios/include/vnet/vnet_host.h b/palacios/include/vnet/vnet_host.h index 6347fed..548a252 100644 --- a/palacios/include/vnet/vnet_host.h +++ b/palacios/include/vnet/vnet_host.h @@ -61,7 +61,7 @@ struct vnet_host_hooks { void (*print)(void *vm , int core, const char * format, ...) __attribute__ ((format (printf, 3, 4))); - void *(*allocate_pages)(int num_pages, unsigned int alignment); + void *(*allocate_pages)(int num_pages, unsigned int alignment, int node_id, int constraints); void (*free_pages)(void * page, int num_pages); void *(*malloc)(unsigned int size); @@ -92,7 +92,7 @@ extern struct vnet_host_hooks * host_hooks; /* 4KB-aligned */ static inline void * Vnet_AllocPages(int num_pages){ if ((host_hooks) && host_hooks->allocate_pages) { - return host_hooks->allocate_pages(num_pages, PAGE_SIZE_4KB); + return host_hooks->allocate_pages(num_pages, PAGE_SIZE_4KB,-1,0); // any zone, no constraints } return NULL;