Re: [PATCH v3 1/2] cpu: expose qemu_cpu_list_lock for lock-guard use

2023-04-29 Thread Philippe Mathieu-Daudé
On 27/4/23 04:09, Jamie Iles wrote: Expose qemu_cpu_list_lock globally so that we can use WITH_QEMU_LOCK_GUARD and QEMU_LOCK_GUARD to simplify a few code paths now and in future. Signed-off-by: Jamie Iles --- cpus-common.c | 2 +- include/exec/cpu-common.h | 1 + linux-user/el

Re: [PATCH v3 1/2] cpu: expose qemu_cpu_list_lock for lock-guard use

2023-04-27 Thread Richard Henderson
On 4/27/23 03:09, Jamie Iles wrote: Expose qemu_cpu_list_lock globally so that we can use WITH_QEMU_LOCK_GUARD and QEMU_LOCK_GUARD to simplify a few code paths now and in future. Signed-off-by: Jamie Iles --- cpus-common.c | 2 +- include/exec/cpu-common.h | 1 + linux-user/elf

[PATCH v3 1/2] cpu: expose qemu_cpu_list_lock for lock-guard use

2023-04-27 Thread Jamie Iles
Expose qemu_cpu_list_lock globally so that we can use WITH_QEMU_LOCK_GUARD and QEMU_LOCK_GUARD to simplify a few code paths now and in future. Signed-off-by: Jamie Iles --- cpus-common.c | 2 +- include/exec/cpu-common.h | 1 + linux-user/elfload.c | 12 ++-- migration