* [PULL 0/5] Trivial patches for 2025-09-03
@ 2025-09-03 7:59 Michael Tokarev
2025-09-03 7:59 ` [PULL 1/5] chardev/baum: Fix compiler warning for Windows builds Michael Tokarev
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Michael Tokarev @ 2025-09-03 7:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Michael Tokarev, qemu-trivial
The following changes since commit 8415b0619f65bff12f10c774659df92d3f61daca:
Merge tag 'qga-pull-2025-08-29-v2' of https://github.com/kostyanf14/qemu into staging (2025-09-02 12:07:05 +0200)
are available in the Git repository at:
https://gitlab.com/mjt0k/qemu.git tags/pull-trivial-patches
for you to fetch changes up to 25fef09ce17ac1ae22638a0b57d97c2bd5cd7d83:
docs: fix typo in xive doc (2025-09-03 10:57:50 +0300)
----------------------------------------------------------------
trivial patches for 2025-09-03
A few assorted fixes.
Including not-so-trivial (but simple) fix for curl (https)
block protocol with recent curl versions.
----------------------------------------------------------------
Aditya Gupta (1):
docs: fix typo in xive doc
Michael Tokarev (2):
block/curl: fix curl internal handles handling
block/curl: drop old/unuspported curl version checks
Philippe Mathieu-Daudé (1):
scripts/coverity-scan/COMPONENTS.md: Add a 'plugins' category
Stefan Weil (1):
chardev/baum: Fix compiler warning for Windows builds
block/curl.c | 20 +++-----------------
chardev/baum.c | 8 ++++++--
docs/specs/ppc-xive.rst | 2 +-
scripts/coverity-scan/COMPONENTS.md | 3 +++
4 files changed, 13 insertions(+), 20 deletions(-)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PULL 1/5] chardev/baum: Fix compiler warning for Windows builds
2025-09-03 7:59 [PULL 0/5] Trivial patches for 2025-09-03 Michael Tokarev
@ 2025-09-03 7:59 ` Michael Tokarev
2025-09-03 7:59 ` [PULL 2/5] block/curl: fix curl internal handles handling Michael Tokarev
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Michael Tokarev @ 2025-09-03 7:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Stefan Weil via, Michael Tokarev
From: Stefan Weil via <qemu-trivial@nongnu.org>
Compiler warning:
../chardev/baum.c:657:25: warning: comparison between pointer and integer
Use brlapi_fileDescriptor instead of int for brlapi_fd and
BRLAPI_INVALID_FILE_DESCRIPTOR instead of -1.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
chardev/baum.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/chardev/baum.c b/chardev/baum.c
index f3e8cd27f0..ad68321504 100644
--- a/chardev/baum.c
+++ b/chardev/baum.c
@@ -94,7 +94,7 @@ struct BaumChardev {
Chardev parent;
brlapi_handle_t *brlapi;
- int brlapi_fd;
+ brlapi_fileDescriptor brlapi_fd;
unsigned int x, y;
bool deferred_init;
@@ -654,7 +654,7 @@ static void baum_chr_open(Chardev *chr,
baum->brlapi = handle;
baum->brlapi_fd = brlapi__openConnection(handle, NULL, NULL);
- if (baum->brlapi_fd == -1) {
+ if (baum->brlapi_fd == BRLAPI_INVALID_FILE_DESCRIPTOR) {
error_setg(errp, "brlapi__openConnection: %s",
brlapi_strerror(brlapi_error_location()));
g_free(handle);
@@ -665,6 +665,10 @@ static void baum_chr_open(Chardev *chr,
baum->cellCount_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, baum_cellCount_timer_cb, baum);
+ /*
+ * On Windows, brlapi_fd is a pointer, which is being used here
+ * as an integer, but in practice it seems to work
+ */
qemu_set_fd_handler(baum->brlapi_fd, baum_chr_read, NULL, baum);
}
--
2.47.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PULL 2/5] block/curl: fix curl internal handles handling
2025-09-03 7:59 [PULL 0/5] Trivial patches for 2025-09-03 Michael Tokarev
2025-09-03 7:59 ` [PULL 1/5] chardev/baum: Fix compiler warning for Windows builds Michael Tokarev
@ 2025-09-03 7:59 ` Michael Tokarev
2025-09-03 7:59 ` [PULL 3/5] block/curl: drop old/unuspported curl version checks Michael Tokarev
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Michael Tokarev @ 2025-09-03 7:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Michael Tokarev, qemu-trivial, qemu-stable
block/curl.c uses CURLMOPT_SOCKETFUNCTION to register a socket callback.
According to the documentation, this callback is called not just with
application-created sockets but also with internal curl sockets, - and
for such sockets, user data pointer is not set by the application, so
the result qemu crashing.
Pass BDRVCURLState directly to the callback function as user pointer,
instead of relying on CURLINFO_PRIVATE.
This problem started happening with update of libcurl from 8.9 to 8.10 --
apparently with this change curl started using private handles more.
(CURLINFO_PRIVATE is used in one more place, in curl_multi_check_completion() -
it might need a similar fix too)
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3081
Cc: qemu-stable@qemu.org
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
block/curl.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/block/curl.c b/block/curl.c
index 5467678024..00b949ea45 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -162,13 +162,9 @@ static int curl_timer_cb(CURLM *multi, long timeout_ms, void *opaque)
static int curl_sock_cb(CURL *curl, curl_socket_t fd, int action,
void *userp, void *sp)
{
- BDRVCURLState *s;
- CURLState *state = NULL;
+ BDRVCURLState *s = userp;
CURLSocket *socket;
- curl_easy_getinfo(curl, CURLINFO_PRIVATE, (char **)&state);
- s = state->s;
-
socket = g_hash_table_lookup(s->sockets, GINT_TO_POINTER(fd));
if (!socket) {
socket = g_new0(CURLSocket, 1);
@@ -605,6 +601,7 @@ static void curl_attach_aio_context(BlockDriverState *bs,
assert(!s->multi);
s->multi = curl_multi_init();
s->aio_context = new_context;
+ curl_multi_setopt(s->multi, CURLMOPT_SOCKETDATA, s);
curl_multi_setopt(s->multi, CURLMOPT_SOCKETFUNCTION, curl_sock_cb);
curl_multi_setopt(s->multi, CURLMOPT_TIMERDATA, s);
curl_multi_setopt(s->multi, CURLMOPT_TIMERFUNCTION, curl_timer_cb);
--
2.47.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PULL 3/5] block/curl: drop old/unuspported curl version checks
2025-09-03 7:59 [PULL 0/5] Trivial patches for 2025-09-03 Michael Tokarev
2025-09-03 7:59 ` [PULL 1/5] chardev/baum: Fix compiler warning for Windows builds Michael Tokarev
2025-09-03 7:59 ` [PULL 2/5] block/curl: fix curl internal handles handling Michael Tokarev
@ 2025-09-03 7:59 ` Michael Tokarev
2025-09-03 7:59 ` [PULL 4/5] scripts/coverity-scan/COMPONENTS.md: Add a 'plugins' category Michael Tokarev
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Michael Tokarev @ 2025-09-03 7:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Michael Tokarev, qemu-trivial
We currently require libcurl >=7.29.0 (since f9cd86fe72be3cd8).
Drop older LIBCURL_VERSION_NUM checks from the driver.
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
block/curl.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/block/curl.c b/block/curl.c
index 00b949ea45..e0f98e035a 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -516,7 +516,7 @@ static int curl_init_state(BDRVCURLState *s, CURLState *state)
CURLOPT_REDIR_PROTOCOLS_STR, PROTOCOLS)) {
goto err;
}
-#elif LIBCURL_VERSION_NUM >= 0x071304
+#else
if (curl_easy_setopt(state->curl, CURLOPT_PROTOCOLS, PROTOCOLS) ||
curl_easy_setopt(state->curl, CURLOPT_REDIR_PROTOCOLS, PROTOCOLS)) {
goto err;
@@ -821,22 +821,11 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags,
goto out;
}
#endif
- /* Prior CURL 7.19.4 return value of 0 could mean that the file size is not
- * know or the size is zero. From 7.19.4 CURL returns -1 if size is not
- * known and zero if it is really zero-length file. */
-#if LIBCURL_VERSION_NUM >= 0x071304
if (cl < 0) {
pstrcpy(state->errmsg, CURL_ERROR_SIZE,
"Server didn't report file size.");
goto out;
}
-#else
- if (cl <= 0) {
- pstrcpy(state->errmsg, CURL_ERROR_SIZE,
- "Unknown file size or zero-length file.");
- goto out;
- }
-#endif
s->len = cl;
--
2.47.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PULL 4/5] scripts/coverity-scan/COMPONENTS.md: Add a 'plugins' category
2025-09-03 7:59 [PULL 0/5] Trivial patches for 2025-09-03 Michael Tokarev
` (2 preceding siblings ...)
2025-09-03 7:59 ` [PULL 3/5] block/curl: drop old/unuspported curl version checks Michael Tokarev
@ 2025-09-03 7:59 ` Michael Tokarev
2025-09-03 7:59 ` [PULL 5/5] docs: fix typo in xive doc Michael Tokarev
2025-09-03 12:29 ` [PULL 0/5] Trivial patches for 2025-09-03 Richard Henderson
5 siblings, 0 replies; 7+ messages in thread
From: Michael Tokarev @ 2025-09-03 7:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Philippe Mathieu-Daudé, qemu-trivial, Michael Tokarev
From: Philippe Mathieu-Daudé <philmd@linaro.org>
Cover the TCG plugins files under their own Coverity category.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
scripts/coverity-scan/COMPONENTS.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/coverity-scan/COMPONENTS.md b/scripts/coverity-scan/COMPONENTS.md
index 72995903ff..95805b536b 100644
--- a/scripts/coverity-scan/COMPONENTS.md
+++ b/scripts/coverity-scan/COMPONENTS.md
@@ -147,6 +147,9 @@ tcg
system
~ .*/qemu(/system/.*|/accel/.*)
+plugins
+ ~ .*/qemu(/contrib|/tests/tcg)?/plugins/.*
+
(headers)
~ .*/qemu(/include/.*)
--
2.47.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PULL 5/5] docs: fix typo in xive doc
2025-09-03 7:59 [PULL 0/5] Trivial patches for 2025-09-03 Michael Tokarev
` (3 preceding siblings ...)
2025-09-03 7:59 ` [PULL 4/5] scripts/coverity-scan/COMPONENTS.md: Add a 'plugins' category Michael Tokarev
@ 2025-09-03 7:59 ` Michael Tokarev
2025-09-03 12:29 ` [PULL 0/5] Trivial patches for 2025-09-03 Richard Henderson
5 siblings, 0 replies; 7+ messages in thread
From: Michael Tokarev @ 2025-09-03 7:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Aditya Gupta, qemu-trivial, Michael Tokarev
From: Aditya Gupta <adityag@linux.ibm.com>
"Interrupt Pending Buffer" IPB, which got written as IBP due to typo.
The "IPB" register is also mentioned in same doc multiple times.
Signed-off-by: Aditya Gupta <adityag@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
docs/specs/ppc-xive.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/specs/ppc-xive.rst b/docs/specs/ppc-xive.rst
index 83d43f658b..968cc760d4 100644
--- a/docs/specs/ppc-xive.rst
+++ b/docs/specs/ppc-xive.rst
@@ -157,7 +157,7 @@ Interrupt flow from an O/S perspective
After an event data has been enqueued in the O/S Event Queue, the IVPE
raises the bit corresponding to the priority of the pending interrupt
-in the register IBP (Interrupt Pending Buffer) to indicate that an
+in the register IPB (Interrupt Pending Buffer) to indicate that an
event is pending in one of the 8 priority queues. The Pending
Interrupt Priority Register (PIPR) is also updated using the IPB. This
register represent the priority of the most favored pending
--
2.47.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PULL 0/5] Trivial patches for 2025-09-03
2025-09-03 7:59 [PULL 0/5] Trivial patches for 2025-09-03 Michael Tokarev
` (4 preceding siblings ...)
2025-09-03 7:59 ` [PULL 5/5] docs: fix typo in xive doc Michael Tokarev
@ 2025-09-03 12:29 ` Richard Henderson
5 siblings, 0 replies; 7+ messages in thread
From: Richard Henderson @ 2025-09-03 12:29 UTC (permalink / raw)
To: qemu-devel
On 9/3/25 09:59, Michael Tokarev wrote:
> The following changes since commit 8415b0619f65bff12f10c774659df92d3f61daca:
>
> Merge tag 'qga-pull-2025-08-29-v2' ofhttps://github.com/kostyanf14/qemu into staging (2025-09-02 12:07:05 +0200)
>
> are available in the Git repository at:
>
> https://gitlab.com/mjt0k/qemu.git tags/pull-trivial-patches
>
> for you to fetch changes up to 25fef09ce17ac1ae22638a0b57d97c2bd5cd7d83:
>
> docs: fix typo in xive doc (2025-09-03 10:57:50 +0300)
>
> ----------------------------------------------------------------
> trivial patches for 2025-09-03
>
> A few assorted fixes.
> Including not-so-trivial (but simple) fix for curl (https)
> block protocol with recent curl versions.
Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/10.2 as appropriate.
r~
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-09-03 12:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-03 7:59 [PULL 0/5] Trivial patches for 2025-09-03 Michael Tokarev
2025-09-03 7:59 ` [PULL 1/5] chardev/baum: Fix compiler warning for Windows builds Michael Tokarev
2025-09-03 7:59 ` [PULL 2/5] block/curl: fix curl internal handles handling Michael Tokarev
2025-09-03 7:59 ` [PULL 3/5] block/curl: drop old/unuspported curl version checks Michael Tokarev
2025-09-03 7:59 ` [PULL 4/5] scripts/coverity-scan/COMPONENTS.md: Add a 'plugins' category Michael Tokarev
2025-09-03 7:59 ` [PULL 5/5] docs: fix typo in xive doc Michael Tokarev
2025-09-03 12:29 ` [PULL 0/5] Trivial patches for 2025-09-03 Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).