<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/contrib/vhost-user-input, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/contrib/vhost-user-input?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/contrib/vhost-user-input?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2021-05-14T14:26:18+00:00</updated>
<entry>
<title>Fix build with 64 bits time_t</title>
<updated>2021-05-14T14:26:18+00:00</updated>
<author>
<name>Fabrice Fontaine</name>
</author>
<published>2020-12-03T19:58:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=f7a6df5f5bf3acc219352a1b25573ae2082d7e42'/>
<id>urn:sha1:f7a6df5f5bf3acc219352a1b25573ae2082d7e42</id>
<content type='text'>
time element is deprecated on new input_event structure in kernel's
input.h [1]

This will avoid the following build failure:

hw/input/virtio-input-host.c: In function 'virtio_input_host_handle_status':
hw/input/virtio-input-host.c:198:28: error: 'struct input_event' has no member named 'time'
  198 |     if (gettimeofday(&amp;evdev.time, NULL)) {
      |                            ^

Fixes:
 - http://autobuild.buildroot.org/results/a538167e288c14208d557cd45446df86d3d599d5
 - http://autobuild.buildroot.org/results/efd4474fb4b6c0ce0ab3838ce130429c51e43bbb

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f

Signed-off-by: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
Message-Id: &lt;20201203195819.583626-1-fontaine.fabrice@gmail.com&gt;
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/246
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>Clean up includes</title>
<updated>2020-12-10T16:16:44+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2020-11-13T06:12:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=4bd802b209cff612d1a99674a91895b735be8630'/>
<id>urn:sha1:4bd802b209cff612d1a99674a91895b735be8630</id>
<content type='text'>
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes, with the changes
to the following files manually reverted:

    contrib/libvhost-user/libvhost-user-glib.h
    contrib/libvhost-user/libvhost-user.c
    contrib/libvhost-user/libvhost-user.h
    contrib/plugins/hotblocks.c
    contrib/plugins/hotpages.c
    contrib/plugins/howvec.c
    contrib/plugins/lockstep.c
    linux-user/mips64/cpu_loop.c
    linux-user/mips64/signal.c
    linux-user/sparc64/cpu_loop.c
    linux-user/sparc64/signal.c
    linux-user/x86_64/cpu_loop.c
    linux-user/x86_64/signal.c
    target/s390x/gen-features.c
    tests/fp/platform.h
    tests/migration/s390x/a-b-bios.c
    tests/plugin/bb.c
    tests/plugin/empty.c
    tests/plugin/insn.c
    tests/plugin/mem.c
    tests/test-rcu-simpleq.c
    tests/test-rcu-slist.c
    tests/test-rcu-tailq.c
    tests/uefi-test-tools/UefiTestToolsPkg/BiosTablesTest/BiosTablesTest.c

contrib/plugins/, tests/plugin/, and tests/test-rcu-slist.c appear not
to include osdep.h intentionally.  The remaining reverts are the same
as in commit bbfff19688d.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20201113061216.2483385-1-armbru@redhat.com&gt;
Acked-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Acked-by: Dr. David Alan Gilbert &lt;dgilbert@redhat.com&gt;
Tested-by: Thomas Huth &lt;thuth@redhat.com&gt;
Acked-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
Acked-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Acked-by: Alexander Bulekov &lt;alxndr@bu.edu&gt;
</content>
</entry>
<entry>
<title>contrib/vhost-user-input: avoid g_return_val_if() input validation</title>
<updated>2020-12-09T18:04:17+00:00</updated>
<author>
<name>Stefan Hajnoczi</name>
</author>
<published>2020-11-18T09:16:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a606169aca0f086d3835996ca74e2b7b87cd9df5'/>
<id>urn:sha1:a606169aca0f086d3835996ca74e2b7b87cd9df5</id>
<content type='text'>
Do not validate input with g_return_val_if(). This API is intended for
checking programming errors and is compiled out with -DG_DISABLE_CHECKS.

Use an explicit if statement for input validation so it cannot
accidentally be compiled out.

Suggested-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-Id: &lt;20201118091644.199527-4-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: 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>contrib/vhost-user-input: convert to meson</title>
<updated>2020-08-21T10:30:10+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2019-07-12T18:11:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=32fcc6244c729f6311d2a4c8bd54bb9b7f43786d'/>
<id>urn:sha1:32fcc6244c729f6311d2a4c8bd54bb9b7f43786d</id>
<content type='text'>
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@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>vhost-user-input: use free(elem) instead of g_free(elem)</title>
<updated>2019-11-20T09:57:22+00:00</updated>
<author>
<name>Stefan Hajnoczi</name>
</author>
<published>2019-11-19T11:16:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ec244b17391f8f9a16e91905a91a52dd77d3759f'/>
<id>urn:sha1:ec244b17391f8f9a16e91905a91a52dd77d3759f</id>
<content type='text'>
The virtqueue element returned by vu_queue_pop() is allocated using
malloc(3) by virtqueue_alloc_element().  Use the matching free(3)
function instead of glib's g_free().

Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-Id: &lt;20191119111626.112206-1-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;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@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>vhost-user-input: check ioctl(EVIOCGNAME) return value</title>
<updated>2019-06-16T20:16:52+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2019-06-05T14:58:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=be32fd9ee1d85e682d652d11b6e32e7f700420bb'/>
<id>urn:sha1:be32fd9ee1d85e682d652d11b6e32e7f700420bb</id>
<content type='text'>
This should fix coverity CID 1401704.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20190605145829.7674-5-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;
Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
</content>
</entry>
<entry>
<title>vhost-user: improve error report</title>
<updated>2019-06-16T20:16:52+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2019-06-05T14:58:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=f55411cf143f868e70cd769171fa1db8953a626e'/>
<id>urn:sha1:f55411cf143f868e70cd769171fa1db8953a626e</id>
<content type='text'>
g_printerr() needs a trailing \n

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20190605145829.7674-4-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>
</feed>
