<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/contrib/libvhost-user/libvhost-user-glib.h, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/contrib/libvhost-user/libvhost-user-glib.h?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/contrib/libvhost-user/libvhost-user-glib.h?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2020-12-08T18:48:58+00:00</updated>
<entry>
<title>libvhost-user: make it a meson subproject</title>
<updated>2020-12-08T18:48:58+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2020-11-25T10:06:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=0df750e9d3a5fea5e19f4750582121c9293a9d71'/>
<id>urn:sha1:0df750e9d3a5fea5e19f4750582121c9293a9d71</id>
<content type='text'>
By making libvhost-user a subproject, check it builds
standalone (without the global QEMU cflags etc).

Note that the library still relies on QEMU include/qemu/atomic.h and
linux_headers/.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20201125100640.366523-6-marcandre.lureau@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>libvhost-user-glib: fix VugDev main fd cleanup</title>
<updated>2020-02-27T08:46:10+00:00</updated>
<author>
<name>Johannes Berg</name>
</author>
<published>2020-01-23T08:17:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a7290a79fa262124916dab2bb75188cfd07faad6'/>
<id>urn:sha1:a7290a79fa262124916dab2bb75188cfd07faad6</id>
<content type='text'>
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: 8bb7ddb78a1c ("libvhost-user: add glib source helper")
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Signed-off-by: Johannes Berg &lt;johannes.berg@intel.com&gt;
Message-Id: &lt;20200123081708.7817-3-johannes@sipsolutions.net&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>libvhost-user: support many virtqueues</title>
<updated>2019-07-04T21:00:32+00:00</updated>
<author>
<name>Stefan Hajnoczi</name>
</author>
<published>2019-06-26T07:48:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6f5fd837889814e57a4bb473bf80ce08e355a12d'/>
<id>urn:sha1:6f5fd837889814e57a4bb473bf80ce08e355a12d</id>
<content type='text'>
Currently libvhost-user is hardcoded to at most 8 virtqueues.  The
device backend should decide the number of virtqueues, not
libvhost-user.  This is important for multiqueue device backends where
the guest driver needs an accurate number of virtqueues.

This change breaks libvhost-user and libvhost-user-glib API stability.
There is no stability guarantee yet, so make this change now and update
all in-tree library users.

This patch touches up vhost-user-blk, vhost-user-gpu, vhost-user-input,
vhost-user-scsi, and vhost-user-bridge.  If the device has a fixed
number of queues that exact number is used.  Otherwise the previous
default of 8 virtqueues is used.

vu_init() and vug_init() can now fail if malloc() returns NULL.  I
considered aborting with an error in libvhost-user but it should be safe
to instantiate new vhost-user instances at runtime without risk of
terminating the process.  Therefore callers need to handle the vu_init()
failure now.

vhost-user-blk and vhost-user-scsi duplicate virtqueue index checks that
are already performed by libvhost-user.  This code would need to be
modified to use max_queues but remove it completely instead since it's
redundant.

Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20190626074815.19994-3-stefanha@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>libvhost-user-glib: export vug_source_new()</title>
<updated>2019-03-13T02:31:21+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2019-03-08T14:04:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=922ef483ec812730f87102b372691c510313fcea'/>
<id>urn:sha1:922ef483ec812730f87102b372691c510313fcea</id>
<content type='text'>
Simplify the creation of FD sources for other users. This is just
convenience to avoid duplicating similar code elsewhere.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20190308140454.32437-10-marcandre.lureau@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>libvhost-user: add glib source helper</title>
<updated>2017-10-10T21:31:09+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2017-08-17T18:55:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8bb7ddb78a1c68f2408a66a61c748330903fd5f2'/>
<id>urn:sha1:8bb7ddb78a1c68f2408a66a61c748330903fd5f2</id>
<content type='text'>
This file implements a bridge from the vu_init API of libvhost-user to
GSource, so that libvhost-user can be used inside a GLib main loop.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
</feed>
