Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Merge branch 'devel' of ssh://palacios@newskysaw/home/palacios/palacios into devel
[palacios.git] / linux_module / palacios-graphics-console.c
index 0b03b62..21c9457 100644 (file)
@@ -19,6 +19,7 @@
 #include "palacios.h"
 #include "palacios-graphics-console.h"
 
+#include <linux/vmalloc.h>
 
 /*
 
@@ -57,7 +58,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");
@@ -149,10 +150,11 @@ static void g_release_data_rw(v3_graphics_console_t cons)
 
 static int g_changed(v3_graphics_console_t cons)
 {
+
+#if 0
     struct palacios_graphics_console *gc = 
        (struct palacios_graphics_console *) cons;
 
-#if 0
     int rc =  !(gc->num_updates % 1000);
     
     gc->num_updates++;