Skip to content

accel/tcg: Extract user APIs out of 'exec/[cpu, exec]-all.h'

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18exec: Introduce 'user/guest-host.h' headerinclude/exec/cpu-all.h include/exec/cpu_ldst.h include/user/guest-host.h+89 -791 reply
2/18linux-user/aarch64: Include missing 'user/abitypes.h' headerlinux-user/aarch64/mte_user_helper.h+2 -01 reply
3/18include: Include missing 'qemu/clang-tsa.h' headerblock/create.c include/block/block_int-common.h tests/unit/test-bdrv-drain.c +2 more+5 -03 replies
4/18accel/tcg: Declare mmap_[un]lock() in 'exec/page-protection.h'accel/tcg/cpu-exec.c accel/tcg/translate-all.c accel/tcg/watchpoint.c +4 more+29 -171 reply
5/18accel/tcg: Use tb_page_addr_t type in page_unprotect()accel/tcg/user-exec.c include/exec/translate-all.h+2 -21 reply
6/18accel/tcg: Move page_[un]protect() to 'user/page-protection.h'accel/tcg/internal-target.h accel/tcg/user-exec.c include/exec/translate-all.h +2 more+23 -71 reply
7/18system: Remove unnecessary 'exec/translate-all.h' includecpu-target.c system/physmem.c+0 -21 reply
8/18accel/tcg: Move 'exec/translate-all.h' -> 'tb-internal.h'accel/tcg/cputlb.c accel/tcg/internal-target.h accel/tcg/tb-internal.h +5 more+20 -333 replies
9/18accel/tcg: Un-inline log_pc()accel/tcg/cpu-exec.c accel/tcg/internal-target.h+11 -101 reply
10/18accel/tcg: Move TranslationBlock declarations to 'tb-internal.h'accel/tcg/cpu-exec.c accel/tcg/cputlb.c accel/tcg/internal-target.h +4 more+44 -321 reply
11/18accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (1/4)bsd-user/main.c bsd-user/mmap.c include/exec/cpu-all.h +4 more+13 -51 reply
12/18accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (2/4)bsd-user/bsd-mem.h include/exec/cpu-all.h include/user/page-protection.h +1 more+61 -551 reply
13/18accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (3/4)bsd-user/qemu.h include/exec/cpu-all.h include/user/page-protection.h +4 more+23 -121 reply
14/18accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (4/4)accel/tcg/tb-maint.c bsd-user/signal.c cpu-target.c +6 more+15 -71 reply
15/18user: Forward declare target_cpu_copy_regs structurelinux-user/aarch64/cpu_loop.c linux-user/alpha/cpu_loop.c linux-user/arm/cpu_loop.c +15 more+21 -181 reply
16/18user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h'include/user/cpu_loop.h linux-user/aarch64/cpu_loop.c linux-user/alpha/cpu_loop.c +17 more+21 -211 reply
17/18user: Declare cpu_loop() once in 'user/cpu_loop.h'bsd-user/qemu.h include/user/cpu_loop.h linux-user/user-internals.h+3 -21 reply
18/18user: Move various declarations out of 'exec/exec-all.h'accel/tcg/user-exec.c bsd-user/signal.c include/exec/exec-all.h +3 more+59 -541 reply

Reviews trailers per patch

All 18 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPierrick BouvierRichard Henderson
SeriesR-b
1/18R-b R-b R-b
2/18R-b
3/18R-b
4/18R-b
5/18R-b
6/18R-b
7/18R-b
8/18R-b
9/18R-b
10/18R-b
11/18R-b
12/18R-b
13/18R-b
14/18R-b
15/18R-b
16/18R-b
17/18R-b
18/18R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/18] accel/tcg: Extract user APIs out of 'exec/[cpu, exec]-all.h'

The goal of this series is to clarify user emulation APIs, and clean the mixed bag of exec/foo-all.h headers.

Move user specific declarations out of the generic
- "exec/cpu-all.h",
- "exec/cpu_ldst.h",
- "exec/exec-all.h" and
- "exec/translate-all.h"
to the generic:
- "accel/tcg/tb-internal.h" and
- "exec/page-protection.h"
and the user specific:
- "user/cpu_loop.h",
- "user/guest-host.h" and
- "user/page-protection.h"

Philippe Mathieu-Daudé (18):
exec: Introduce 'user/guest-host.h' header linux-user/aarch64: Include missing 'user/abitypes.h' header
include: Include missing 'qemu/clang-tsa.h' header accel/tcg: Declare mmap_[un]lock() in 'exec/page-protection.h' accel/tcg: Use tb_page_addr_t type in page_unprotect() accel/tcg: Move page_[un]protect() to 'user/page-protection.h'
system: Remove unnecessary 'exec/translate-all.h' include accel/tcg: Move 'exec/translate-all.h' -> 'tb-internal.h' accel/tcg: Un-inline log_pc()
accel/tcg: Move TranslationBlock declarations to 'tb-internal.h' accel/tcg: Move user-related declarations out of 'exec/cpu-all.h'

    (1/4)
  accel/tcg: Move user-related declarations out of 'exec/cpu-all.h'
    (2/4)
  accel/tcg: Move user-related declarations out of 'exec/cpu-all.h'
    (3/4)
  accel/tcg: Move user-related declarations out of 'exec/cpu-all.h'
    (4/4)

