<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/contrib/vhost-user-scsi, 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/vhost-user-scsi?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/contrib/vhost-user-scsi?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-05-16T20:48:35+00:00</updated>
<entry>
<title>vhost-user-scsi: avoid unlink(NULL) with fd passing</title>
<updated>2022-05-16T20:48:35+00:00</updated>
<author>
<name>Stefan Hajnoczi</name>
</author>
<published>2022-05-16T15:57:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6852c21db229c4bf4c1db772444bdfbbd027e5b8'/>
<id>urn:sha1:6852c21db229c4bf4c1db772444bdfbbd027e5b8</id>
<content type='text'>
Commit 747421e949fc1eb3ba66b5fcccdb7ba051918241 ("Implements Backend
Program conventions for vhost-user-scsi") introduced fd-passing support
as part of implementing the vhost-user backend program conventions.

When fd passing is used the UNIX domain socket path is NULL and we must
not call unlink(2).

The unlink(2) call is necessary when the listen socket, lsock, was
created successfully since that means the UNIX domain socket is visible
in the file system.

Fixes: Coverity CID 1488353
Fixes: 747421e949fc1eb3ba66b5fcccdb7ba051918241 ("Implements Backend Program conventions for vhost-user-scsi")
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-Id: &lt;20220516155701.1789638-1-stefanha@redhat.com&gt;
Reviewed-by: Raphael Norwitz &lt;raphael.norwitz@nutanix.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>Implements Backend Program conventions for vhost-user-scsi</title>
<updated>2022-04-21T10:01:23+00:00</updated>
<author>
<name>Sakshi Kaushik</name>
</author>
<published>2022-04-06T16:24:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=747421e949fc1eb3ba66b5fcccdb7ba051918241'/>
<id>urn:sha1:747421e949fc1eb3ba66b5fcccdb7ba051918241</id>
<content type='text'>
Signed-off-by: Sakshi Kaushik &lt;sakshikaushik717@gmail.com&gt;
Message-id: 20220406162410.8536-1-sakshikaushik717@gmail.com

[Name the iSCSI URL long option --iscsi-uri instead of --iscsi_uri for
consistency, fix --fd which was rejected due to an outdated
--socket-path check, and add missing entries[] terminator.
--Stefan]

Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>libiscsi: convert to meson</title>
<updated>2021-01-02T20:03:37+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2020-11-17T12:11:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9db405a33576982b2366a379bea4424c2974ab46'/>
<id>urn:sha1:9db405a33576982b2366a379bea4424c2974ab46</id>
<content type='text'>
Signed-off-by: Paolo Bonzini &lt;pbonzini@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>vhost-user-scsi: Fix memleaks in vus_proc_req()</title>
<updated>2020-12-08T18:48:57+00:00</updated>
<author>
<name>Alex Chen</name>
</author>
<published>2020-11-25T01:30:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=81ee17aa461d1bf05a45dddd7f9abfa9ab0b2036'/>
<id>urn:sha1:81ee17aa461d1bf05a45dddd7f9abfa9ab0b2036</id>
<content type='text'>
The 'elem' is allocated memory in vu_queue_pop(), and its memory should be
freed in all error branches after vu_queue_pop().
In addition, in order to free the 'elem' memory outside of while(1) loop, move
the definition of 'elem' to the beginning of vus_proc_req().

Reported-by: Euler Robot &lt;euler.robot@huawei.com&gt;
Signed-off-by: Alex Chen &lt;alex.chen@huawei.com&gt;
Reviewed-by: Raphael Norwitz &lt;raphael.norwitz@nutanix.com&gt;
Message-Id: &lt;20201125013055.34147-1-alex.chen@huawei.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-blk/scsi: Fix broken error handling for socket call</title>
<updated>2020-11-17T09:16:55+00:00</updated>
<author>
<name>AlexChen</name>
</author>
<published>2020-10-29T06:03:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=91010f0407a07caeacb11037bb5b493bab7ce203'/>
<id>urn:sha1:91010f0407a07caeacb11037bb5b493bab7ce203</id>
<content type='text'>
When socket() fails, it returns -1, 0 is the normal return value and should not return error.

Reported-by: Euler Robot &lt;euler.robot@huawei.com&gt;
Signed-off-by: AlexChen &lt;alex.chen@huawei.com&gt;
Message-Id: &lt;5F9A5B48.9030509@huawei.com&gt;
Reviewed-by: Raphael Norwitz &lt;raphael.norwitz@nutanix.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-scsi: convert to Meson</title>
<updated>2020-08-21T10:30:09+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2019-06-10T10:21:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=99650b628f03564d5c2ac022eb0430ddaab038da'/>
<id>urn:sha1:99650b628f03564d5c2ac022eb0430ddaab038da</id>
<content type='text'>
The libiscsi pkg-config information is extracted from config-host.mak and
used to link vhost-user-blk.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>vhost-user-scsi: add compatibility for libiscsi 1.9.0</title>
<updated>2020-08-21T10:30:09+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2020-08-10T19:15:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=7af0dbf990afea54b6c2a186f7b6ec27c87304a8'/>
<id>urn:sha1:7af0dbf990afea54b6c2a186f7b6ec27c87304a8</id>
<content type='text'>
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>vhost-user-scsi: fix printf format warning</title>
<updated>2019-12-17T18:32:47+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2019-08-28T08:18:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3819af6e6a8fabe90957fa28bff0d9af56481662'/>
<id>urn:sha1:3819af6e6a8fabe90957fa28bff0d9af56481662</id>
<content type='text'>
Fixes:
../contrib/vhost-user-scsi/vhost-user-scsi.c:118:57: error: format specifies
      type 'unsigned char' but the argument has type 'int' [-Werror,-Wformat]
    g_warning("Unable to determine cdb len (0x%02hhX)", cdb[0] &gt;&gt; 5);

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: 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>
</feed>
