<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/util, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/util?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/util?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2024-08-13T14:35:47Z</updated>
<entry>
<title>module: Prevent crash by resetting local_err in module_load_qom_all()</title>
<updated>2024-08-13T14:35:47Z</updated>
<author>
<name>Alexander Ivanov</name>
<email>alexander.ivanov@virtuozzo.com</email>
</author>
<published>2024-08-09T12:13:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=940d802b24e63650e0eacad3714e2ce171cba17c'/>
<id>urn:sha1:940d802b24e63650e0eacad3714e2ce171cba17c</id>
<content type='text'>
Set local_err to NULL after it has been freed in error_report_err(). This
avoids triggering assert(*errp == NULL) failure in error_setv() when
local_err is reused in the loop.

Signed-off-by: Alexander Ivanov &lt;alexander.ivanov@virtuozzo.com&gt;
Reviewed-by: Claudio Fontana &lt;cfontana@suse.de&gt;
Reviewed-by: Denis V. Lunev &lt;den@openvz.org&gt;
Link: https://lore.kernel.org/r/20240809121340.992049-2-alexander.ivanov@virtuozzo.com
[Do the same by moving the declaration instead. - Paolo]
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu/osdep: Add excluded fd parameter to qemu_close_all_open_fd()</title>
<updated>2024-08-04T22:21:59Z</updated>
<author>
<name>Clément Léger</name>
<email>cleger@rivosinc.com</email>
</author>
<published>2024-08-02T14:54:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=7532ca570a449bafe990a00f21ae41bff7709845'/>
<id>urn:sha1:7532ca570a449bafe990a00f21ae41bff7709845</id>
<content type='text'>
In order for this function to be usable by tap.c code, add a list of
file descriptors that should not be closed.

Signed-off-by: Clément Léger &lt;cleger@rivosinc.com&gt;
Message-ID: &lt;20240802145423.3232974-5-cleger@rivosinc.com&gt;
[rth: Use max_fd in qemu_close_all_open_fd_close_range]
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>qemu/osdep: Split qemu_close_all_open_fd() and add fallback</title>
<updated>2024-08-04T22:06:08Z</updated>
<author>
<name>Clément Léger</name>
<email>cleger@rivosinc.com</email>
</author>
<published>2024-08-02T14:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=ffa28f9cf503e22bfe621b062d29cbdb9a0aa786'/>
<id>urn:sha1:ffa28f9cf503e22bfe621b062d29cbdb9a0aa786</id>
<content type='text'>
In order to make it cleaner, split qemu_close_all_open_fd() logic into
multiple subfunctions (close with close_range(), with /proc/self/fd and
fallback).

Signed-off-by: Clément Léger &lt;cleger@rivosinc.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-ID: &lt;20240802145423.3232974-3-cleger@rivosinc.com&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>qemu/osdep: Move close_all_open_fds() to oslib-posix</title>
<updated>2024-08-04T22:06:08Z</updated>
<author>
<name>Clément Léger</name>
<email>cleger@rivosinc.com</email>
</author>
<published>2024-08-02T14:54:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=4ec5ebea078ed3a16d6c7e612ff9c2e04ea73931'/>
<id>urn:sha1:4ec5ebea078ed3a16d6c7e612ff9c2e04ea73931</id>
<content type='text'>
Move close_all_open_fds() in oslib-posix, rename it
qemu_close_all_open_fds() and export it.

