Re: [PATCH v3 03/12] plugins: Check if vCPU is realized

2023-09-14 Thread Akihiko Odaki
On 2023/09/13 15:17, Philippe Mathieu-Daudé wrote: On 13/9/23 00:40, Akihiko Odaki wrote: The created member of CPUState tells if the vCPU thread is started, and will be always false for the user space emulation that manages threads independently. Per the docstring:  /**   * CPUState:  

Re: [PATCH v3 03/12] plugins: Check if vCPU is realized

2023-09-13 Thread Philippe Mathieu-Daudé
On 13/9/23 00:40, Akihiko Odaki wrote: The created member of CPUState tells if the vCPU thread is started, and will be always false for the user space emulation that manages threads independently. Per the docstring: /** * CPUState: * @created: Indicates whether the CPU thread has been

[PATCH v3 03/12] plugins: Check if vCPU is realized

2023-09-12 Thread Akihiko Odaki
The created member of CPUState tells if the vCPU thread is started, and will be always false for the user space emulation that manages threads independently. Use the realized member of DeviceState, which is valid for both of the system and user space emulation. Fixes: 54cb65d858 ("plugin: add