From: Peter Dinda Date: Thu, 19 May 2011 23:41:56 +0000 (-0500) Subject: Modified graphics console support in linux to use vmalloc to allocate framebufs X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=732d332c0ddff091bfe49073ec4af88f7cf0431a Modified graphics console support in linux to use vmalloc to allocate framebufs --- diff --git a/linux_module/palacios-graphics-console.c b/linux_module/palacios-graphics-console.c index 0b03b62..a84bb9b 100644 --- a/linux_module/palacios-graphics-console.c +++ b/linux_module/palacios-graphics-console.c @@ -57,7 +57,7 @@ static v3_graphics_console_t g_open(void * priv_data, printk("palacios: allocating %u bytes for %u by %u by %u buffer\n", mem, desired_spec->width, desired_spec->height, desired_spec->bytes_per_pixel); - gc->data = kmalloc(mem,GFP_KERNEL); + gc->data = vmalloc(mem); if (!(gc->data)) { printk("palacios: unable to allocate memory for frame buffer\n");