Skip to content

exec: Split some user-mode specific declarations from 'exec/exec-all.h'

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9accel/tcg: Add missing 'tcg/tcg.h' headeraccel/tcg/tcg-accel-ops-icount.c accel/tcg/tcg-accel-ops-mttcg.c accel/tcg/tcg-accel-ops-rr.c +1 more+4 -02 replies
2/9coverity-scan: Cover common-user/scripts/coverity-scan/COMPONENTS.md+1 -14 replies
3/9include: Move exec/user/ to user/bsd-user/qemu.h include/exec/cpu-all.h include/user/abitypes.h +6 more+11 -111 reply
4/9linux-user/exit: Add missing 'qemu/plugin.h' headerlinux-user/exit.c+1 -01 reply
5/9linux-user/cpu_loop: Add missing 'exec/cpu-all.h' headerlinux-user/cpu_loop-common.h+1 -01 reply
6/9exec: Define MMUAccessType in 'exec/cpu-tlb.h' headerinclude/exec/cpu-defs.h include/exec/cpu-tlb.h include/exec/cpu_ldst.h +10 more+34 -62 replies
7/9user: Declare target-specific prototypes in 'user/cpu-target.h'accel/tcg/user-exec.c bsd-user/elfload.c bsd-user/main.c +31 more+87 -412 replies
8/9user: Declare target-agnostic prototypes in 'user/cpu-common.h'bsd-user/qemu.h include/exec/cpu-all.h include/exec/exec-all.h +4 more+39 -260 replies
9/9user: Share preexit_cleanup() with linux and bsd implementationscommon-user/exit.c common-user/meson.build linux-user/meson.build+1 -11 reply

Reviews trailers per patch

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

PatchRichard Henderson
1/9
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9
7/9
8/9
9/9R-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 0/9] exec: Split some user-mode specific declarations from 'exec/exec-all.h'

- Add missing headers
- Merge exec/user/ to user/
- Extract MMUAccessType from QOM "hw/core/cpu.h" to "exec/cpu-tlb.h"
- Extract user-specific declarations to "user/cpu-{common,target}.h"
- Share preexit_cleanup() from Linux with BSD

More to come, but flushing for early feedback.

Based-on: <[email protected]>

Philippe Mathieu-Daudé (9):
accel/tcg: Add missing 'tcg/tcg.h' header
coverity-scan: Cover common-user/
include: Move exec/user/ to user/
linux-user/exit: Add missing 'qemu/plugin.h' header linux-user/cpu_loop: Add missing 'exec/cpu-all.h' header
exec: Define MMUAccessType in 'exec/cpu-tlb.h' header
user: Declare target-specific prototypes in 'user/cpu-target.h'
user: Declare target-agnostic prototypes in 'user/cpu-common.h'
user: Share preexit_cleanup() with linux and bsd implementations

 accel/tcg/tcg-accel-ops-icount.c    |  1 +
 accel/tcg/tcg-accel-ops-mttcg.c     |  1 +
 accel/tcg/tcg-accel-ops-rr.c        |  1 +
 accel/tcg/tcg-accel-ops.c           |  1 +
 accel/tcg/user-exec.c               |  1 +
 bsd-user/elfload.c                  |  1 +
 bsd-user/main.c                     |  1 +
 bsd-user/qemu.h                     |  6 ++--
 bsd-user/signal.c                   |  1 +
 {linux-user => common-user}/exit.c  |  4 +--
 common-user/meson.build             |  1 +
 include/exec/cpu-all.h              |  5 ++-
 include/exec/cpu-defs.h             |  1 +
 include/exec/cpu-tlb.h              | 16 +++++++++
 include/exec/cpu_ldst.h             |  1 +
 include/exec/exec-all.h             | 54 ++--------------------------
 include/hw/core/cpu.h               |  6 ----
 include/hw/core/tcg-cpu-ops.h       |  1 +
 include/{exec => }/user/abitypes.h  |  0
 include/user/cpu-common.h           | 36 +++++++++++++++++++
 include/user/cpu-target.h           | 56 +++++++++++++++++++++++++++++
 include/user/safe-syscall.h         |  6 ++--
 include/{exec => }/user/thunk.h     |  2 +-
 linux-user/aarch64/cpu_loop.c       |  1 +
 linux-user/alpha/cpu_loop.c         |  1 +
 linux-user/arm/cpu_loop.c           |  1 +
 linux-user/arm/signal.c             |  1 +
 linux-user/cpu_loop-common.h        |  1 +
 linux-user/cris/cpu_loop.c          |  1 +
 linux-user/elfload.c                |  1 +
 linux-user/hexagon/cpu_loop.c       |  1 +
 linux-user/hppa/cpu_loop.c          |  1 +
 linux-user/hppa/signal.c            |  1 +
 linux-user/i386/cpu_loop.c          |  1 +
 linux-user/linuxload.c              |  1 +
 linux-user/m68k/cpu_loop.c          |  1 +
 linux-user/main.c                   |  1 +
 linux-user/meson.build              |  1 -
 linux-user/microblaze/cpu_loop.c    |  1 +
 linux-user/mips/cpu_loop.c          |  1 +
 linux-user/mmap.c                   |  1 +
 linux-user/nios2/cpu_loop.c         |  1 +
 linux-user/openrisc/cpu_loop.c      |  1 +
 linux-user/ppc/cpu_loop.c           |  1 +
 linux-user/ppc/signal.c             |  1 +
 linux-user/qemu.h                   |  2 +-
 linux-user/riscv/cpu_loop.c         |  1 +
 linux-user/s390x/cpu_loop.c         |  1 +
 linux-user/sh4/cpu_loop.c           |  1 +
 linux-user/signal.c                 |  1 +
 linux-user/sparc/cpu_loop.c         |  1 +
 linux-user/syscall.c                |  1 +
 linux-user/thunk.c                  |  2 +-
 linux-user/uaccess.c                |  1 +
 linux-user/user-internals.h         | 12 +------
 linux-user/xtensa/cpu_loop.c        |  1 +
 scripts/coverity-scan/COMPONENTS.md |  2 +-
 target/arm/internals.h              |  1 +
 target/mips/internal.h              |  1 +
 target/ppc/internal.h               |  2 ++
 target/ppc/mmu-hash32.h             |  2 ++
 target/ppc/mmu-hash64.h             |  2 ++
 target/ppc/mmu-radix64.h            |  2 ++
 target/s390x/s390x-internal.h       |  2 ++
 64 files changed, 178 insertions(+), 85 deletions(-)
 rename {linux-user => common-user}/exit.c (95%)
 create mode 100644 include/exec/cpu-tlb.h
 rename include/{exec => }/user/abitypes.h (100%)
 create mode 100644 include/user/cpu-common.h
 create mode 100644 include/user/cpu-target.h
 rename include/{exec => }/user/thunk.h (99%)
Signature · 1 line
2.34.1