libvhost-user: remove watch for kick_fd when de-initialize vu-dev
commitf1baeee9ffeddcc068d3536f90b5c3e9f81d9309
authorCoiby Xu <coiby.xu@gmail.com>
Fri, 18 Sep 2020 08:09:07 +0000 (18 16:09 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 23 Oct 2020 12:42:16 +0000 (23 13:42 +0100)
treed018a9ca2db9e3a0277af5cb508819abf4435024
parent049f55502a020f2d56dece94164bf8cf901f855d
libvhost-user: remove watch for kick_fd when de-initialize vu-dev

When the client is running in gdb and quit command is run in gdb,
QEMU will still dispatch the event which will cause segment fault in
the callback function.

Signed-off-by: Coiby Xu <coiby.xu@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20200918080912.321299-3-coiby.xu@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
contrib/libvhost-user/libvhost-user.c