--- qemu/hw/virtio-console.c 2018/04/24 19:01:36 1.1.1.6 +++ qemu/hw/virtio-console.c 2018/04/24 19:29:31 1.1.1.7 @@ -27,7 +27,7 @@ static ssize_t flush_buf(VirtIOSerialPor VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port); 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); if (ret < 0) { @@ -52,7 +52,7 @@ static void guest_open(VirtIOSerialPort { 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 */ @@ -60,7 +60,7 @@ static void guest_close(VirtIOSerialPort { 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 */