X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Ftelnet_cons.c;h=5f829938608ed6e9d5ce8ac909e193efa278c0ff;hb=d775bbfa668ce9968bacc0e4257cf86e5ab88e90;hp=5ba8a1b1d28c8716212020f379388fb791c4bf03;hpb=7a10bbf26095ed08095f38de6c1db4b3a131d6f0;p=palacios.git diff --git a/palacios/src/devices/telnet_cons.c b/palacios/src/devices/telnet_cons.c index 5ba8a1b..5f82993 100644 --- a/palacios/src/devices/telnet_cons.c +++ b/palacios/src/devices/telnet_cons.c @@ -217,7 +217,7 @@ static const uint8_t bg_color_map[] = { static int send_update(struct cons_state * state, uint8_t x, uint8_t y, uint8_t attrib, uint8_t val) { uint8_t fg_color = fg_color_map[(attrib & 0x0f) % 16]; uint8_t bg_color = bg_color_map[(attrib & 0xf0) % 16]; - uint8_t buf[32]; + uint8_t buf[64]; int ret = 0; int i = 0; @@ -264,7 +264,7 @@ static int send_update(struct cons_state * state, uint8_t x, uint8_t y, uint8_ uint64_t start, end; rdtscll(start); - ret = send_all(state->client_fd, buf, 32); + ret = send_all(state->client_fd, buf, i); rdtscll(end); PrintDebug(VM_NONE, VCORE_NONE, "Sendall latency=%d cycles\n", (uint32_t)(end - start)); @@ -555,7 +555,7 @@ static int cons_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { v3_console_register_cga(frontend, &cons_ops, state); - V3_CREATE_AND_START_THREAD(cons_server, state, "Telnet Console Network Server"); + V3_CREATE_AND_START_THREAD(cons_server, state, "Telnet Console Network Server", 0); return 0; }