Skip to content

accel/tcg: refactor the cpu-exec loop

Alex Bennée qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10metadata: add .git-blame-ignore-revs.git-blame-ignore-revs+18 -01 reply
2/10accel/tcg: move cpu_reloading_memory_map into cpu-exec-softmmuaccel/tcg/cpu-exec-common.c accel/tcg/cpu-exec-softmmu.c accel/tcg/meson.build+60 -306 replies
3/10accel/tcg: move i386 halt handling to sysemu_opsaccel/tcg/cpu-exec.c include/hw/core/sysemu-cpu-ops.h target/i386/cpu-internal.h +2 more+22 -116 replies
4/10accel/tcg: don't bother with ifdef for CPU_DUMP_CCOPaccel/tcg/cpu-exec.c+1 -42 replies
5/10accel/tcg: remove the fake_user_interrupt guardsaccel/tcg/cpu-exec.c include/hw/core/tcg-cpu-ops.h+8 -81 reply
6/10includes: move irq definitions out of cpu-all.hinclude/exec/cpu-all.h include/exec/cpu-irq.h include/exec/poison.h+84 -644 replies
7/10accel/tcg: use QEMU_IOTHREAD_LOCK_GUARD to cover the exitaccel/tcg/cpu-exec.c+3 -92 replies
8/10accel/tcg: push i386 specific hacks into handle_cpu_interrupt callbackaccel/tcg/cpu-exec-softmmu.c accel/tcg/cpu-exec.c include/hw/core/sysemu-cpu-ops.h +3 more+56 -213 replies
9/10accel/tcg: re-inline the filtering of virtual IRQs but data drivenaccel/tcg/cpu-exec.c include/hw/core/tcg-cpu-ops.h target/i386/tcg/tcg-cpu.c+15 -202 replies
10/10accel/tcg: remove unused includesaccel/tcg/cpu-exec.c+0 -42 replies

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéRichard HendersonAlessandro Di Federico
1/10R-b T-b
2/10R-b R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b R-b
7/10R-b R-b
8/10
9/10R-b
10/10R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/10] accel/tcg: refactor the cpu-exec loop

This is an RFC for something I was playing with over the weekend to try and reduce target specific details polluting cpu-exec. In the end it does get rid of TARGET_I386 #ifdef'ery but I couldn't go further to just building one version of cpu-exec-user and cpu-exec-softmmu because there are still per target differences.

Anyway what do people think?

Alex Bennée (10):
metadata: add .git-blame-ignore-revs
accel/tcg: move cpu_reloading_memory_map into cpu-exec-softmmu accel/tcg: move i386 halt handling to sysemu_ops accel/tcg: don't bother with ifdef for CPU_DUMP_CCOP accel/tcg: remove the fake_user_interrupt guards
includes: move irq definitions out of cpu-all.h
accel/tcg: use QEMU_IOTHREAD_LOCK_GUARD to cover the exit accel/tcg: push i386 specific hacks into handle_cpu_interrupt callback accel/tcg: re-inline the filtering of virtual IRQs but data driven accel/tcg: remove unused includes

 include/exec/cpu-all.h           |  52 +--------------
 include/exec/cpu-irq.h           |  83 +++++++++++++++++++++++
 include/exec/poison.h            |  13 ----
 include/hw/core/sysemu-cpu-ops.h |  16 +++++
 include/hw/core/tcg-cpu-ops.h    |   7 +-
 target/i386/cpu-internal.h       |   2 +
 accel/tcg/cpu-exec-common.c      |  30 ---------
 accel/tcg/cpu-exec-softmmu.c     |  66 +++++++++++++++++++
 accel/tcg/cpu-exec.c             | 109 ++++++++++---------------------
 target/i386/cpu-sysemu.c         |  29 ++++++++
 target/i386/cpu.c                |   2 +
 target/i386/tcg/tcg-cpu.c        |   1 +
 .git-blame-ignore-revs           |  18 +++++
 accel/tcg/meson.build            |  10 +++
 14 files changed, 267 insertions(+), 171 deletions(-)
 create mode 100644 include/exec/cpu-irq.h
 create mode 100644 accel/tcg/cpu-exec-softmmu.c
 create mode 100644 .git-blame-ignore-revs
Signature · 1 line
2.39.2