Re: [RFC PATCH] gdbstub: handle a potentially racing TaskState

2021-11-20 Thread Richard Henderson
On 11/19/21 3:51 PM, Alex Bennée wrote: When dealing with multi-threaded userspace programs there is a race condition with the addition of cpu->opaque (aka TaskState). This is due to cpu_copy calling cpu_create which updates the global vCPU list. However the task state isn't set until later. This

[RFC PATCH] gdbstub: handle a potentially racing TaskState

2021-11-19 Thread Alex Bennée
When dealing with multi-threaded userspace programs there is a race condition with the addition of cpu->opaque (aka TaskState). This is due to cpu_copy calling cpu_create which updates the global vCPU list. However the task state isn't set until later. This shouldn't be a problem because the new th