Skip to content

target: Remove remnant legacy cpu_physical_memory_*() calls

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6target/i386/monitor: Propagate CPU address space to 'info mem' handlerstarget/i386/monitor.c+21 -171 reply
2/6target/i386/monitor: Replace legacy cpu_physical_memory_read() callstarget/i386/monitor.c+44 -521 reply
3/6target/riscv/kvm: Replace legacy cpu_physical_memory_read/write() callstarget/riscv/kvm/kvm-cpu.c+4 -21 reply
4/6target/riscv/monitor: Replace legacy cpu_physical_memory_read() calltarget/riscv/monitor.c+8 -41 reply
5/6target/xtensa: Replace legacy cpu_physical_memory_[un]map() callstarget/xtensa/xtensa-semi.c+7 -41 reply
6/6target/sparc: Reduce inclusions of 'exec/cpu-common.h'target/sparc/cpu.h target/sparc/helper.c target/sparc/int64_helper.c+2 -11 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchManos Pitsidianakis
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-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/6] target: Remove remnant legacy cpu_physical_memory_*() calls

The cpu_physical_memory API is legacy (see commit b7ecba0f6f6):

``cpu_physical_memory_*``
~~~~~~~~~~~~~~~~~~~~~~~~~

These are convenience functions which are identical to ``address_space_*`` but operate specifically on the system address space, always pass a ``MEMTXATTRS_UNSPECIFIED`` set of memory attributes and ignore whether the memory transaction succeeded or failed. For new code they are better avoided:
...

After converting the target/s390x [*], this series convert the remaining targets.

Based-on: <[email protected]>

[*] https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (6):
target/i386/monitor: Propagate CPU address space to 'info mem'
handlers
target/i386/monitor: Replace legacy cpu_physical_memory_read() calls target/riscv/kvm: Replace legacy cpu_physical_memory_read/write()
calls
target/riscv/monitor: Replace legacy cpu_physical_memory_read() call target/xtensa: Replace legacy cpu_physical_memory_[un]map() calls target/sparc: Reduce inclusions of 'exec/cpu-common.h'

 target/sparc/cpu.h          |   1 -
 target/i386/monitor.c       | 134 +++++++++++++++++-------------------
 target/riscv/kvm/kvm-cpu.c  |   6 +-
 target/riscv/monitor.c      |  12 ++--
 target/sparc/helper.c       |   1 +
 target/sparc/int64_helper.c |   1 +
 target/xtensa/xtensa-semi.c |  11 +--
 7 files changed, 86 insertions(+), 80 deletions(-)
Signature · 1 line
2.51.0