<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/hw/rdma, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/hw/rdma?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/hw/rdma?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-11-07T19:08:17+00:00</updated>
<entry>
<title>msix: Assert that specified vector is in range</title>
<updated>2022-11-07T19:08:17+00:00</updated>
<author>
<name>Akihiko Odaki</name>
</author>
<published>2022-08-29T08:35:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=15377f6e79cc6aa08dbafe82607e0bda13ca44b5'/>
<id>urn:sha1:15377f6e79cc6aa08dbafe82607e0bda13ca44b5</id>
<content type='text'>
There were several different ways to deal with the situation where the
vector specified for a msix function is out of bound:
- early return a function and keep progresssing
- propagate the error to the caller
- mark msix unusable
- assert it is in bound
- just ignore

An out-of-bound vector should not be specified if the device
implementation is correct so let msix functions always assert that the
specified vector is in range.

An exceptional case is virtio-pci, which allows the guest to configure
vectors. For virtio-pci, it is more appropriate to introduce its own
checks because it is sometimes too late to check the vector range in
msix functions.

Signed-off-by: Akihiko Odaki &lt;akihiko.odaki@daynix.com&gt;
Message-Id: &lt;20220829083524.143640-1-akihiko.odaki@daynix.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: Yuval Shaia &lt;yuval.shaia.ml@gmail.com&gt;
Signed-off-by: Akihiko Odaki &amp;lt;&lt;a href="mailto:akihiko.odaki@daynix.com" target="_blank"&gt;akihiko.odaki@daynix.com&lt;/a&gt;&amp;gt;&lt;br&gt;
</content>
</entry>
<entry>
<title>hw/pvrdma: Some cosmetic fixes</title>
<updated>2022-04-26T10:25:14+00:00</updated>
<author>
<name>Yuval Shaia</name>
</author>
<published>2022-04-03T09:58:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=46c1ea01312b13b8aa4da286c9d868fe9b702758'/>
<id>urn:sha1:46c1ea01312b13b8aa4da286c9d868fe9b702758</id>
<content type='text'>
Signed-off-by: Yuval Shaia &lt;yuval.shaia.ml@gmail.com&gt;
Reviewed-by: Marcel Apfelbaum &lt;marcel.apfelbaum@gmail.com&gt;
Message-Id: &lt;20220403095837.2378-1-yuval.shaia.ml@gmail.com&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<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>hw/dma: Use dma_addr_t type definition when relevant</title>
<updated>2022-01-18T11:56:29+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2021-12-31T10:33:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=bfa30f3903e0542611196b21f5832a4be5775a21'/>
<id>urn:sha1:bfa30f3903e0542611196b21f5832a4be5775a21</id>
<content type='text'>
Update the obvious places where dma_addr_t should be used
(instead of uint64_t, hwaddr, size_t, int32_t types).

This allows to have &amp;dma_addr_t type portable on 32/64-bit
hosts.

Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: David Hildenbrand &lt;david@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Message-Id: &lt;20220111184309.28637-11-f4bug@amsat.org&gt;
</content>
</entry>
<entry>
<title>hw/dma: Fix format string issues using dma_addr_t</title>
<updated>2022-01-18T11:56:29+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2022-01-04T08:42:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=60791a2c27e1b8f82ff035a474b2f96f0fafa66c'/>
<id>urn:sha1:60791a2c27e1b8f82ff035a474b2f96f0fafa66c</id>
<content type='text'>
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: David Hildenbrand &lt;david@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Message-Id: &lt;20220111184309.28637-10-f4bug@amsat.org&gt;
</content>
</entry>
<entry>
<title>hw/rdma/rdma_utils: Rename rdma_pci_dma_map 'len' argument</title>
<updated>2022-01-18T11:56:07+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2021-12-31T10:19:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ce0a7982855afd873600a4180161adbfaef24cc1'/>
<id>urn:sha1:ce0a7982855afd873600a4180161adbfaef24cc1</id>
<content type='text'>
Various APIs use 'pval' naming for 'pointer to val'.
rdma_pci_dma_map() uses 'plen' for 'PCI length', but since
'PCI' is already explicit in the function name, simplify
and rename the argument 'len'. No logical change.

Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: David Hildenbrand &lt;david@redhat.com&gt;
Reviewed-by: Yuval Shaia &lt;yuval.shaia.ml@gmail.com&gt;
Tested-by: Yuval Shaia &lt;yuval.shaia.ml@gmail.com&gt;
Message-Id: &lt;20220111184309.28637-7-f4bug@amsat.org&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
</content>
</entry>
<entry>
<title>qapi: introduce x-query-rdma QMP command</title>
<updated>2021-11-02T15:55:14+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2021-09-08T09:35:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8dbbca5c056842d53498f643a15cac8593d51424'/>
<id>urn:sha1:8dbbca5c056842d53498f643a15cac8593d51424</id>
<content type='text'>
This is a counterpart to the HMP "info rdma" command. It is being
added with an "x-" prefix because this QMP command is intended as an
adhoc debugging tool and will thus not be modelled in QAPI as fully
structured data, nor will it have long term guaranteed stability.
The existing HMP command is rewritten to call the QMP command.

Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>pvrdma: Fix the ring init error flow (CVE-2021-3608)</title>
<updated>2021-07-04T19:47:51+00:00</updated>
<author>
<name>Marcel Apfelbaum</name>
</author>
<published>2021-06-30T11:52:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=66ae37d8cc313f89272e711174a846a229bcdbd3'/>
<id>urn:sha1:66ae37d8cc313f89272e711174a846a229bcdbd3</id>
<content type='text'>
Do not unmap uninitialized dma addresses.

Fixes: CVE-2021-3608
Reviewed-by: VictorV (Kunlun Lab) &lt;vv474172261@gmail.com&gt;
Tested-by: VictorV (Kunlun Lab) &lt;vv474172261@gmail.com&gt;
Signed-off-by: Marcel Apfelbaum &lt;marcel@redhat.com&gt;
Message-Id: &lt;20210630115246.2178219-1-marcel@redhat.com&gt;
Tested-by: Yuval Shaia &lt;yuval.shaia.ml@gmail.com&gt;
Reviewed-by: Yuval Shaia &lt;yuval.shaia.ml@gmail.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Signed-off-by: Marcel Apfelbaum &lt;marcel.apfelbaum@gmail.com&gt;
</content>
</entry>
<entry>
<title>pvrdma: Ensure correct input on ring init (CVE-2021-3607)</title>
<updated>2021-07-04T19:47:51+00:00</updated>
<author>
<name>Marcel Apfelbaum</name>
</author>
<published>2021-06-30T11:46:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=32e5703cfea07c91e6e84bcb0313f633bb146534'/>
<id>urn:sha1:32e5703cfea07c91e6e84bcb0313f633bb146534</id>
<content type='text'>
Check the guest passed a non zero page count
for pvrdma device ring buffers.

Fixes: CVE-2021-3607
Reported-by: VictorV (Kunlun Lab) &lt;vv474172261@gmail.com&gt;
Reviewed-by: VictorV (Kunlun Lab) &lt;vv474172261@gmail.com&gt;
Signed-off-by: Marcel Apfelbaum &lt;marcel@redhat.com&gt;
Message-Id: &lt;20210630114634.2168872-1-marcel@redhat.com&gt;
Reviewed-by: Yuval Shaia &lt;yuval.shaia.ml@gmail.com&gt;
Tested-by: Yuval Shaia &lt;yuval.shaia.ml@gmail.com&gt;
Signed-off-by: Marcel Apfelbaum &lt;marcel.apfelbaum@gmail.com&gt;
</content>
</entry>
</feed>
