struct palacios_graphics_console *cons,
uint8_t scancode)
{
- struct v3_keyboard_event e;
+ struct v3_keyboard_event e;
e.status = 0;
e.scan_code = scancode;
struct palacios_graphics_console *cons,
uint8_t x, uint8_t y, uint8_t buttons)
{
+ /*
struct v3_mouse_event e;
e.data[0]=x;
e.data[1]=y;
e.data[2]=buttons; // These three are completely wrong, of course - ignoring mouse for now
-
+ */
// mouse delivery is broken, so don't do it.
// v3_deliver_mouse_event(guest->v3_ctx,&e);
static int graphics_console_deinit( void ) {
+ struct palacios_graphics_console * gc = NULL;
+ struct palacios_graphics_console * tmp = NULL;
+
+ list_for_each_entry_safe(gc, tmp, &(global_gcons), gcons_node) {
+ list_del(&(gc->gcons_node));
+
+ if (gc->data)
+ vfree(gc->data);
- if (!list_empty(&global_gcons)) {
- ERROR("Removing graphics console with open consoles - MEMORY LEAK\n");
+ palacios_free(gc);
}
return 0;