Re: [PATCH v2 2/4] cpus: Make {start,end}_exclusive() recursive

2023-02-14 Thread Alex Bennée
Ilya Leoshkevich writes: > Currently dying to one of the core_dump_signal()s deadlocks, because > dump_core_and_abort() calls start_exclusive() two times: first via > stop_all_tasks(), and then via preexit_cleanup() -> > qemu_plugin_user_exit(). > > There are a number of ways to solve this: res

Re: [PATCH v2 2/4] cpus: Make {start,end}_exclusive() recursive

2023-02-13 Thread Richard Henderson
On 2/13/23 02:52, Ilya Leoshkevich wrote: Currently dying to one of the core_dump_signal()s deadlocks, because dump_core_and_abort() calls start_exclusive() two times: first via stop_all_tasks(), and then via preexit_cleanup() -> qemu_plugin_user_exit(). There are a number of ways to solve this:

[PATCH v2 2/4] cpus: Make {start,end}_exclusive() recursive

2023-02-13 Thread Ilya Leoshkevich
Currently dying to one of the core_dump_signal()s deadlocks, because dump_core_and_abort() calls start_exclusive() two times: first via stop_all_tasks(), and then via preexit_cleanup() -> qemu_plugin_user_exit(). There are a number of ways to solve this: resume after dumping core; check cpu_in_exc