qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] target/s390x: Remove legacy cpu_physical_memory_*() calls
@ 2025-10-02  9:11 Philippe Mathieu-Daudé
  2025-10-02  9:11 ` [PATCH 1/9] target/s390x: Factor diag_iplb_write() out Philippe Mathieu-Daudé
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-10-02  9:11 UTC (permalink / raw)
  To: qemu-devel
  Cc: David Hildenbrand, qemu-s390x, Christian Borntraeger,
	Ilya Leoshkevich, Richard Henderson, Thomas Huth, Eric Farman,
	Matthew Rosato, Halil Pasic, Philippe Mathieu-Daudé

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:
  ...

This series convert the following methods in target/s390x/:
  - cpu_physical_memory_map()
  - cpu_physical_memory_unmap()
  - cpu_physical_memory_write()
to the address_space_*() equivalent.

Based-on: <20251001175448.18933-1-philmd@linaro.org>

Philippe Mathieu-Daudé (9):
  target/s390x: Factor diag_iplb_write() out
  target/s390x: Factor diag_iplb_read() out
  target/s390x: Replace legacy cpu_physical_memory_read/write() calls
  target/s390x: Replace legacy cpu_physical_memory_[un]map() calls (1/3)
  target/s390x: Propagate CPUS390XState to cpu_unmap_lowcore()
  target/s390x: Replace legacy cpu_physical_memory_[un]map() calls (2/3)
  target/s390x: Reduce s390_store_adtl_status() scope
  target/s390x: Reduce s390_store_status() scope
  target/s390x: Replace legacy cpu_physical_memory_[un]map() calls (3/3)

 target/s390x/s390x-internal.h  |   5 +-
 target/s390x/diag.c            |  55 ++++++++++-----
 target/s390x/helper.c          | 122 +++------------------------------
 target/s390x/sigp.c            | 117 +++++++++++++++++++++++++++++++
 target/s390x/tcg/excp_helper.c |  19 ++---
 target/s390x/tcg/misc_helper.c |   4 +-
 6 files changed, 179 insertions(+), 143 deletions(-)

-- 
2.51.0



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-10-06 14:45 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-02  9:11 [PATCH 0/9] target/s390x: Remove legacy cpu_physical_memory_*() calls Philippe Mathieu-Daudé
2025-10-02  9:11 ` [PATCH 1/9] target/s390x: Factor diag_iplb_write() out Philippe Mathieu-Daudé
2025-10-06 13:55   ` Thomas Huth
2025-10-02  9:11 ` [PATCH 2/9] target/s390x: Factor diag_iplb_read() out Philippe Mathieu-Daudé
2025-10-06 13:57   ` Thomas Huth
2025-10-02  9:11 ` [PATCH 3/9] target/s390x: Replace legacy cpu_physical_memory_read/write() calls Philippe Mathieu-Daudé
2025-10-06 14:04   ` Thomas Huth
2025-10-06 14:44     ` Philippe Mathieu-Daudé
2025-10-02  9:11 ` [PATCH 4/9] target/s390x: Replace legacy cpu_physical_memory_[un]map() calls (1/3) Philippe Mathieu-Daudé
2025-10-02  9:11 ` [PATCH 5/9] target/s390x: Propagate CPUS390XState to cpu_unmap_lowcore() Philippe Mathieu-Daudé
2025-10-06 14:08   ` Thomas Huth
2025-10-02  9:11 ` [PATCH 6/9] target/s390x: Replace legacy cpu_physical_memory_[un]map() calls (2/3) Philippe Mathieu-Daudé
2025-10-06 14:09   ` Thomas Huth
2025-10-02  9:11 ` [PATCH 7/9] target/s390x: Reduce s390_store_adtl_status() scope Philippe Mathieu-Daudé
2025-10-06 14:11   ` Thomas Huth
2025-10-02  9:11 ` [PATCH 8/9] target/s390x: Reduce s390_store_status() scope Philippe Mathieu-Daudé
2025-10-06 14:16   ` Thomas Huth
2025-10-02  9:11 ` [PATCH 9/9] target/s390x: Replace legacy cpu_physical_memory_[un]map() calls (3/3) Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).