<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/contrib/vhost-user-gpu, 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-gpu?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/contrib/vhost-user-gpu?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-04-06T08:50:38+00:00</updated>
<entry>
<title>Replace qemu_real_host_page variables with inlined functions</title>
<updated>2022-04-06T08:50:38+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2022-03-23T15:57:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8e3b0cbb7212a1e5707ed2d4c26b4e3d2483768d'/>
<id>urn:sha1:8e3b0cbb7212a1e5707ed2d4c26b4e3d2483768d</id>
<content type='text'>
Replace the global variables with inlined helper functions. getpagesize() is very
likely annotated with a "const" function attribute (at least with glibc), and thus
optimization should apply even better.

This avoids the need for a constructor initialization too.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20220323155743.1585078-12-marcandre.lureau@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>Use g_new() &amp; friends where that makes obvious sense</title>
<updated>2022-03-21T14:44:44+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2022-03-15T14:41:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b21e2380376c470900fcadf47507f4d5ade75e85'/>
<id>urn:sha1:b21e2380376c470900fcadf47507f4d5ade75e85</id>
<content type='text'>
g_new(T, n) is neater than g_malloc(sizeof(T) * n).  It's also safer,
for two reasons.  One, it catches multiplication overflowing size_t.
Two, it returns T * rather than void *, which lets the compiler catch
more type errors.

This commit only touches allocations with size arguments of the form
sizeof(T).

Patch created mechanically with:

    $ spatch --in-place --sp-file scripts/coccinelle/use-g_new-etc.cocci \
	     --macro-file scripts/cocci-macro-file.h FILES...

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Reviewed-by: Cédric Le Goater &lt;clg@kaod.org&gt;
Reviewed-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Acked-by: Dr. David Alan Gilbert &lt;dgilbert@redhat.com&gt;
Message-Id: &lt;20220315144156.1595462-4-armbru@redhat.com&gt;
Reviewed-by: Pavel Dovgalyuk &lt;Pavel.Dovgalyuk@ispras.ru&gt;
</content>
</entry>
<entry>
<title>meson: refine check for whether to look for virglrenderer</title>
<updated>2022-02-21T09:35:53+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2021-12-17T11:36:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=0265fe9e21bb98f7401fd2364c2b57c9adaaa4ff'/>
<id>urn:sha1:0265fe9e21bb98f7401fd2364c2b57c9adaaa4ff</id>
<content type='text'>
The check should be performed even if !have_system, as long as there is some hope that
vhost-user-gpu will be built.  Store into have_vhost_user_gpu whether vhost-user-gpu
will be built; we will also use the variable to decide whether to look for libepoxy.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>configure, meson: move guest-agent, tools to meson</title>
<updated>2022-02-21T09:35:53+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2021-10-15T14:47:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=20cf5cb487021dd1bec1eec326af138a8b15d987'/>
<id>urn:sha1:20cf5cb487021dd1bec1eec326af138a8b15d987</id>
<content type='text'>
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>configure / meson: Move the GBM handling to meson.build</title>
<updated>2021-09-06T08:00:14+00:00</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2021-07-13T11:09:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8bc5184d23c2f95727021844895a24c0579928b2'/>
<id>urn:sha1:8bc5184d23c2f95727021844895a24c0579928b2</id>
<content type='text'>
The GBM library detection does not need to be in the configure script,
since it does not have any user-facing options (there are no
--enable-gbm or --disable-gbm switches). Let's move it to meson.build
instead, so we don't have to clutter config-host.mak with the related
switches.

Additionally, only check for GBM if it is really required, i.e. if we
either compile with OpenGL or with virglrenderer support.

Message-Id: &lt;20210714085045.797168-1-thuth@redhat.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>meson: fix missing preprocessor symbols</title>
<updated>2021-07-09T16:19:00+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2021-07-08T11:50:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=63a7f853063133fd1aa34ab0744b009fa3d7e183'/>
<id>urn:sha1:63a7f853063133fd1aa34ab0744b009fa3d7e183</id>
<content type='text'>
While most libraries do not need a CONFIG_* symbol because the
"when:" clauses are enough, some do.  Add them back or stop
using them if possible.

