qemu-e2k/contrib
Johannes Berg a7290a79fa libvhost-user-glib: fix VugDev main fd cleanup
If you try to make a device implementation that can handle multiple
connections and allow disconnections (which requires overriding the
VHOST_USER_NONE handling), then glib will warn that we remove a src
while it's still on the mainloop, and will poll() an FD that doesn't
exist anymore.

Fix this by making vug_source_new() require pairing with the new
vug_source_destroy() so we can keep the GSource referenced in the
meantime.

Note that this requires calling the new API in vhost-user-input.
vhost-user-gpu also uses vug_source_new(), but never seems to free
the result at all, so I haven't changed anything there.

Fixes: 8bb7ddb78a ("libvhost-user: add glib source helper")
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Message-Id: <20200123081708.7817-3-johannes@sipsolutions.net>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-02-27 03:46:10 -05:00
..
elf2dmp contrib/elf2dmp: Build download.o with CURL_CFLAGS 2019-07-22 14:07:39 +01:00
gitdm contrib/gitdm: add China Mobile to the domain map 2019-10-27 19:16:30 +00:00
ivshmem-client Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
ivshmem-server ivshmem-server: Terminate also on SIGINT 2019-11-12 10:37:20 +01:00
libvhost-user libvhost-user-glib: fix VugDev main fd cleanup 2020-02-27 03:46:10 -05:00
rdmacm-mux contrib/rdmacm-mux: Remove superfluous semicolon 2020-02-18 20:20:49 +01:00
systemd contrib: add systemd unit files 2017-12-20 22:29:26 +01:00
vhost-user-blk Implement backend program convention command for vhost-user-blk 2020-01-05 07:03:03 -05:00
vhost-user-gpu vhost-user-gpu: Drop trailing json comma 2019-12-20 06:56:37 +01:00
vhost-user-input libvhost-user-glib: fix VugDev main fd cleanup 2020-02-27 03:46:10 -05:00
vhost-user-scsi vhost-user-scsi: fix printf format warning 2019-12-17 19:32:47 +01:00