vhost-user: add ability to know vhost-user backend disconnection
Current QEMU cannot detect vhost-user backend disconnection. The patch adds ability to know it. To know disconnection, add watcher to detect G_IO_HUP event. When G_IO_HUP event is detected, the disconnected socket will be read to cause a CHR_EVENT_CLOSED. Signed-off-by: NTetsuya Mukawa <mukawa@igel.co.jp> Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com> Tested-by: NYuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: NYuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: NVictor Kaplansky <victork@redhat.com> Reviewed-by: NMichael S. Tsirkin <mst@redhat.com> Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
Showing
想要评论请 注册 或 登录