X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fpalacios-mm.c;h=a62b55a6df151897828d5b49faadf8e228a237a7;hb=732d332c0ddff091bfe49073ec4af88f7cf0431a;hp=a6505e6dede46c5e02f676fced14227ac700811d;hpb=260bb3e805ebc92ae294c3c2b36d027ba8bca488;p=palacios.git diff --git a/linux_module/palacios-mm.c b/linux_module/palacios-mm.c index a6505e6..a62b55a 100644 --- a/linux_module/palacios-mm.c +++ b/linux_module/palacios-mm.c @@ -103,7 +103,7 @@ uintptr_t alloc_palacios_pgs(u64 num_pages, u32 alignment) { struct page * pgs = NULL; int order = get_order(num_pages * PAGE_SIZE); - pgs = alloc_pages(GFP_KERNEL, order); + pgs = alloc_pages(GFP_DMA, order); WARN(!pgs, "Could not allocate pages\n"); @@ -192,3 +192,9 @@ int palacios_init_mm( void ) { return 0; } + +int palacios_deinit_mm( void ) { + kfree(pool.bitmap); + + return 0; +}