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.


deallocate arch specific IO/MSR hook state
[palacios.git] / palacios / include / palacios / vmm_console.h
index dcff763..cab3c4f 100644 (file)
@@ -30,7 +30,8 @@
 
 typedef void * v3_console_t;
 
-v3_console_t v3_console_open(struct v3_vm_info * vm);
+v3_console_t v3_console_open(struct v3_vm_info * vm, uint32_t width, uint32_t height);
+void v3_console_close(v3_console_t cons);
 
 int v3_console_set_cursor(v3_console_t cons, int x, int y);
 int v3_console_set_char(v3_console_t cons, int x, int y, char c, uint8_t style);
@@ -44,6 +45,8 @@ int v3_console_update(v3_console_t cons);
 struct v3_console_hooks {
     /* open console device, mode is a combination of TTY_OPEN_MODE_* flags */
     void *(*open)(void * priv_data, unsigned int width, unsigned int height);
+    
+    void (*close)(void * tty);
 
     /* set cursor position */
     int (*set_cursor)(void * tty, int x, int y);