Skip to content

target/s390x: Prohibit target_ulong and TARGET_PAGE_SIZE uses

Philippe Mathieu-Daudé qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 3 repliesIn review
  2. v29 patches 16 repliesSuperseded
  3. v118 patches 23 repliesSuperseded

Changes in v3 from the cover letter

- Added R-b/A-b tags
- Use hwaddr in mmu_translate_real (Eric)
- Add gen_features_h to s390x_common_system_ss[] (Pierrick)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10target/s390x: Use address_space_ldl_be() in read_table_entry()target/s390x/mmu_helper.c+4 -71 reply
2/10target/s390x: Rename get_phys_page_debug() @vaddr argument as @v_addrtarget/s390x/helper.c+3 -30 replies
3/10target/s390x: Replace %target_ulong -> %vaddr where appropriatetarget/s390x/helper.c target/s390x/mmu_helper.c target/s390x/s390x-internal.h +1 more+7 -50 replies
4/10target/s390x: Replace %target_ulong -> %hwaddr where appropriatetarget/s390x/helper.c target/s390x/mmu_helper.c target/s390x/s390x-internal.h +1 more+17 -160 replies
5/10target/s390x: Un-inline KVM Protected Virtualization stubstarget/s390x/kvm/pv.h target/s390x/kvm/stubs.c+94 -270 replies
6/10target/s390x: Add more unreachable KVM stubstarget/s390x/kvm/stubs.c+75 -10 replies
7/10target/s390x: Build system units in common source settarget/s390x/meson.build target/s390x/tcg/meson.build+8 -20 replies
8/10target/s390x: Expand TCGv type as 64-bit targettarget/s390x/tcg/translate.c+3 -30 replies
9/10target/s390x: Expand tcg_gen_qemu_ld/st_tl() as 64-bit targettarget/s390x/tcg/translate.c+27 -270 replies
10/10target/s390x: Expand tcg_global_mem_new() -> tcg_global_mem_new_i64()target/s390x/tcg/translate.c+3 -30 replies

Reviews trailers per patch

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

PatchThomas HuthEric Farman
1/10R-b R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b R-b
6/10A-b R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

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

Read the v3 thread

Cover letter [PATCH v3 00/10] target/s390x: Prohibit target_ulong and TARGET_PAGE_SIZE uses

Series fully reviewed (Thomas if you don't mind I'll merge it via my single-binary tree).

Since v2:
- Added R-b/A-b tags
- Use hwaddr in mmu_translate_real (Eric)
- Add gen_features_h to s390x_common_system_ss[] (Pierrick)

Since v1:
- Drop merged patches
- Added R-b/A-b tags
- Use address_space_ldQ_be() in read_table_entry()
- One patch for vaddr replacement and another for hwaddr
- Do not remove the TARGET_PAGE_SIZE use in ioinst.c
- Expand TCG definitions for fixed 64-bit target

v1 cover:
- Restrict WatchPoint API to TCG
- Replace target_ulong uses by vaddr / hwaddr / uint64_t
- Remove the single TARGET_PAGE_SIZE
- Remove CONFIG_KVM from headers
- Compiles objects as target_common_system_arch, effectively forbidding further target_ulong / TARGET_PAGE_SIZE uses.

Philippe Mathieu-Daudé (10):
target/s390x: Use address_space_ldl_be() in read_table_entry() target/s390x: Rename get_phys_page_debug() @vaddr argument as @v_addr target/s390x: Replace %target_ulong -> %vaddr where appropriate target/s390x: Replace %target_ulong -> %hwaddr where appropriate target/s390x: Un-inline KVM Protected Virtualization stubs target/s390x: Add more unreachable KVM stubs
target/s390x: Build system units in common source set target/s390x: Expand TCGv type as 64-bit target target/s390x: Expand tcg_gen_qemu_ld/st_tl() as 64-bit target target/s390x: Expand tcg_global_mem_new() -> tcg_global_mem_new_i64()

 target/s390x/kvm/pv.h          |  27 ------
 target/s390x/s390x-internal.h  |  14 +--
 target/s390x/helper.c          |  10 +-
 target/s390x/kvm/stubs.c       | 170 ++++++++++++++++++++++++++++++++-
 target/s390x/mmu_helper.c      |  33 +++----
 target/s390x/tcg/excp_helper.c |   3 +-
 target/s390x/tcg/translate.c   |  66 ++++++-------
 target/s390x/meson.build       |   8 +-
 target/s390x/tcg/meson.build   |   2 +-
 9 files changed, 240 insertions(+), 93 deletions(-)
Signature · 1 line
2.52.0