]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/s390x: move kvm files into kvm/
authorCho, Yu-Chen <acho@suse.com>
Wed, 7 Jul 2021 10:53:23 +0000 (18:53 +0800)
committerCornelia Huck <cohuck@redhat.com>
Wed, 7 Jul 2021 12:01:59 +0000 (14:01 +0200)
move kvm files into kvm/
After the reshuffling, update MAINTAINERS accordingly.
Make use of the new directory:

target/s390x/kvm/

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Signed-off-by: Cho, Yu-Chen <acho@suse.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210707105324.23400-14-acho@suse.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
20 files changed:
MAINTAINERS
hw/intc/s390_flic_kvm.c
hw/s390x/s390-stattrib-kvm.c
hw/s390x/tod-kvm.c
hw/vfio/ap.c
meson.build
target/s390x/cpu-sysemu.c
target/s390x/cpu.c
target/s390x/cpu_models.c
target/s390x/diag.c
target/s390x/interrupt.c
target/s390x/kvm/kvm.c [moved from target/s390x/kvm.c with 100% similarity]
target/s390x/kvm/kvm_s390x.h [moved from target/s390x/kvm_s390x.h with 100% similarity]
target/s390x/kvm/meson.build [new file with mode: 0644]
target/s390x/kvm/trace-events [new file with mode: 0644]
target/s390x/kvm/trace.h [new file with mode: 0644]
target/s390x/machine.c
target/s390x/meson.build
target/s390x/mmu_helper.c
target/s390x/trace-events

index 4e04800576c8f1d6487162f068c05e6e79d0862f..11d9ce72aaadc22540fb119de45324e0b535cf39 100644 (file)
@@ -394,8 +394,7 @@ M: Halil Pasic <pasic@linux.ibm.com>
 M: Cornelia Huck <cohuck@redhat.com>
 M: Christian Borntraeger <borntraeger@de.ibm.com>
 S: Supported
-F: target/s390x/kvm.c
-F: target/s390x/kvm_s390x.h
+F: target/s390x/kvm/
 F: target/s390x/ioinst.[ch]
 F: target/s390x/machine.c
 F: target/s390x/sigp.c
index 929cfa3a686c3ff0354ae50e11583a173b7395dc..efe5054182c372d31e0aafa4b0b3a18f13025441 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "kvm_s390x.h"
+#include "kvm/kvm_s390x.h"
 #include <sys/ioctl.h>
 #include "qemu/error-report.h"
 #include "qemu/module.h"
index f0b11a74e49976f0d90163fa5c187959962a5be8..24cd01382e2d74d62c2d7e980eb6aca1077d893d 100644 (file)
@@ -16,7 +16,7 @@
 #include "qemu/error-report.h"
 #include "sysemu/kvm.h"
 #include "exec/ram_addr.h"
