version 1.1.1.6, 2018/04/24 19:01:36
|
version 1.1.1.7, 2018/04/24 19:29:31
|
Line 27 static ssize_t flush_buf(VirtIOSerialPor
|
Line 27 static ssize_t flush_buf(VirtIOSerialPor
|
VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port); |
VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port); |
ssize_t ret; |
ssize_t ret; |
|
|
ret = qemu_chr_write(vcon->chr, buf, len); |
ret = qemu_chr_fe_write(vcon->chr, buf, len); |
trace_virtio_console_flush_buf(port->id, len, ret); |
trace_virtio_console_flush_buf(port->id, len, ret); |
|
|
if (ret < 0) { |
if (ret < 0) { |
Line 52 static void guest_open(VirtIOSerialPort
|
Line 52 static void guest_open(VirtIOSerialPort
|
{ |
{ |
VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port); |
VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port); |
|
|
qemu_chr_guest_open(vcon->chr); |
qemu_chr_fe_open(vcon->chr); |
} |
} |
|
|
/* Callback function that's called when the guest closes the port */ |
/* Callback function that's called when the guest closes the port */ |
Line 60 static void guest_close(VirtIOSerialPort
|
Line 60 static void guest_close(VirtIOSerialPort
|
{ |
{ |
VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port); |
VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port); |
|
|
qemu_chr_guest_close(vcon->chr); |
qemu_chr_fe_close(vcon->chr); |
} |
} |
|
|
/* Readiness of the guest to accept data on a port */ |
/* Readiness of the guest to accept data on a port */ |