Skip to content

exec/cpu: Poison 'hwaddr' type in user-mode emulation

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11plugins: Restrict functions handling hwaddr to system-modeinclude/qemu/qemu-plugin.h plugins/api.c+4 -151 reply
2/11sysemu/accel: Restrict machine methods to system-modeinclude/sysemu/accel.h+2 -02 replies
3/11sysemu/tcg: Only declare tcg_allowed when TCG is availableinclude/sysemu/tcg.h+1 -12 replies
4/11sysemu/hvf: Only declare hvf_allowed when HVF is availableinclude/sysemu/hvf.h+3 -33 replies
5/11target/ppc: Restrict PPCVirtualHypervisorClass to system-modetarget/ppc/cpu.h target/ppc/kvm_ppc.h target/ppc/translate_init.inc.c+17 -131 reply
6/11target/s390x: Only compile decode_basedisp() on system-modetarget/s390x/internal.h+4 -01 reply
7/11target/s390x/helper: Clean ifdef'rytarget/s390x/helper.c+2 -52 replies
8/11target/s390x: Restrict system-mode declarationstarget/s390x/internal.h+6 -55 replies
9/11target/cpu: Restrict handlers using hwaddr type to system-modeinclude/hw/core/cpu.h target/alpha/cpu.h target/arm/cpu.h +16 more+62 -324 replies
10/11exec: Use 'cpu-common.h' instead of system-mode specific 'hwaddr.h'include/disas/disas.h include/hw/core/cpu.h include/sysemu/accel.h+3 -30 replies
11/11exec/cpu-common: Poison hwaddr type in user-mode emulationinclude/exec/cpu-common.h+6 -20 replies

Reviews trailers per patch

7 of 11 patches have a Reviewed-by or Acked-by.

PatchDavid GibsonDavid HildenbrandEdgar E. IglesiasCornelia HuckCameron Esfahani
1/11
2/11R-b R-b
3/11R-b R-b
4/11R-b R-b R-b
5/11A-b
6/11R-b
7/11R-b R-b
8/11
9/11A-b
10/11
11/11

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

Read the v1 thread

Cover letter [PATCH 00/11] exec/cpu: Poison 'hwaddr' type in user-mode emulation

The 'hwaddr' type declared in "exec/hwaddr.h" is meant for system-mode emulation only. Poison it in user-mode code.

Philippe Mathieu-Daudé (11):
plugins: Restrict functions handling hwaddr to system-mode sysemu/accel: Restrict machine methods to system-mode sysemu/tcg: Only declare tcg_allowed when TCG is available sysemu/hvf: Only declare hvf_allowed when HVF is available target/ppc: Restrict PPCVirtualHypervisorClass to system-mode target/s390x: Only compile decode_basedisp() on system-mode target/s390x/helper: Clean ifdef'ry
target/s390x: Restrict system-mode declarations target/cpu: Restrict handlers using hwaddr type to system-mode
exec: Use 'cpu-common.h' instead of system-mode specific 'hwaddr.h' exec/cpu-common: Poison hwaddr type in user-mode emulation

 include/disas/disas.h           |  2 +-
 include/exec/cpu-common.h       |  8 ++++++--
 include/hw/core/cpu.h           | 10 ++++++----
 include/qemu/qemu-plugin.h      |  2 ++
 include/sysemu/accel.h          |  4 +++-
 include/sysemu/hvf.h            |  6 +++---
 include/sysemu/tcg.h            |  2 +-
 target/alpha/cpu.h              |  4 +++-
 target/arm/cpu.h                |  6 +++---
 target/arm/internals.h          |  4 ++++
 target/cris/cpu.h               |  2 ++
 target/hppa/cpu.h               |  2 +-
 target/i386/cpu.h               |  2 ++
 target/m68k/cpu.h               |  7 ++++++-
 target/microblaze/cpu.h         |  5 ++++-
 target/mips/internal.h          |  2 +-
 target/nios2/cpu.h              |  5 ++++-
 target/openrisc/cpu.h           |  3 ++-
 target/ppc/cpu.h                |  6 +++---
 target/ppc/kvm_ppc.h            | 22 +++++++++++-----------
 target/riscv/cpu.h              | 20 ++++++++++----------
 target/s390x/internal.h         | 15 ++++++++++-----
 target/sh4/cpu.h                |  2 +-
 target/sparc/cpu.h              |  2 ++
 target/xtensa/cpu.h             | 12 +++++++-----
 plugins/api.c                   | 17 ++---------------
 target/hppa/cpu.c               |  4 +++-
 target/ppc/translate_init.inc.c |  6 +++++-
 target/s390x/helper.c           |  7 ++-----
 29 files changed, 110 insertions(+), 79 deletions(-)
Signature · 1 line
2.21.3