X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Ftelnet_cons.c;h=7bda58b4555a3666a60404b8fcfccfc66ff7af85;hb=fdb16aa5e99a19a91264ae84beaf77d3036548d5;hp=fc03c88ea438a2d339aa4ac65b1b685cb7c4c793;hpb=72420d58d18ec71d4777d029daaf0c6a1c820b32;p=palacios.git diff --git a/palacios/src/devices/telnet_cons.c b/palacios/src/devices/telnet_cons.c index fc03c88..7bda58b 100644 --- a/palacios/src/devices/telnet_cons.c +++ b/palacios/src/devices/telnet_cons.c @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include @@ -390,15 +390,20 @@ static struct v3_console_ops cons_ops = { .update_screen = screen_update, .update_cursor = cursor_update, .scroll = scroll, + .set_text_resolution = NULL, }; -static int cons_free(struct vm_device * dev) { - return -1; +static int cons_free(struct cons_state * state) { + + // kill thread... ? + + V3_Free(state); + return 0; } static struct v3_device_ops dev_ops = { - .free = cons_free, + .free = (int (*)(void *))cons_free, };