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.


added dimension flags to console hooks
Jack Lange [Wed, 10 Nov 2010 23:33:45 +0000 (17:33 -0600)]
palacios/include/palacios/vmm_console.h
palacios/src/devices/curses_cons.c
palacios/src/palacios/vmm_console.c

index e49fab0..dcff763 100644 (file)
@@ -43,7 +43,7 @@ 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);
+    void *(*open)(void * priv_data, unsigned int width, unsigned int height);
 
     /* set cursor position */
     int (*set_cursor)(void * tty, int x, int y);
index b43d69b..ca11dba 100644 (file)
@@ -190,7 +190,7 @@ static int cons_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg)
     state->frontend_dev = frontend;
 
     /* open tty for screen display */
-    state->cons = v3_console_open(vm);
+    state->cons = v3_console_open(vm, NUM_COLS, NUM_ROWS);
 
     if (!state->cons) {
        PrintError("Could not open console\n");
index 772b83c..9ecf780 100644 (file)
 
 struct v3_console_hooks * console_hooks = 0;
 
-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) {
     V3_ASSERT(console_hooks != NULL);
     V3_ASSERT(console_hooks->open != NULL);
 
-    return console_hooks->open(vm->host_priv_data);
+    return console_hooks->open(vm->host_priv_data, width, height);
 }