diff options
| author | Tetsuya Mukawa | 2016-06-06 18:44:59 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2016-06-17 02:28:02 +0200 |
| commit | a6553598be42e3be899acdb153fd615cd6c3eab8 (patch) | |
| tree | 664992a1546c1310032f77b0d09a79ef7c630e29 /tests | |
| parent | pci: fix pci_requester_id() (diff) | |
| download | qemu-a6553598be42e3be899acdb153fd615cd6c3eab8.tar.gz qemu-a6553598be42e3be899acdb153fd615cd6c3eab8.tar.xz qemu-a6553598be42e3be899acdb153fd615cd6c3eab8.zip | |
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: Tetsuya Mukawa <mukawa@igel.co.jp>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Victor Kaplansky <victork@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