In the case of libpmem, the statement to add the CONFIG_* symbol
was still in configure, but could not be triggered because it
checked for "no" instead of "disabled" (and it would be wrong anyway
since the test for the library has not been done yet).

Reported-by: Li Zhijian &lt;lizhijian@cn.fujitsu.com&gt;
Fixes: 587d59d6cc ("configure, meson: convert virgl detection to meson", 2021-07-06)
Fixes: 83ef16821a ("configure, meson: convert libdaxctl detection to meson", 2021-07-06)
Fixes: e36e8c70f6 ("configure, meson: convert libpmem detection to meson", 2021-07-06)
Fixes: 53c22b68e3 ("configure, meson: convert liburing detection to meson", 2021-07-06)
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>vhost-user-gpu: reorder free calls.</title>
<updated>2021-06-15T05:16:25+00:00</updated>
<author>
<name>Gerd Hoffmann</name>
</author>
<published>2021-06-04T10:37:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=25b2ef2e8ee23109b0c3ce9ea71330bf8a7d12bd'/>
<id>urn:sha1:25b2ef2e8ee23109b0c3ce9ea71330bf8a7d12bd</id>
<content type='text'>
Free in correct order to avoid use-after-free.

Resolves: CID 1453812
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Li Qiang &lt;liq3ea@gmail.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-Id: &lt;20210604103714.1237414-1-kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>vhost-user-gpu: abstract vg_cleanup_mapping_iov</title>
<updated>2021-05-27T09:55:59+00:00</updated>
<author>
<name>Li Qiang</name>
</author>
<published>2021-05-16T03:04:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3ea32d1355d446057c17458238db2749c52ee8f0'/>
<id>urn:sha1:3ea32d1355d446057c17458238db2749c52ee8f0</id>
<content type='text'>
Currently in vhost-user-gpu, we free resource directly in
the cleanup case of resource. If we change the cleanup logic
we need to change several places, also abstruct a
'vg_create_mapping_iov' can be symmetry with the
'vg_create_mapping_iov'. This is like what virtio-gpu does,
no function changed.

Signed-off-by: Li Qiang &lt;liq3ea@163.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20210516030403.107723-9-liq3ea@163.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>vhost-user-gpu: fix OOB write in 'virgl_cmd_get_capset' (CVE-2021-3546)</title>
<updated>2021-05-27T09:55:59+00:00</updated>
<author>
<name>Li Qiang</name>
</author>
<published>2021-05-16T03:04:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9f22893adcb02580aee5968f32baa2cd109b3ec2'/>
<id>urn:sha1:9f22893adcb02580aee5968f32baa2cd109b3ec2</id>
<content type='text'>
If 'virgl_cmd_get_capset' set 'max_size' to 0,
the 'virgl_renderer_fill_caps' will write the data after the 'resp'.
This patch avoid this by checking the returned 'max_size'.

virtio-gpu fix: abd7f08b23 ("display: virtio-gpu-3d: check
virgl capabilities max_size")

Fixes: CVE-2021-3546
Reported-by: Li Qiang &lt;liq3ea@163.com&gt;
Reviewed-by: Prasad J Pandit &lt;pjp@fedoraproject.org&gt;
Signed-off-by: Li Qiang &lt;liq3ea@163.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20210516030403.107723-8-liq3ea@163.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>vhost-user-gpu: fix memory leak in 'virgl_resource_attach_backing' (CVE-2021-3544)</title>
<updated>2021-05-27T09:55:59+00:00</updated>
<author>
<name>Li Qiang</name>
</author>
<published>2021-05-16T03:04:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=63736af5a6571d9def93769431e0d7e38c6677bf'/>
<id>urn:sha1:63736af5a6571d9def93769431e0d7e38c6677bf</id>
<content type='text'>
If 'virgl_renderer_resource_attach_iov' failed, the 'res_iovs' will
be leaked.

Fixes: CVE-2021-3544
Reported-by: Li Qiang &lt;liq3ea@163.com&gt;
virtio-gpu fix: 33243031da ("virtio-gpu-3d: fix memory leak
in resource attach backing")

Signed-off-by: Li Qiang &lt;liq3ea@163.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20210516030403.107723-7-liq3ea@163.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
</feed>
