From: Jack Lange Date: Wed, 10 Nov 2010 23:33:45 +0000 (-0600) Subject: added dimension flags to console hooks X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=8b5304a9a64c284ffa459017091e27e1d30b1f50 added dimension flags to console hooks --- diff --git a/palacios/include/palacios/vmm_console.h b/palacios/include/palacios/vmm_console.h index e49fab0..dcff763 100644 --- a/palacios/include/palacios/vmm_console.h +++ b/palacios/include/palacios/vmm_console.h @@ -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); diff --git a/palacios/src/devices/curses_cons.c b/palacios/src/devices/curses_cons.c index b43d69b..ca11dba 100644 --- a/palacios/src/devices/curses_cons.c +++ b/palacios/src/devices/curses_cons.c @@ -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"); diff --git a/palacios/src/palacios/vmm_console.c b/palacios/src/palacios/vmm_console.c index 772b83c..9ecf780 100644 --- a/palacios/src/palacios/vmm_console.c +++ b/palacios/src/palacios/vmm_console.c @@ -28,11 +28,11 @@ 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); }