user: Forward declare target_cpu_copy_regs structure
user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h'
user: Declare cpu_loop() once in 'user/cpu_loop.h'
user: Move various declarations out of 'exec/exec-all.h'

 accel/tcg/internal-target.h          |  43 +---------
 accel/tcg/tb-internal.h              |  53 +++++++++++++
 bsd-user/bsd-mem.h                   |   1 +
 bsd-user/qemu.h                      |   3 +-
 include/block/block_int-common.h     |   1 +
 include/exec/cpu-all.h               | 112 +--------------------------
 include/exec/cpu_ldst.h              |  47 +----------
 include/exec/exec-all.h              |  72 +----------------
 include/exec/page-protection.h       |  24 ++++++
 include/exec/translate-all.h         |  33 --------
 include/user/cpu_loop.h              |  90 +++++++++++++++++++++
 include/user/guest-host.h            |  87 +++++++++++++++++++++
 include/user/page-protection.h       |  99 +++++++++++++++++++++++
 linux-user/aarch64/mte_user_helper.h |   2 +
 linux-user/cpu_loop-common.h         |  31 --------
 linux-user/qemu.h                    |   1 +
 linux-user/user-internals.h          |   1 -
 accel/tcg/cpu-exec.c                 |  13 ++++
 accel/tcg/cputlb.c                   |   3 +-
 accel/tcg/tb-maint.c                 |   6 +-
 accel/tcg/translate-all.c            |   4 +-
 accel/tcg/translator.c               |   1 +
 accel/tcg/user-exec.c                |   6 +-
 accel/tcg/watchpoint.c               |   3 +-
 block/create.c                       |   1 +
 bsd-user/main.c                      |   1 +
 bsd-user/mmap.c                      |   1 +
 bsd-user/signal.c                    |   2 +
 cpu-target.c                         |   2 +-
 linux-user/aarch64/cpu_loop.c        |   4 +-
 linux-user/alpha/cpu_loop.c          |   4 +-
 linux-user/arm/cpu_loop.c            |   5 +-
 linux-user/elfload.c                 |   2 +-
 linux-user/flatload.c                |   1 +
 linux-user/hexagon/cpu_loop.c        |   4 +-
 linux-user/hppa/cpu_loop.c           |   4 +-
 linux-user/i386/cpu_loop.c           |   4 +-
 linux-user/loongarch64/cpu_loop.c    |   4 +-
 linux-user/m68k/cpu_loop.c           |   4 +-
 linux-user/main.c                    |   3 +-
 linux-user/microblaze/cpu_loop.c     |   4 +-
 linux-user/mips/cpu_loop.c           |   4 +-
 linux-user/mmap.c                    |   1 +
 linux-user/openrisc/cpu_loop.c       |   4 +-
 linux-user/ppc/cpu_loop.c            |   4 +-
 linux-user/riscv/cpu_loop.c          |   4 +-
 linux-user/s390x/cpu_loop.c          |   4 +-
 linux-user/sh4/cpu_loop.c            |   4 +-
 linux-user/signal.c                  |   2 +
 linux-user/sparc/cpu_loop.c          |   4 +-
 linux-user/syscall.c                 |   3 +-
 linux-user/xtensa/cpu_loop.c         |   4 +-
 system/physmem.c                     |   1 -
 target/arm/helper.c                  |   1 +
 target/arm/tcg/helper-a64.c          |   3 +
 target/arm/tcg/mte_helper.c          |   4 +
 target/arm/tcg/sve_helper.c          |   3 +
 target/hppa/op_helper.c              |   3 +
 target/s390x/tcg/mem_helper.c        |   4 +-
 target/sparc/ldst_helper.c           |   3 +
 tests/unit/test-bdrv-drain.c         |   1 +
 tests/unit/test-block-iothread.c     |   1 +
 util/qemu-thread-posix.c             |   1 +
 63 files changed, 467 insertions(+), 382 deletions(-)
 create mode 100644 accel/tcg/tb-internal.h
 delete mode 100644 include/exec/translate-all.h
 create mode 100644 include/user/cpu_loop.h
 create mode 100644 include/user/guest-host.h
 create mode 100644 include/user/page-protection.h
 delete mode 100644 linux-user/cpu_loop-common.h
Signature · 1 line
2.45.2