From: Claudio Fontana <cfontana@suse.de>
To: Cornelia Huck <cohuck@redhat.com>, Thomas Huth <thuth@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>
Cc: David Hildenbrand <david@redhat.com>,
qemu-devel@nongnu.org, Halil Pasic <pasic@linux.ibm.com>,
Christian Borntraeger <borntraeger@de.ibm.com>,
qemu-s390x@nongnu.org, Claudio Fontana <cfontana@suse.de>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: [RFC v2 00/13] s390x cleanup
Date: Tue, 20 Apr 2021 12:36:03 +0200 [thread overview]
Message-ID: <20210420103616.32731-1-cfontana@suse.de> (raw)
Hi,
this is the next version of a cleanup series for s390x.
v1 -> v2: split more, stubs removal for KVM, kvm/ move, sysemu cpu models
* "hw/s390x: rename tod-qemu.c to tod-tcg.c"
- new patch (Cornelia)
* "hw/s390x: tod: make explicit checks for accelerators when initializing"
- now error out and abort() for an unknown accelerator. (Cornelia)
* "target/s390x: remove tcg-stub.c" : new patch split from
"target/s390x: start moving TCG-only code to tcg/" (Cornelia)
* "target/s390x: use kvm_enabled() to wrap call to kvm_s390_get_hpage_1m"
- new patch, allows the removal of kvm stubs
* "target/s390x: remove kvm-stub.c"
- new patch, we do not need stubs, as all calls are wrapped by
kvm_enabled(), and all prototypes are visible.
* "target/s390x: move kvm files into kvm/"
- new patch
* "target/s390x: split sysemu part of cpu models"
- new patch
* "MAINTAINERS: update s390x directories"
- new patch
Pre-requisite series (not really needed for now, only in further work down the line):
https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg07461.html
Motivation and higher level steps:
https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg04628.html
Comments welcome, thanks,
Claudio
Claudio Fontana (13):
hw/s390x: only build tod-qemu from the CONFIG_TCG build
hw/s390x: rename tod-qemu.c to tod-tcg.c
hw/s390x: tod: make explicit checks for accelerators when initializing
target/s390x: remove tcg-stub.c
target/s390x: start moving TCG-only code to tcg/
target/s390x: move sysemu-only code out to cpu-sysemu.c
target/s390x: split cpu-dump from helper.c
target/s390x: make helper.c sysemu-only
target/s390x: use kvm_enabled() to wrap call to kvm_s390_get_hpage_1m
target/s390x: remove kvm-stub.c
target/s390x: move kvm files into kvm/
target/s390x: split sysemu part of cpu models
MAINTAINERS: update s390x directories
include/hw/s390x/tod.h | 2 +-
target/s390x/{ => kvm}/kvm_s390x.h | 0
target/s390x/{internal.h => s390x-internal.h} | 8 +
target/s390x/{ => tcg}/s390-tod.h | 0
target/s390x/{ => tcg}/tcg_s390x.h | 0
target/s390x/{ => tcg}/vec.h | 0
hw/intc/s390_flic_kvm.c | 2 +-
hw/s390x/s390-stattrib-kvm.c | 2 +-
hw/s390x/tod-kvm.c | 2 +-
hw/s390x/{tod-qemu.c => tod-tcg.c} | 2 +-
hw/s390x/tod.c | 9 +-
hw/vfio/ap.c | 2 +-
target/s390x/arch_dump.c | 2 +-
target/s390x/cpu-dump.c | 131 ++++++
target/s390x/cpu-sysemu.c | 304 +++++++++++++
target/s390x/cpu.c | 287 +-----------
target/s390x/cpu_models.c | 421 +----------------
target/s390x/cpu_models_sysemu.c | 426 ++++++++++++++++++
target/s390x/cpu_models_user.c | 20 +
target/s390x/diag.c | 7 +-
target/s390x/gdbstub.c | 2 +-
target/s390x/helper.c | 113 +----
target/s390x/interrupt.c | 6 +-
target/s390x/ioinst.c | 2 +-
target/s390x/kvm-stub.c | 126 ------
target/s390x/{ => kvm}/kvm.c | 4 +-
target/s390x/machine.c | 6 +-
target/s390x/mmu_helper.c | 4 +-
target/s390x/sigp.c | 2 +-
target/s390x/tcg-stub.c | 30 --
target/s390x/{ => tcg}/cc_helper.c | 2 +-
target/s390x/{ => tcg}/crypto_helper.c | 2 +-
target/s390x/{ => tcg}/excp_helper.c | 2 +-
target/s390x/{ => tcg}/fpu_helper.c | 2 +-
target/s390x/{ => tcg}/int_helper.c | 2 +-
target/s390x/{ => tcg}/mem_helper.c | 2 +-
target/s390x/{ => tcg}/misc_helper.c | 2 +-
target/s390x/{ => tcg}/translate.c | 2 +-
target/s390x/{ => tcg}/vec_fpu_helper.c | 2 +-
target/s390x/{ => tcg}/vec_helper.c | 2 +-
target/s390x/{ => tcg}/vec_int_helper.c | 0
target/s390x/{ => tcg}/vec_string_helper.c | 2 +-
target/s390x/{ => tcg}/translate_vx.c.inc | 0
MAINTAINERS | 8 +-
hw/s390x/meson.build | 5 +-
target/s390x/kvm/meson.build | 17 +
target/s390x/meson.build | 41 +-
target/s390x/{ => tcg}/insn-data.def | 0
target/s390x/{ => tcg}/insn-format.def | 0
target/s390x/tcg/meson.build | 14 +
target/s390x/trace-events | 2 +-
51 files changed, 999 insertions(+), 1032 deletions(-)
rename target/s390x/{ => kvm}/kvm_s390x.h (100%)
rename target/s390x/{internal.h => s390x-internal.h} (97%)
rename target/s390x/{ => tcg}/s390-tod.h (100%)
rename target/s390x/{ => tcg}/tcg_s390x.h (100%)
rename target/s390x/{ => tcg}/vec.h (100%)
rename hw/s390x/{tod-qemu.c => tod-tcg.c} (98%)
create mode 100644 target/s390x/cpu-dump.c
create mode 100644 target/s390x/cpu-sysemu.c
create mode 100644 target/s390x/cpu_models_sysemu.c
create mode 100644 target/s390x/cpu_models_user.c
delete mode 100644 target/s390x/kvm-stub.c
rename target/s390x/{ => kvm}/kvm.c (99%)
delete mode 100644 target/s390x/tcg-stub.c
rename target/s390x/{ => tcg}/cc_helper.c (99%)
rename target/s390x/{ => tcg}/crypto_helper.c (98%)
rename target/s390x/{ => tcg}/excp_helper.c (99%)
rename target/s390x/{ => tcg}/fpu_helper.c (99%)
rename target/s390x/{ => tcg}/int_helper.c (99%)
rename target/s390x/{ => tcg}/mem_helper.c (99%)
rename target/s390x/{ => tcg}/misc_helper.c (99%)
rename target/s390x/{ => tcg}/translate.c (99%)
rename target/s390x/{ => tcg}/vec_fpu_helper.c (99%)
rename target/s390x/{ => tcg}/vec_helper.c (99%)
rename target/s390x/{ => tcg}/vec_int_helper.c (100%)
rename target/s390x/{ => tcg}/vec_string_helper.c (99%)
rename target/s390x/{ => tcg}/translate_vx.c.inc (100%)
create mode 100644 target/s390x/kvm/meson.build
rename target/s390x/{ => tcg}/insn-data.def (100%)
rename target/s390x/{ => tcg}/insn-format.def (100%)
create mode 100644 target/s390x/tcg/meson.build
--
2.26.2
next reply other threads:[~2021-04-20 10:39 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-20 10:36 Claudio Fontana [this message]
2021-04-20 10:36 ` [RFC v2 01/13] hw/s390x: only build tod-qemu from the CONFIG_TCG build Claudio Fontana
2021-04-20 12:50 ` David Hildenbrand
2021-04-20 10:36 ` [RFC v2 02/13] hw/s390x: rename tod-qemu.c to tod-tcg.c Claudio Fontana
2021-04-20 12:49 ` David Hildenbrand
2021-04-20 10:36 ` [RFC v2 03/13] hw/s390x: tod: make explicit checks for accelerators when initializing Claudio Fontana
2021-04-20 12:52 ` David Hildenbrand
2021-04-20 10:36 ` [RFC v2 04/13] target/s390x: remove tcg-stub.c Claudio Fontana
2021-04-20 12:54 ` David Hildenbrand
2021-04-20 13:00 ` Claudio Fontana
2021-04-20 13:04 ` David Hildenbrand
2021-04-20 13:35 ` Claudio Fontana
2021-04-20 13:06 ` David Hildenbrand
2021-04-20 10:36 ` [RFC v2 05/13] target/s390x: start moving TCG-only code to tcg/ Claudio Fontana
2021-04-20 13:16 ` David Hildenbrand
2021-04-20 13:40 ` Claudio Fontana
2021-04-20 10:36 ` [RFC v2 06/13] target/s390x: move sysemu-only code out to cpu-sysemu.c Claudio Fontana
2021-04-20 10:36 ` [RFC v2 07/13] target/s390x: split cpu-dump from helper.c Claudio Fontana
2021-04-20 10:36 ` [RFC v2 08/13] target/s390x: make helper.c sysemu-only Claudio Fontana
2021-04-20 10:36 ` [RFC v2 09/13] target/s390x: use kvm_enabled() to wrap call to kvm_s390_get_hpage_1m Claudio Fontana
2021-04-20 10:36 ` [RFC v2 10/13] target/s390x: remove kvm-stub.c Claudio Fontana
2021-04-20 10:36 ` [RFC v2 11/13] target/s390x: move kvm files into kvm/ Claudio Fontana
2021-04-20 10:36 ` [RFC v2 12/13] target/s390x: split sysemu part of cpu models Claudio Fontana
2021-04-20 10:36 ` [RFC v2 13/13] MAINTAINERS: update s390x directories Claudio Fontana
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=20210420103616.32731-1-cfontana@suse.de \
--to=cfontana@suse.de \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=pasic@linux.ibm.com \
--cc=pbonzini@redhat.com \
--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).