struct proc_dir_entry *palacios_get_procdir(void)
{
- INFO("Returning procdir=%p\n",palacios_proc_dir);
+ // INFO("Returning procdir=%p\n",palacios_proc_dir);
return palacios_proc_dir;
}
remove_proc_entry("links", vnet_root);
remove_proc_entry("routes", vnet_root);
remove_proc_entry("stats", vnet_root);
- remove_proc_entry("vnet", NULL);
+ remove_proc_entry("vnet", palacios_get_procdir());
}
#include <linux/timer.h>
#include <vnet/vnet.h>
-#include "mm.h"
#include "palacios.h"
+#include "mm.h"
#include "palacios-vnet.h"
#include "linux-exts.h"
}
+static void *
+host_allocate_pages(int num_pages, unsigned int alignment)
+{
+ // allocates pages preferentially on the caller's node
+ return palacios_allocate_pages(num_pages, alignment, -1);
+}
+
+
static struct vnet_host_hooks vnet_host_hooks = {
.timer_create = host_create_timer,
.mutex_unlock_irqrestore = palacios_mutex_unlock_irqrestore,
.print = palacios_print_scoped,
- .allocate_pages = palacios_allocate_pages,
+ .allocate_pages = host_allocate_pages,
.free_pages = palacios_free_pages,
.malloc = palacios_alloc,
.free = palacios_free,