From: Ilya Leoshkevich <iii@linux.ibm.com>
To: Laurent Vivier <laurent@vivier.eu>,
David Hildenbrand <david@redhat.com>,
Thomas Huth <thuth@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org, qemu-s390x@nongnu.org,
Ilya Leoshkevich <iii@linux.ibm.com>
Subject: [PATCH v2 0/4] linux-user: Emulate /proc/cpuinfo on s390x
Date: Mon, 5 Jun 2023 13:39:46 +0200 [thread overview]
Message-ID: <20230605113950.1169228-1-iii@linux.ibm.com> (raw)
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(-)
--
2.40.1
next reply other threads:[~2023-06-05 11:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-05 11:39 Ilya Leoshkevich [this message]
2023-06-05 11:39 ` [PATCH v2 1/4] s390x/tcg: Fix CPU address returned by STIDP Ilya Leoshkevich
2023-06-05 11:39 ` [PATCH v2 2/4] linux-user/elfload: Expose get_elf_hwcap() on s390x Ilya Leoshkevich
2023-06-05 11:39 ` [PATCH v2 3/4] linux-user/elfload: Introduce elf_hwcap_str() " Ilya Leoshkevich
2023-06-05 11:39 ` [PATCH v2 4/4] linux-user: Emulate /proc/cpuinfo " Ilya Leoshkevich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230605113950.1169228-1-iii@linux.ibm.com \
--to=iii@linux.ibm.com \
--cc=david@redhat.com \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).