Re: [PATCH 00/18] Stop all qemu-cpu threads on a breakpoint

2025-01-08 Thread Ilya Leoshkevich
On Wed, 2025-01-08 at 15:56 +, Alex Bennée wrote: > Ilya Leoshkevich writes: > > > Hi, > > > > On reporting a breakpoint in a non-non-stop mode, GDB remotes must > > stop > > all threads. Currently qemu-user doesn't do that, breaking the > > debugging session for at least two reasons: concur

Re: [PATCH 00/18] Stop all qemu-cpu threads on a breakpoint

2025-01-08 Thread Alex Bennée
Ilya Leoshkevich writes: > Hi, > > On reporting a breakpoint in a non-non-stop mode, GDB remotes must stop > all threads. Currently qemu-user doesn't do that, breaking the > debugging session for at least two reasons: concurrent access to the > GDB socket, and an assertion within GDB [1]. > > Thi

Re: [PATCH 00/18] Stop all qemu-cpu threads on a breakpoint

2024-10-09 Thread Ilya Leoshkevich
On Tue, 2024-10-08 at 11:17 -0700, Richard Henderson wrote: > On 10/5/24 13:35, Ilya Leoshkevich wrote: > > > How can we handle the long-running syscalls? > > > Just waiting sounds unsatisfying. > > > Sending a reserved host signal may alter the guest's behaviour if > > > a > > > syscall like pause

Re: [PATCH 00/18] Stop all qemu-cpu threads on a breakpoint

2024-10-08 Thread Richard Henderson
On 10/5/24 13:35, Ilya Leoshkevich wrote: How can we handle the long-running syscalls? Just waiting sounds unsatisfying. Sending a reserved host signal may alter the guest's behaviour if a syscall like pause() is interrupted. What do you think about SIGSTOP-ping the "in_syscall" threads? A quick

Re: [PATCH 00/18] Stop all qemu-cpu threads on a breakpoint

2024-10-05 Thread Ilya Leoshkevich
On Sat, 2024-10-05 at 22:26 +0200, Ilya Leoshkevich wrote: > On Sat, 2024-10-05 at 12:51 -0700, Richard Henderson wrote: > > On 9/25/24 00:43, Ilya Leoshkevich wrote: > > > On Tue, 2024-09-24 at 13:46 +0200, Richard Henderson wrote: > > > > On 9/23/24 18:12, Ilya Leoshkevich wrote: > > > > > Hi, >

Re: [PATCH 00/18] Stop all qemu-cpu threads on a breakpoint

2024-10-05 Thread Ilya Leoshkevich
On Sat, 2024-10-05 at 12:51 -0700, Richard Henderson wrote: > On 9/25/24 00:43, Ilya Leoshkevich wrote: > > On Tue, 2024-09-24 at 13:46 +0200, Richard Henderson wrote: > > > On 9/23/24 18:12, Ilya Leoshkevich wrote: > > > > Hi, > > > > > > > > On reporting a breakpoint in a non-non-stop mode, GDB

Re: [PATCH 00/18] Stop all qemu-cpu threads on a breakpoint

2024-10-05 Thread Richard Henderson
On 9/25/24 00:43, Ilya Leoshkevich wrote: On Tue, 2024-09-24 at 13:46 +0200, Richard Henderson wrote: On 9/23/24 18:12, Ilya Leoshkevich wrote: Hi, On reporting a breakpoint in a non-non-stop mode, GDB remotes must stop all threads. Currently qemu-user doesn't do that, breaking the debugging s

Re: [PATCH 00/18] Stop all qemu-cpu threads on a breakpoint

2024-09-25 Thread Ilya Leoshkevich
On Tue, 2024-09-24 at 13:46 +0200, Richard Henderson wrote: > On 9/23/24 18:12, Ilya Leoshkevich wrote: > > Hi, > > > > On reporting a breakpoint in a non-non-stop mode, GDB remotes must > > stop > > all threads. Currently qemu-user doesn't do that, breaking the > > debugging session for at least

Re: [PATCH 00/18] Stop all qemu-cpu threads on a breakpoint

2024-09-24 Thread Richard Henderson
On 9/23/24 18:12, Ilya Leoshkevich wrote: Hi, On reporting a breakpoint in a non-non-stop mode, GDB remotes must stop all threads. Currently qemu-user doesn't do that, breaking the debugging session for at least two reasons: concurrent access to the GDB socket, and an assertion within GDB [1].

Re: [PATCH 00/18] Stop all qemu-cpu threads on a breakpoint

2024-09-23 Thread Ilya Leoshkevich
On Mon, 2024-09-23 at 18:12 +0200, Ilya Leoshkevich wrote: > Hi, > > On reporting a breakpoint in a non-non-stop mode, GDB remotes must > stop > all threads. Currently qemu-user doesn't do that, breaking the > debugging session for at least two reasons: concurrent access to the > GDB socket, and a

[PATCH 00/18] Stop all qemu-cpu threads on a breakpoint

2024-09-23 Thread Ilya Leoshkevich
Hi, On reporting a breakpoint in a non-non-stop mode, GDB remotes must stop all threads. Currently qemu-user doesn't do that, breaking the debugging session for at least two reasons: concurrent access to the GDB socket, and an assertion within GDB [1]. This series fixes this by importing pause_al