X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fmain.c;h=81621720a861676a7b78e6bf4529e0a01cd1af70;hb=67e86022168d1a6a7dcc8d52b3aaef95d6a5139f;hp=99ec9e8c420b6510a71393e65e6612859433c89a;hpb=e8e3ec0355b791d6f729df796d0155bccca85090;p=palacios.releases.git diff --git a/linux_module/main.c b/linux_module/main.c index 99ec9e8..8162172 100644 --- a/linux_module/main.c +++ b/linux_module/main.c @@ -481,7 +481,7 @@ static int read_info(struct seq_file *s, void *v) if (!v3_lookup_option("mem_block_size")) { mem_block_size = V3_CONFIG_MEM_BLOCK_SIZE; } else { - if (kstrtoull(v3_lookup_option("mem_block_size"), 0, &mem_block_size)) { + if (strict_strtoull(v3_lookup_option("mem_block_size"), 0, &mem_block_size)) { // huh? mem_block_size=-1; } @@ -563,6 +563,10 @@ static int __init v3_init(void) { palacios_allow_devmem(); } + // numa is now a required interface and we need it + // up before primary initiatilization + palacios_init_numa(); + // Initialize Palacios palacios_vmm_init(options); @@ -695,6 +699,8 @@ static void __exit v3_exit(void) { palacios_vmm_exit(); + palacios_deinit_numa(); + DEBUG("Palacios Mallocs = %d, Frees = %d\n", mallocs, frees); DEBUG("Palacios Vmallocs = %d, Vfrees = %d\n", vmallocs, vfrees); DEBUG("Palacios Page Allocs = %d, Page Frees = %d\n", pg_allocs, pg_frees);