Re: [Qemu-devel] [PATCH v5 11/13] virtio-console: chardev hotswap support

2017-07-05 Thread Paolo Bonzini
On 05/07/2017 16:02, Anton Nefedov wrote: > Also, avoid unsafe qemu_chr_fe_get_driver() usage even though the pointer > is not really stored. Please move that part to patch 5, together with other switches to qemu_chr_fe_backend_connected. Paolo

[Qemu-devel] [PATCH v5 11/13] virtio-console: chardev hotswap support

2017-07-05 Thread Anton Nefedov
In case of a backend change, the handler functions and the watch have to be reset. Also, avoid unsafe qemu_chr_fe_get_driver() usage even though the pointer is not really stored. Signed-off-by: Anton Nefedov Reviewed-by: Vladimir Sementsov-Ogievskiy --- hw/char/virtio-console.c | 35 +++