Signed-off-by: Clément Léger &lt;cleger@rivosinc.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-ID: &lt;20240802145423.3232974-2-cleger@rivosinc.com&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>util/cpuinfo: Make use of elf_aux_info(3) on OpenBSD</title>
<updated>2024-07-29T21:59:23Z</updated>
<author>
<name>Brad Smith</name>
<email>brad@comstyle.com</email>
</author>
<published>2024-07-28T03:58:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=27fca0a0d560ae704457c5f89e0be658afef034d'/>
<id>urn:sha1:27fca0a0d560ae704457c5f89e0be658afef034d</id>
<content type='text'>
Signed-off-by: Brad Smith &lt;brad@comstyle.com&gt;
Message-ID: &lt;ZqXB_zz0fR1CpA7k@humpty.home.comstyle.com&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>util/getauxval: Ensure setting errno if not found</title>
<updated>2024-07-29T21:59:23Z</updated>
<author>
<name>Vivian Wang</name>
<email>uwu@dram.page</email>
</author>
<published>2024-07-23T10:05:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=22531d8cc58f390986e7070eca5d1628aa7b2fe0'/>
<id>urn:sha1:22531d8cc58f390986e7070eca5d1628aa7b2fe0</id>
<content type='text'>
Sometimes zero is a valid value for getauxval (e.g. AT_EXECFD). Make
sure that we can distinguish between a valid zero value and a not found
entry by setting errno.

Assumes that getauxval from sys/auxv.h sets errno correctly.

Signed-off-by: Vivian Wang &lt;uwu@dram.page&gt;
Message-ID: &lt;20240723100545.405476-2-uwu@dram.page&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>util/async.c: Forbid negative min/max in aio_context_set_thread_pool_params()</title>
<updated>2024-07-25T19:57:38Z</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2024-07-23T15:09:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=851495571d14fe2226c52b9d423f88a4f5460836'/>
<id>urn:sha1:851495571d14fe2226c52b9d423f88a4f5460836</id>
<content type='text'>
aio_context_set_thread_pool_params() takes two int64_t arguments to
set the minimum and maximum number of threads in the pool.  We do
some bounds checking on these, but we don't catch the case where the
inputs are negative.  This means that later in the function when we
assign these inputs to the AioContext::thread_pool_min and
::thread_pool_max fields, which are of type int, the values might
overflow the smaller type.

A negative number of threads is meaningless, so make
aio_context_set_thread_pool_params() return an error if either min or
max are negative.

Resolves: Coverity CID 1547605
Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-id: 20240723150927.1396456-1-peter.maydell@linaro.org
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>util/fifo8: Introduce fifo8_drop()</title>
<updated>2024-07-23T20:34:54Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-07-22T11:37:48Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=e4e9db25624a93e8b02890a15bba0958db33c669'/>
<id>urn:sha1:e4e9db25624a93e8b02890a15bba0958db33c669</id>
<content type='text'>
Add the fifo8_drop() helper for clarity.
It is a simple wrapper over fifo8_pop_buf().

Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Pierrick Bouvier &lt;pierrick.bouvier@linaro.org&gt;
Reviewed-by: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
Message-Id: &lt;20240722160745.67904-8-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>util/fifo8: Expose fifo8_pop_buf()</title>
<updated>2024-07-23T20:34:54Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-07-22T11:27:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=23ad5711730f994d66520a3283aac2979d89389e'/>
<id>urn:sha1:23ad5711730f994d66520a3283aac2979d89389e</id>
<content type='text'>
Extract fifo8_pop_buf() from hw/scsi/esp.c and expose
it as part of the &lt;qemu/fifo8.h&gt; API. This function takes
care of non-contiguous (wrapped) FIFO buffer (which is an
implementation detail).

Suggested-by: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Pierrick Bouvier &lt;pierrick.bouvier@linaro.org&gt;
Reviewed-by: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
Message-Id: &lt;20240722160745.67904-7-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>util/fifo8: Rename fifo8_pop_buf() -&gt; fifo8_pop_bufptr()</title>
<updated>2024-07-23T20:34:54Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-07-22T11:25:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=06252bf5122f047ed5c14fb75f3167f11b882352'/>
<id>urn:sha1:06252bf5122f047ed5c14fb75f3167f11b882352</id>
<content type='text'>
Since fifo8_pop_buf() return a const buffer (which points
directly into the FIFO backing store). Rename it using the
'bufptr' suffix to better reflect that it is a pointer to
the internal buffer that is being returned. This will help
differentiate with methods *copying* the FIFO data.

Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Pierrick Bouvier &lt;pierrick.bouvier@linaro.org&gt;
Reviewed-by: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
Message-Id: &lt;20240722160745.67904-6-philmd@linaro.org&gt;
</content>
</entry>
</feed>
