Skip to content

linux-user: Emulate /proc/cpuinfo on s390x

Ilya Leoshkevich qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4s390x/tcg: Fix CPU address returned by STIDPtarget/s390x/cpu_models.c target/s390x/cpu_models.h+11 -30 replies
2/4linux-user/elfload: Expose get_elf_hwcap() on s390xlinux-user/elfload.c linux-user/loader.h+5 -10 replies
3/4linux-user/elfload: Introduce elf_hwcap_str() on s390xlinux-user/elfload.c linux-user/loader.h+28 -00 replies
4/4linux-user: Emulate /proc/cpuinfo on s390xlinux-user/syscall.c+104 -20 replies

Reviews trailers per patch

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

PatchDavid Hildenbrand
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] linux-user: Emulate /proc/cpuinfo on s390x

v1: https://lists.gnu.org/archive/html/qemu-devel/2023-06/msg00299.html
v1 -> v2: Add output examples (David).
Simplify the CPU 0 special case (David).
Fix building on s390x hosts.

Hi,

This series introduces /proc/cpuinfo linux-user emulation for s390x. /proc/cpuinfo emulation already exists for sparc, hppa and riscv; this series follows the pattern established for these platforms.

Patch 1 is a fix for an issue that I noticed while looking for ways to get to the "identification" field.

Patches 2 and 3 introduce the necessary helpers.

Patch 4 is the actual implementation.

The trigger for this work is a bug report filed by Tulio [1], which has to do with the llvm-project testcases failing under qemu-user.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2211472

Best regards,
Ilya

Ilya Leoshkevich (4):
s390x/tcg: Fix CPU address returned by STIDP linux-user/elfload: Expose get_elf_hwcap() on s390x linux-user/elfload: Introduce elf_hwcap_str() on s390x
linux-user: Emulate /proc/cpuinfo on s390x

 linux-user/elfload.c      |  29 ++++++++++-
 linux-user/loader.h       |   5 ++
 linux-user/syscall.c      | 106 +++++++++++++++++++++++++++++++++++++-
 target/s390x/cpu_models.c |   4 +-
 target/s390x/cpu_models.h |  10 +++-
 5 files changed, 148 insertions(+), 6 deletions(-)
Signature · 1 line
2.40.1