* [PULL 1/3] tests/lcitool: Switch to a newer version of netmap and check it out faster
2026-11-27 16:59 [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub Pierrick Bouvier
@ 2026-11-27 16:59 ` Pierrick Bouvier
2026-11-27 16:59 ` [PULL 2/3] contrib/plugins/uftrace_symbols.py: ignore warning reported by llvm-addr2line Pierrick Bouvier
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Pierrick Bouvier @ 2026-11-27 16:59 UTC (permalink / raw)
To: qemu-devel, peter.maydell, richard.henderson, pbonzini, stefanha
Cc: pierrick.bouvier
From: Thomas Huth <thuth@redhat.com>
Netmap v11.3 is from 2017, so this is way older than the oldest version
of other features that we support in QEMU. The newest tagged version is
v13.0 which is from 2019 - still old, but at least it's the newest one
with a version number, so let's use that instead.
While we're at it, also make sure to check out only the revision that we
need, so we don't waste bandwidth by downloading the whole repository here.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Link: https://lore.kernel.org/qemu-devel/20261106063103.21061-1-thuth@redhat.com
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
---
tests/docker/dockerfiles/debian.docker | 4 ++--
tests/lcitool/refresh | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/docker/dockerfiles/debian.docker b/tests/docker/dockerfiles/debian.docker
index ce591feec21..aeed90523c7 100644
--- a/tests/docker/dockerfiles/debian.docker
+++ b/tests/docker/dockerfiles/debian.docker
@@ -161,8 +161,8 @@ RUN apt update && \
cscope\
global\
linux-headers-generic
-RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap
-RUN cd /usr/src/netmap && git checkout v11.3
+RUN git clone -cadvice.detachedHead=false --branch=v13.0 --depth=1 \
+ https://github.com/luigirizzo/netmap.git /usr/src/netmap
RUN cd /usr/src/netmap/LINUX && \
./configure --no-drivers --no-apps \
--kernel-dir=$(ls -d /usr/src/linux-headers-*-$(dpkg --print-architecture)) \
diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh
index 075acb82e1d..57593e6ded1 100755
--- a/tests/lcitool/refresh
+++ b/tests/lcitool/refresh
@@ -117,8 +117,8 @@ RUN apt update && \
cscope\
global\
linux-headers-generic
-RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap
-RUN cd /usr/src/netmap && git checkout v11.3
+RUN git clone -cadvice.detachedHead=false --branch=v13.0 --depth=1 \
+ https://github.com/luigirizzo/netmap.git /usr/src/netmap
RUN cd /usr/src/netmap/LINUX && \
./configure --no-drivers --no-apps \
--kernel-dir=$(ls -d /usr/src/linux-headers-*-$(dpkg --print-architecture)) \
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PULL 2/3] contrib/plugins/uftrace_symbols.py: ignore warning reported by llvm-addr2line
2026-11-27 16:59 [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub Pierrick Bouvier
2026-11-27 16:59 ` [PULL 1/3] tests/lcitool: Switch to a newer version of netmap and check it out faster Pierrick Bouvier
@ 2026-11-27 16:59 ` Pierrick Bouvier
2026-11-27 16:59 ` [PULL 3/3] gdbstub: reset supported features on Supported request Pierrick Bouvier
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Pierrick Bouvier @ 2026-11-27 16:59 UTC (permalink / raw)
To: qemu-devel, peter.maydell, richard.henderson, pbonzini, stefanha
Cc: pierrick.bouvier
When trying to trace a riscv64 stack, addr2line reported warning on
stdout when symbolizing addresses:
warning: address range table at offset 0x8a0 has a premature terminator entry at offset 0x9c0
warning: address range table at offset 0x1700 has a premature terminator entry at offset 0x1750
Ignore any warning, similar to the error we ignored previously.
Link: https://lore.kernel.org/qemu-devel/20261118021020.1253822-1-pierrick.bouvier@oss.qualcomm.com
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
---
contrib/plugins/uftrace_symbols.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/contrib/plugins/uftrace_symbols.py b/contrib/plugins/uftrace_symbols.py
index 9f0095e73b9..2b931c49a83 100755
--- a/contrib/plugins/uftrace_symbols.py
+++ b/contrib/plugins/uftrace_symbols.py
@@ -63,7 +63,8 @@ def find_symbols_locations(elf_file, symbols):
out = out.strip().split('\n')
# filter out some addr2line error messages
skip_err='addr2line: DWARF error: mangled line number section (bad file number)'
- out = [src for src in out if src != skip_err]
+ out = [src for src in out
+ if src != skip_err and not src.startswith('warning:')]
assert len(out) == len(symbols)
for i in range(len(symbols)):
s = symbols[i]
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PULL 3/3] gdbstub: reset supported features on Supported request
2026-11-27 16:59 [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub Pierrick Bouvier
2026-11-27 16:59 ` [PULL 1/3] tests/lcitool: Switch to a newer version of netmap and check it out faster Pierrick Bouvier
2026-11-27 16:59 ` [PULL 2/3] contrib/plugins/uftrace_symbols.py: ignore warning reported by llvm-addr2line Pierrick Bouvier
@ 2026-11-27 16:59 ` Pierrick Bouvier
2026-11-27 17:03 ` [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub Pierrick Bouvier
2026-11-29 22:40 ` Richard Henderson
4 siblings, 0 replies; 8+ messages in thread
From: Pierrick Bouvier @ 2026-11-27 16:59 UTC (permalink / raw)
To: qemu-devel, peter.maydell, richard.henderson, pbonzini, stefanha
Cc: pierrick.bouvier
From: Justin Sapp <jsapp@qti.qualcomm.com>
https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
```
Whenever the stub receives a ‘qSupported’ request, the supplied set
of GDB features should override any previous request. This allows GDB to
put the stub in a known state, even if the stub had previously been
communicating with a different version of GDB.
```
We exposed this by connecting to gdbstub using a gdb client first, and
then WinDbg (EXDI) for windows kernel debugging. Since they both
differ in their multiprocess support, this was confusing EXDI.
While we are here, fix the same for fork_events in user mode.
Simplify control flow to always call gdb_handle_query_supported_user.
Reviewed-by: Marco Liebel <marco.liebel@oss.qualcomm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Link: https://lore.kernel.org/qemu-devel/20261105075346.52926-1-pierrick.bouvier@oss.qualcomm.com
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
---
gdbstub/gdbstub.c | 15 +++++++--------
gdbstub/user.c | 4 +---
2 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c
index 0a328b0dd48..38fe56a5d36 100644
--- a/gdbstub/gdbstub.c
+++ b/gdbstub/gdbstub.c
@@ -1679,6 +1679,11 @@ void gdb_extend_qsupported_features(char *qflags)
static void handle_query_supported(GArray *params, void *user_ctx)
{
+ const char *gdb_supported = "";
+ if (params->len) {
+ gdb_supported = gdb_get_cmd_param(params, 0)->data;
+ }
+
g_string_printf(gdbserver_state.str_buf, "PacketSize=%x", MAX_PACKET_LENGTH);
if (gdb_get_core_xml_file(first_cpu)) {
g_string_append(gdbserver_state.str_buf, ";qXfer:features:read+");
@@ -1701,16 +1706,10 @@ static void handle_query_supported(GArray *params, void *user_ctx)
g_string_append(gdbserver_state.str_buf, ";qXfer:exec-file:read+");
#endif
- if (params->len) {
- const char *gdb_supported = gdb_get_cmd_param(params, 0)->data;
-
- if (strstr(gdb_supported, "multiprocess+")) {
- gdbserver_state.multiprocess = true;
- }
+ gdbserver_state.multiprocess = strstr(gdb_supported, "multiprocess+");
#if defined(CONFIG_USER_ONLY)
- gdb_handle_query_supported_user(gdb_supported);
+ gdb_handle_query_supported_user(gdb_supported);
#endif
- }
g_string_append(gdbserver_state.str_buf, ";vContSupported+;multiprocess+");
diff --git a/gdbstub/user.c b/gdbstub/user.c
index d810f0f38c3..6526200a360 100644
--- a/gdbstub/user.c
+++ b/gdbstub/user.c
@@ -701,9 +701,7 @@ fail:
void gdb_handle_query_supported_user(const char *gdb_supported)
{
- if (strstr(gdb_supported, "fork-events+")) {
- gdbserver_user_state.fork_events = true;
- }
+ gdbserver_user_state.fork_events = strstr(gdb_supported, "fork-events+");
g_string_append(gdbserver_state.str_buf, ";fork-events+");
}
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub
2026-11-27 16:59 [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub Pierrick Bouvier
` (2 preceding siblings ...)
2026-11-27 16:59 ` [PULL 3/3] gdbstub: reset supported features on Supported request Pierrick Bouvier
@ 2026-11-27 17:03 ` Pierrick Bouvier
2026-11-30 17:02 ` Alex Bennée
2026-11-29 22:40 ` Richard Henderson
4 siblings, 1 reply; 8+ messages in thread
From: Pierrick Bouvier @ 2026-11-27 17:03 UTC (permalink / raw)
To: qemu-devel, peter.maydell, richard.henderson, pbonzini, stefanha
On 11/27/2026 8:59 AM, Pierrick Bouvier wrote:
> The following changes since commit 9751c62358073580cbf330a4df22077a7c6a407c:
>
> Update version for v11.2.0-rc2 release (2026-11-25 21:39:27 -0800)
>
> are available in the Git repository at:
>
> https://gitlab.com/p-b-o/qemu tags/pbouvier/pr/fixes_11.2-20261127
>
> for you to fetch changes up to ff4c3cf7ca6afd7f3da1a011be304f897d2d5fab:
>
> gdbstub: reset supported features on Supported request (2026-11-27 16:58:43 +0000)
>
> ----------------------------------------------------------------
> Changes:
> - [PATCH] tests/lcitool: Switch to a newer version of netmap and check (Thomas Huth <thuth@redhat.com>)
> Link: https://lore.kernel.org/qemu-devel/20261106063103.21061-1-thuth@redhat.com
> - [PATCH] contrib/plugins/uftrace_symbols.py: ignore warning reported (Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>)
> Link: https://lore.kernel.org/qemu-devel/20261118021020.1253822-1-pierrick.bouvier@oss.qualcomm.com
> - [PATCH v2] gdbstub: reset supported features on Supported request (Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>)
> Link: https://lore.kernel.org/qemu-devel/20261105075346.52926-1-pierrick.bouvier@oss.qualcomm.com
>
> ----------------------------------------------------------------
> Justin Sapp (1):
> gdbstub: reset supported features on Supported request
>
> Pierrick Bouvier (1):
> contrib/plugins/uftrace_symbols.py: ignore warning reported by llvm-addr2line
>
> Thomas Huth (1):
> tests/lcitool: Switch to a newer version of netmap and check it out faster
>
> contrib/plugins/uftrace_symbols.py | 3 ++-
> gdbstub/gdbstub.c | 15 +++++++--------
> gdbstub/user.c | 4 +---
> tests/docker/dockerfiles/debian.docker | 4 ++--
> tests/lcitool/refresh | 4 ++--
> 5 files changed, 14 insertions(+), 16 deletions(-)
Disclaimer: This PR contains one patch for gdbstub, for which I'm not an
official maintainer.
Despite multiple pings on v2, I could not get any answer from Alex, so
sending this now directly, as the fix was tested and reviewed.
He reviewed the v1, and v2 was a small fix on top.
Regards,
Pierrick
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub
2026-11-27 17:03 ` [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub Pierrick Bouvier
@ 2026-11-30 17:02 ` Alex Bennée
2026-11-30 17:17 ` Pierrick Bouvier
0 siblings, 1 reply; 8+ messages in thread
From: Alex Bennée @ 2026-11-30 17:02 UTC (permalink / raw)
To: Pierrick Bouvier
Cc: qemu-devel, peter.maydell, richard.henderson, pbonzini, stefanha
Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> writes:
> On 11/27/2026 8:59 AM, Pierrick Bouvier wrote:
>> The following changes since commit 9751c62358073580cbf330a4df22077a7c6a407c:
>>
>> Update version for v11.2.0-rc2 release (2026-11-25 21:39:27 -0800)
>>
>> are available in the Git repository at:
>>
>> https://gitlab.com/p-b-o/qemu tags/pbouvier/pr/fixes_11.2-20261127
>>
>> for you to fetch changes up to ff4c3cf7ca6afd7f3da1a011be304f897d2d5fab:
>>
>> gdbstub: reset supported features on Supported request (2026-11-27 16:58:43 +0000)
>>
>> ----------------------------------------------------------------
>> Changes:
>> - [PATCH] tests/lcitool: Switch to a newer version of netmap and check (Thomas Huth <thuth@redhat.com>)
>> Link: https://lore.kernel.org/qemu-devel/20261106063103.21061-1-thuth@redhat.com
>> - [PATCH] contrib/plugins/uftrace_symbols.py: ignore warning reported (Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>)
>> Link: https://lore.kernel.org/qemu-devel/20261118021020.1253822-1-pierrick.bouvier@oss.qualcomm.com
>> - [PATCH v2] gdbstub: reset supported features on Supported request (Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>)
>> Link: https://lore.kernel.org/qemu-devel/20261105075346.52926-1-pierrick.bouvier@oss.qualcomm.com
>>
>> ----------------------------------------------------------------
>> Justin Sapp (1):
>> gdbstub: reset supported features on Supported request
>>
>> Pierrick Bouvier (1):
>> contrib/plugins/uftrace_symbols.py: ignore warning reported by llvm-addr2line
>>
>> Thomas Huth (1):
>> tests/lcitool: Switch to a newer version of netmap and check it out faster
>>
>> contrib/plugins/uftrace_symbols.py | 3 ++-
>> gdbstub/gdbstub.c | 15 +++++++--------
>> gdbstub/user.c | 4 +---
>> tests/docker/dockerfiles/debian.docker | 4 ++--
>> tests/lcitool/refresh | 4 ++--
>> 5 files changed, 14 insertions(+), 16 deletions(-)
>
> Disclaimer: This PR contains one patch for gdbstub, for which I'm not an
> official maintainer.
>
> Despite multiple pings on v2, I could not get any answer from Alex, so
> sending this now directly, as the fix was tested and reviewed.
> He reviewed the v1, and v2 was a small fix on top.
Because it's not a bug fix so has to wait until after the tree is
re-opened. Please don't bypass the normal tree next time.
>
> Regards,
> Pierrick
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub
2026-11-30 17:02 ` Alex Bennée
@ 2026-11-30 17:17 ` Pierrick Bouvier
0 siblings, 0 replies; 8+ messages in thread
From: Pierrick Bouvier @ 2026-11-30 17:17 UTC (permalink / raw)
To: Alex Bennée
Cc: qemu-devel, peter.maydell, richard.henderson, pbonzini, stefanha
On 11/30/2026 9:02 AM, Alex Bennée wrote:
> Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> writes:
>
>> On 11/27/2026 8:59 AM, Pierrick Bouvier wrote:
>>> The following changes since commit 9751c62358073580cbf330a4df22077a7c6a407c:
>>>
>>> Update version for v11.2.0-rc2 release (2026-11-25 21:39:27 -0800)
>>>
>>> are available in the Git repository at:
>>>
>>> https://gitlab.com/p-b-o/qemu tags/pbouvier/pr/fixes_11.2-20261127
>>>
>>> for you to fetch changes up to ff4c3cf7ca6afd7f3da1a011be304f897d2d5fab:
>>>
>>> gdbstub: reset supported features on Supported request (2026-11-27 16:58:43 +0000)
>>>
>>> ----------------------------------------------------------------
>>> Changes:
>>> - [PATCH] tests/lcitool: Switch to a newer version of netmap and check (Thomas Huth <thuth@redhat.com>)
>>> Link: https://lore.kernel.org/qemu-devel/20261106063103.21061-1-thuth@redhat.com
>>> - [PATCH] contrib/plugins/uftrace_symbols.py: ignore warning reported (Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>)
>>> Link: https://lore.kernel.org/qemu-devel/20261118021020.1253822-1-pierrick.bouvier@oss.qualcomm.com
>>> - [PATCH v2] gdbstub: reset supported features on Supported request (Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>)
>>> Link: https://lore.kernel.org/qemu-devel/20261105075346.52926-1-pierrick.bouvier@oss.qualcomm.com
>>>
>>> ----------------------------------------------------------------
>>> Justin Sapp (1):
>>> gdbstub: reset supported features on Supported request
>>>
>>> Pierrick Bouvier (1):
>>> contrib/plugins/uftrace_symbols.py: ignore warning reported by llvm-addr2line
>>>
>>> Thomas Huth (1):
>>> tests/lcitool: Switch to a newer version of netmap and check it out faster
>>>
>>> contrib/plugins/uftrace_symbols.py | 3 ++-
>>> gdbstub/gdbstub.c | 15 +++++++--------
>>> gdbstub/user.c | 4 +---
>>> tests/docker/dockerfiles/debian.docker | 4 ++--
>>> tests/lcitool/refresh | 4 ++--
>>> 5 files changed, 14 insertions(+), 16 deletions(-)
>>
>> Disclaimer: This PR contains one patch for gdbstub, for which I'm not an
>> official maintainer.
>>
>> Despite multiple pings on v2, I could not get any answer from Alex, so
>> sending this now directly, as the fix was tested and reviewed.
>> He reviewed the v1, and v2 was a small fix on top.
>
> Because it's not a bug fix so has to wait until after the tree is
> re-opened. Please don't bypass the normal tree next time.
>
As mentioned on the thread, this is bug fix.
Please check the commit description and link to gdb
doc, any gdbstub implementation has to honor this behavior.
Regards,
Pierrick
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub
2026-11-27 16:59 [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub Pierrick Bouvier
` (3 preceding siblings ...)
2026-11-27 17:03 ` [PULL 0/3] Fixes for 11.2: docker + plugins + gdbstub Pierrick Bouvier
@ 2026-11-29 22:40 ` Richard Henderson
4 siblings, 0 replies; 8+ messages in thread
From: Richard Henderson @ 2026-11-29 22:40 UTC (permalink / raw)
To: Pierrick Bouvier, qemu-devel, peter.maydell, pbonzini, stefanha
On 11/27/26 08:59, Pierrick Bouvier wrote:
> The following changes since commit 9751c62358073580cbf330a4df22077a7c6a407c:
>
> Update version for v11.2.0-rc2 release (2026-11-25 21:39:27 -0800)
>
> are available in the Git repository at:
>
> https://gitlab.com/p-b-o/qemu tags/pbouvier/pr/fixes_11.2-20261127
>
> for you to fetch changes up to ff4c3cf7ca6afd7f3da1a011be304f897d2d5fab:
>
> gdbstub: reset supported features on Supported request (2026-11-27 16:58:43 +0000)
>
> ----------------------------------------------------------------
> Changes:
> - [PATCH] tests/lcitool: Switch to a newer version of netmap and check (Thomas Huth<thuth@redhat.com>)
> Link:https://lore.kernel.org/qemu-devel/20261106063103.21061-1-thuth@redhat.com
> - [PATCH] contrib/plugins/uftrace_symbols.py: ignore warning reported (Pierrick Bouvier<pierrick.bouvier@oss.qualcomm.com>)
> Link:https://lore.kernel.org/qemu-devel/20261118021020.1253822-1-
> pierrick.bouvier@oss.qualcomm.com
> - [PATCH v2] gdbstub: reset supported features on Supported request (Pierrick Bouvier<pierrick.bouvier@oss.qualcomm.com>)
> Link:https://lore.kernel.org/qemu-devel/20261105075346.52926-1-
> pierrick.bouvier@oss.qualcomm.com
Applied, thanks.
r~
^ permalink raw reply [flat|nested] 8+ messages in thread