-#include "kvm_s390x.h"
+#include "kvm/kvm_s390x.h"
 
 Object *kvm_s390_stattrib_create(void)
 {
index 0b9447748619d735431d001b6dc860d401ba8bb6..ec855811aeb5cc855c2b9bc09d096d2ed48f2b38 100644 (file)
@@ -13,7 +13,7 @@
 #include "qemu/module.h"
 #include "sysemu/runstate.h"
 #include "hw/s390x/tod.h"
-#include "kvm_s390x.h"
+#include "kvm/kvm_s390x.h"
 
 static void kvm_s390_get_tod_raw(S390TOD *tod, Error **errp)
 {
index 4b32aca1a05e8fbac40ca966bed21436cbe38d28..e0dd561e85a32cdbe20444508d70fab67f09570a 100644 (file)
@@ -21,7 +21,7 @@
 #include "qemu/module.h"
 #include "qemu/option.h"
 #include "qemu/config-file.h"
-#include "kvm_s390x.h"
+#include "kvm/kvm_s390x.h"
 #include "migration/vmstate.h"
 #include "hw/qdev-properties.h"
 #include "hw/s390x/ap-bridge.h"
index 7e12de01becd31dc6b7f07aa06c3affe3bebd715..b458cd33b84c63b20f222e7150a48080147744c6 100644 (file)
@@ -2102,6 +2102,7 @@ if have_system or have_user
     'target/ppc',
     'target/riscv',
     'target/s390x',
+    'target/s390x/kvm',
     'target/sparc',
   ]
 endif
index 16e530108459d567e0395d5ee80a8898bdab37a0..df2c6bf694182d2bf641a755800821def2981add 100644 (file)
@@ -24,7 +24,7 @@
 #include "qapi/error.h"
 #include "cpu.h"
 #include "s390x-internal.h"
-#include "kvm_s390x.h"
+#include "kvm/kvm_s390x.h"
 #include "sysemu/kvm.h"
 #include "sysemu/reset.h"
 #include "qemu/timer.h"
index 5c456f601485969fa4e8f4a50238eb7e6c4ad9e7..7b7b05f1d3a0084cd7ab349a2d67e87272fd8d53 100644 (file)
@@ -24,7 +24,7 @@
 #include "qapi/error.h"
 #include "cpu.h"
 #include "s390x-internal.h"
-#include "kvm_s390x.h"
+#include "kvm/kvm_s390x.h"
 #include "sysemu/kvm.h"
 #include "sysemu/reset.h"
 #include "qemu/module.h"
index 442f06e1405ee13a8b26297a97025ccf097ab13e..624c7ea97122e3cef203e32e3cb846925d865dfa 100644 (file)
@@ -13,7 +13,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "s390x-internal.h"
-#include "kvm_s390x.h"
+#include "kvm/kvm_s390x.h"
 #include "sysemu/kvm.h"
 #include "sysemu/tcg.h"
 #include "qapi/error.h"
index 8405f69df02d91bb401b2f40a30e89f9bd77eef4..76b01dcd68bbba7c6011069ac1eec4fa833a3a7e 100644 (file)
@@ -21,7 +21,7 @@
 #include "hw/s390x/s390-virtio-ccw.h"
 #include "hw/s390x/pv.h"
 #include "sysemu/kvm.h"
-#include "kvm_s390x.h"
+#include "kvm/kvm_s390x.h"
 
 int handle_diag_288(CPUS390XState *env, uint64_t r1, uint64_t r3)
 {
index 734f0c62de6e06916d3ea82ce792f358e29ef1f8..5195f060ecbf1db7f9486048df4632243b4fec3d 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "qemu/osdep.h"
 #include "cpu.h"
-#include "kvm_s390x.h"
+#include "kvm/kvm_s390x.h"
 #include "s390x-internal.h"
 #include "exec/exec-all.h"
 #include "sysemu/kvm.h"
similarity index 100%
rename from target/s390x/kvm.c
rename to target/s390x/kvm/kvm.c
diff --git a/target/s390x/kvm/meson.build b/target/s390x/kvm/meson.build
new file mode 100644 (file)
index 0000000..d135635
--- /dev/null
@@ -0,0 +1,17 @@
+
+s390x_ss.add(when: 'CONFIG_KVM', if_true: files(
+  'kvm.c'
+))
+
+# Newer kernels on s390 check for an S390_PGSTE program header and
+# enable the pgste page table extensions in that case. This makes
+# the vm.allocate_pgste sysctl unnecessary. We enable this program
+# header if
+#  - we build on s390x
+#  - we build the system emulation for s390x (qemu-system-s390x)
+#  - KVM is enabled
+#  - the linker supports --s390-pgste
+if host_machine.cpu_family() == 's390x' and cc.has_link_argument('-Wl,--s390-pgste')
+  s390x_softmmu_ss.add(when: 'CONFIG_KVM',
+                       if_true: declare_dependency(link_args: ['-Wl,--s390-pgste']))
+endif
diff --git a/target/s390x/kvm/trace-events b/target/s390x/kvm/trace-events
new file mode 100644 (file)
index 0000000..5289f5f
--- /dev/null
@@ -0,0 +1,7 @@
+# See docs/devel/tracing.txt for syntax documentation.
+
+# kvm.c
+kvm_enable_cmma(int rc) "CMMA: enabling with result code %d"
+kvm_clear_cmma(int rc) "CMMA: clearing with result code %d"
+kvm_failed_cpu_state_set(int cpu_index, uint8_t state, const char *msg) "Warning: Unable to set cpu %d state %" PRIu8 " to KVM: %s"
+kvm_assign_subch_ioeventfd(int fd, uint32_t addr, bool assign, int datamatch) "fd: %d sch: @0x%x assign: %d vq: %d"
diff --git a/target/s390x/kvm/trace.h b/target/s390x/kvm/trace.h
new file mode 100644 (file)
index 0000000..ae195b1
--- /dev/null
@@ -0,0 +1 @@
+#include "trace/trace-target_s390x_kvm.h"
index 81a8a7ff9923590da66a8d9bf6e6c20eb01835a7..37a076858c7566ae07684ad014f4a99956107538 100644 (file)
@@ -17,7 +17,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "s390x-internal.h"
-#include "kvm_s390x.h"
+#include "kvm/kvm_s390x.h"
 #include "migration/vmstate.h"
 #include "tcg/tcg_s390x.h"
 #include "sysemu/kvm.h"
index 6c8e03b8fbdcd06dbad488c4a0021613d424c4bc..ec73bed5249f217c1929d15494d3a7757c813bb9 100644 (file)
@@ -8,8 +8,6 @@ s390x_ss.add(files(
   'cpu-dump.c',
 ))
 
-s390x_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
-
 gen_features = executable('gen-features', 'gen-features.c', native: true,
                           build_by_default: false)
 
@@ -32,22 +30,10 @@ s390x_softmmu_ss.add(files(
   'cpu-sysemu.c',
 ))
 
-# Newer kernels on s390 check for an S390_PGSTE program header and
-# enable the pgste page table extensions in that case. This makes
-# the vm.allocate_pgste sysctl unnecessary. We enable this program
-# header if
-#  - we build on s390x
-#  - we build the system emulation for s390x (qemu-system-s390x)
-#  - KVM is enabled
-#  - the linker supports --s390-pgste
-if host_machine.cpu_family() == 's390x' and cc.has_link_argument('-Wl,--s390-pgste')
-  s390x_softmmu_ss.add(when: 'CONFIG_KVM',
-                       if_true: declare_dependency(link_args: ['-Wl,--s390-pgste']))
-endif
-
 s390x_user_ss = ss.source_set()
 
 subdir('tcg')
+subdir('kvm')
 
 target_arch += {'s390x': s390x_ss}
 target_softmmu_arch += {'s390x': s390x_softmmu_ss}
index 52fdd86c639b8c8da8f1a0e1c470da3170e4966a..d779a9fc51fd3587c02f6f503ea97d5fd612b0ef 100644 (file)
@@ -20,7 +20,7 @@
 #include "exec/address-spaces.h"
 #include "cpu.h"
 #include "s390x-internal.h"
-#include "kvm_s390x.h"
+#include "kvm/kvm_s390x.h"
 #include "sysemu/kvm.h"
 #include "sysemu/tcg.h"
 #include "exec/exec-all.h"
index e83a8cf85ee32d0ae7297ffe85b16617f0eaaf5f..729cb012b414d4c6ecedaf05d83484b0d896aa8d 100644 (file)
@@ -10,12 +10,6 @@ ioinst_sch_id(const char *insn, int cssid, int ssid, int schid) "IOINST: %s (%x.
 ioinst_chp_id(const char *insn, int cssid, int chpid) "IOINST: %s (%x.%02x)"
 ioinst_chsc_cmd(uint16_t cmd, uint16_t len) "IOINST: chsc command 0x%04x, len 0x%04x"
 
-# kvm.c
-kvm_enable_cmma(int rc) "CMMA: enabling with result code %d"
-kvm_clear_cmma(int rc) "CMMA: clearing with result code %d"
-kvm_failed_cpu_state_set(int cpu_index, uint8_t state, const char *msg) "Warning: Unable to set cpu %d state %" PRIu8 " to KVM: %s"
-kvm_assign_subch_ioeventfd(int fd, uint32_t addr, bool assign, int datamatch) "fd: %d sch: @0x%x assign: %d vq: %d"
-
 # cpu-sysemu.c
 cpu_set_state(int cpu_index, uint8_t state) "setting cpu %d state to %" PRIu8
 cpu_halt(int cpu_index) "halting cpu %d"