X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fpalacios-vnet.c;h=014d1915d98272e9eb89a0c6d7e208c63f256bc8;hb=d0aa5bd27c22a33f04f47363910f9773fdeab7eb;hp=c1111ef27d67ee7a8b154251e01b8d4b7a17d6cf;hpb=f31b4ee024b09ded6a5be33a33cca0e2e756b63d;p=palacios.git diff --git a/linux_module/palacios-vnet.c b/linux_module/palacios-vnet.c index c1111ef..014d191 100644 --- a/linux_module/palacios-vnet.c +++ b/linux_module/palacios-vnet.c @@ -14,8 +14,8 @@ #include #include -#include "mm.h" #include "palacios.h" +#include "mm.h" #include "palacios-vnet.h" #include "linux-exts.h" @@ -139,6 +139,12 @@ host_del_timer(void * vnet_timer){ } +static void * +host_allocate_pages(int num_pages, unsigned int alignment, int node_id, int constraint) +{ + // allocates pages preferentially on the caller's node + return palacios_allocate_pages(num_pages, alignment, node_id, constraint); +} @@ -149,7 +155,7 @@ static struct vnet_host_hooks vnet_host_hooks = { .timer_stop = host_stop_timer, .timer_reset = host_reset_timer, - .thread_start = palacios_start_kernel_thread, + .thread_start = palacios_create_and_start_kernel_thread, .thread_sleep = host_kthread_sleep, .thread_wakeup = host_kthread_wakeup, .thread_stop = host_kthread_stop, @@ -164,8 +170,8 @@ static struct vnet_host_hooks vnet_host_hooks = { .mutex_lock_irqsave = palacios_mutex_lock_irqsave, .mutex_unlock_irqrestore = palacios_mutex_unlock_irqrestore, - .print = palacios_print, - .allocate_pages = palacios_allocate_pages, + .print = palacios_print_scoped, + .allocate_pages = host_allocate_pages, .free_pages = palacios_free_pages, .malloc = palacios_alloc, .free = palacios_free,