From: Peter Dinda Date: Thu, 19 May 2011 22:59:40 +0000 (-0500) Subject: Use vmalloc for guest copy allocation X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=861ce318738e31181f20286c9669979acf0f62d3 Use vmalloc for guest copy allocation --- diff --git a/linux_module/palacios-dev.c b/linux_module/palacios-dev.c index 78e50b5..6645860 100644 --- a/linux_module/palacios-dev.c +++ b/linux_module/palacios-dev.c @@ -121,7 +121,7 @@ static long v3_dev_ioctl(struct file * filp, guest->img_size = user_image.size; printk("Allocating kernel memory for guest image (%llu bytes)\n", user_image.size); - guest->img = kmalloc(guest->img_size, GFP_KERNEL); + guest->img = vmalloc(guest->img_size); if (IS_ERR(guest->img)) { printk("Error: Could not allocate space for guest image\n");