Re: [PATCH v4 09/13] accel/all: Extract common_vcpu_thread_create()

2022-03-23 Thread Richard Henderson
On 3/23/22 10:17, Philippe Mathieu-Daudé wrote: +void rr_create_vcpu_thread_postcheck(CPUState *cpu) { -char thread_name[VCPU_THREAD_NAME_SIZE]; static QemuCond *single_tcg_halt_cond; -static QemuThread *single_tcg_cpu_thread; - -if (!single_tcg_cpu_thread) { -cpu->thr

Re: [PATCH v4 09/13] accel/all: Extract common_vcpu_thread_create()

2022-03-23 Thread Richard Henderson
On 3/23/22 10:17, Philippe Mathieu-Daudé wrote: From: Philippe Mathieu-Daudé All accelerators implement a very similar create_vcpu_thread() handler. Extract the common part as common_vcpu_thread_create(), which only requires the AccelOpsClass::vcpu_thread_fn() routine and the accelerator AccelO

[PATCH v4 09/13] accel/all: Extract common_vcpu_thread_create()

2022-03-23 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé All accelerators implement a very similar create_vcpu_thread() handler. Extract the common part as common_vcpu_thread_create(), which only requires the AccelOpsClass::vcpu_thread_fn() routine and the accelerator AccelOpsClass::thread_name for debugging purpose. The s