[PATCH 0/3] accel: Factor tcg_cpu_reset_hold() out of cpu-common.c

Philippe Mathieu-Daudé posted 3 patches 7 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230918104153.24433-1-philmd@linaro.org
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Riku Voipio <riku.voipio@iki.fi>, Eduardo Habkost <eduardo@habkost.net>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Yanan Wang <wangyanan55@huawei.com>, "Alex Bennée" <alex.bennee@linaro.org>, Alexandre Iooss <erdnaxe@crans.org>, Mahmoud Mandour <ma.mandourr@gmail.com>
include/exec/cpu-common.h  | 3 ---
include/exec/tb-flush.h    | 2 ++
include/hw/core/cpu.h      | 1 +
include/sysemu/accel-ops.h | 1 +
accel/stubs/tcg-stub.c     | 4 ----
accel/tcg/cputlb.c         | 1 +
accel/tcg/tcg-accel-ops.c  | 9 +++++++++
accel/tcg/translate-all.c  | 8 --------
accel/tcg/user-exec-stub.c | 4 ++++
hw/core/cpu-common.c       | 5 +----
plugins/core.c             | 1 -
softmmu/cpus.c             | 7 +++++++
12 files changed, 26 insertions(+), 20 deletions(-)
[PATCH 0/3] accel: Factor tcg_cpu_reset_hold() out of cpu-common.c
Posted by Philippe Mathieu-Daudé 7 months, 2 weeks ago
Hi,

We want to have exec/ code agnostic to accelerators.
still we use various call to TCG and KVM. This series
factor the TCG code from cpu_common_reset_hold() to an
accel-specific handler within AccelOpsClass.

Based-on: <20230915190009.68404-1-philmd@linaro.org>

Philippe Mathieu-Daudé (3):
  accel/tcg: Declare tcg_flush_jmp_cache() in 'exec/tb-flush.h'
  accel: Introduce cpu_exec_reset_hold()
  accel/tcg: Factor tcg_cpu_reset_hold() out

 include/exec/cpu-common.h  | 3 ---
 include/exec/tb-flush.h    | 2 ++
 include/hw/core/cpu.h      | 1 +
 include/sysemu/accel-ops.h | 1 +
 accel/stubs/tcg-stub.c     | 4 ----
 accel/tcg/cputlb.c         | 1 +
 accel/tcg/tcg-accel-ops.c  | 9 +++++++++
 accel/tcg/translate-all.c  | 8 --------
 accel/tcg/user-exec-stub.c | 4 ++++
 hw/core/cpu-common.c       | 5 +----
 plugins/core.c             | 1 -
 softmmu/cpus.c             | 7 +++++++
 12 files changed, 26 insertions(+), 20 deletions(-)

-- 
2.41.0


Re: [PATCH 0/3] accel: Factor tcg_cpu_reset_hold() out of cpu-common.c
Posted by Richard Henderson 7 months, 2 weeks ago
On 9/18/23 12:41, Philippe Mathieu-Daudé wrote:
> Philippe Mathieu-Daudé (3):
>    accel/tcg: Declare tcg_flush_jmp_cache() in 'exec/tb-flush.h'
>    accel: Introduce cpu_exec_reset_hold()
>    accel/tcg: Factor tcg_cpu_reset_hold() out

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~

Re: [PATCH 0/3] accel: Factor tcg_cpu_reset_hold() out of cpu-common.c
Posted by Anton Johansson via 7 months, 2 weeks ago
On 18/09/23, Philippe Mathieu-Daudé wrote:
> Hi,
> 
> We want to have exec/ code agnostic to accelerators.
> still we use various call to TCG and KVM. This series
> factor the TCG code from cpu_common_reset_hold() to an
> accel-specific handler within AccelOpsClass.
> 
> Based-on: <20230915190009.68404-1-philmd@linaro.org>
> 
> Philippe Mathieu-Daudé (3):
>   accel/tcg: Declare tcg_flush_jmp_cache() in 'exec/tb-flush.h'
>   accel: Introduce cpu_exec_reset_hold()
>   accel/tcg: Factor tcg_cpu_reset_hold() out
> 
>  include/exec/cpu-common.h  | 3 ---
>  include/exec/tb-flush.h    | 2 ++
>  include/hw/core/cpu.h      | 1 +
>  include/sysemu/accel-ops.h | 1 +
>  accel/stubs/tcg-stub.c     | 4 ----
>  accel/tcg/cputlb.c         | 1 +
>  accel/tcg/tcg-accel-ops.c  | 9 +++++++++
>  accel/tcg/translate-all.c  | 8 --------
>  accel/tcg/user-exec-stub.c | 4 ++++
>  hw/core/cpu-common.c       | 5 +----
>  plugins/core.c             | 1 -
>  softmmu/cpus.c             | 7 +++++++
>  12 files changed, 26 insertions(+), 20 deletions(-)
> 
> -- 
> 2.41.0
> 
Series:
Reviewed-by: Anton Johansson <anjo@rev.ng>