]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
system: Rename softmmu/ directory as system/
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 4 Oct 2023 09:06:28 +0000 (11:06 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 8 Oct 2023 19:08:08 +0000 (21:08 +0200)
The softmmu/ directory contains files specific to system
emulation. Rename it as system/. Update meson rules, the
MAINTAINERS file and all the documentation and comments.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231004090629.37473-14-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
43 files changed:
MAINTAINERS
accel/tcg/icount-common.c
docs/devel/qtest.rst
include/sysemu/cpu-timers-internal.h [moved from softmmu/timers-state.h with 100% similarity]
include/sysemu/runstate-action.h
meson.build
scripts/checkpatch.pl
scripts/coverity-scan/COMPONENTS.md
scripts/get_maintainer.pl
scripts/oss-fuzz/build.sh
softmmu/trace.h [deleted file]
system/arch_init.c [moved from softmmu/arch_init.c with 100% similarity]
system/async-teardown.c [moved from softmmu/async-teardown.c with 100% similarity]
system/balloon.c [moved from softmmu/balloon.c with 100% similarity]
system/bootdevice.c [moved from softmmu/bootdevice.c with 100% similarity]
system/cpu-throttle.c [moved from softmmu/cpu-throttle.c with 100% similarity]
system/cpu-timers.c [moved from softmmu/cpu-timers.c with 99% similarity]
system/cpus.c [moved from softmmu/cpus.c with 100% similarity]
system/datadir.c [moved from softmmu/datadir.c with 100% similarity]
system/device_tree.c [moved from softmmu/device_tree.c with 100% similarity]
system/dirtylimit.c [moved from softmmu/dirtylimit.c with 100% similarity]
system/dma-helpers.c [moved from softmmu/dma-helpers.c with 100% similarity]
system/globals.c [moved from softmmu/globals.c with 100% similarity]
system/ioport.c [moved from softmmu/ioport.c with 100% similarity]
system/main.c [moved from softmmu/main.c with 100% similarity]
system/memory.c [moved from softmmu/memory.c with 100% similarity]
system/memory_mapping.c [moved from softmmu/memory_mapping.c with 100% similarity]
system/meson.build [moved from softmmu/meson.build with 100% similarity]
system/physmem.c [moved from softmmu/physmem.c with 99% similarity]
system/qdev-monitor.c [moved from softmmu/qdev-monitor.c with 100% similarity]
system/qemu-seccomp.c [moved from softmmu/qemu-seccomp.c with 100% similarity]
system/qtest.c [moved from softmmu/qtest.c with 100% similarity]
system/rtc.c [moved from softmmu/rtc.c with 100% similarity]
system/runstate-action.c [moved from softmmu/runstate-action.c with 100% similarity]
system/runstate-hmp-cmds.c [moved from softmmu/runstate-hmp-cmds.c with 100% similarity]
system/runstate.c [moved from softmmu/runstate.c with 100% similarity]
system/tpm-hmp-cmds.c [moved from softmmu/tpm-hmp-cmds.c with 100% similarity]
system/tpm.c [moved from softmmu/tpm.c with 100% similarity]
system/trace-events [moved from softmmu/trace-events with 100% similarity]
system/trace.h [new file with mode: 0644]
system/vl.c [moved from softmmu/vl.c with 100% similarity]
system/watchpoint.c [moved from softmmu/watchpoint.c with 100% similarity]
tests/unit/meson.build

index ea91f9e8048185eb06173959cc783332cc2b62ab..a5ce4c085621706d82b8df9368415c93cad0c5dc 100644 (file)
@@ -137,8 +137,8 @@ Overall TCG CPUs
 M: Richard Henderson <richard.henderson@linaro.org>
 R: Paolo Bonzini <pbonzini@redhat.com>
 S: Maintained
-F: softmmu/cpus.c
-F: softmmu/watchpoint.c
+F: system/cpus.c
+F: system/watchpoint.c
 F: cpu-common.c
 F: cpu-target.c
 F: page-vary-target.c
@@ -2108,7 +2108,7 @@ S: Maintained
 F: docs/interop/virtio-balloon-stats.rst
 F: hw/virtio/virtio-balloon*.c
 F: include/hw/virtio/virtio-balloon.h
-F: softmmu/balloon.c
+F: system/balloon.c
 F: include/sysemu/balloon.h
 
 virtio-9p
@@ -2795,7 +2795,7 @@ Device Tree
 M: Alistair Francis <alistair.francis@wdc.com>
 R: David Gibson <david@gibson.dropbear.id.au>
 S: Maintained
-F: softmmu/device_tree.c
+F: system/device_tree.c
 F: include/sysemu/device_tree.h
 
 Dump
@@ -2851,11 +2851,11 @@ F: include/exec/memory.h
 F: include/exec/ram_addr.h
 F: include/exec/ramblock.h
 F: include/sysemu/memory_mapping.h
-F: softmmu/dma-helpers.c
-F: softmmu/ioport.c
-F: softmmu/memory.c
-F: softmmu/memory_mapping.c
-F: softmmu/physmem.c
+F: system/dma-helpers.c
+F: system/ioport.c
+F: system/memory.c
+F: system/memory_mapping.c
+F: system/physmem.c
 F: include/exec/memory-internal.h
 F: scripts/coccinelle/memory-region-housekeeping.cocci
 
@@ -2908,12 +2908,12 @@ F: include/sysemu/runstate.h
 F: include/sysemu/runstate-action.h
 F: util/main-loop.c
 F: util/qemu-timer.c
-F: softmmu/vl.c
-F: softmmu/main.c
-F: softmmu/cpus.c
-F: softmmu/cpu-throttle.c
-F: softmmu/cpu-timers.c
-F: softmmu/runstate*
+F: system/vl.c
+F: system/main.c
+F: system/cpus.c
+F: system/cpu-throttle.c
+F: system/cpu-timers.c
+F: system/runstate*
 F: qapi/run-state.json
 
 Read, Copy, Update (RCU)
@@ -3087,7 +3087,7 @@ F: qapi/qom.json
 F: qapi/qdev.json
 F: scripts/coccinelle/qom-parent-type.cocci
 F: scripts/qom-cast-macro-clean-cocci-gen.py
-F: softmmu/qdev-monitor.c
+F: system/qdev-monitor.c
 F: stubs/qdev.c
 F: qom/
 F: tests/unit/check-qom-interface.c
@@ -3121,7 +3121,7 @@ M: Thomas Huth <thuth@redhat.com>
 M: Laurent Vivier <lvivier@redhat.com>
 R: Paolo Bonzini <pbonzini@redhat.com>
 S: Maintained
-F: softmmu/qtest.c
+F: system/qtest.c
 F: accel/qtest/
 F: tests/qtest/
 F: docs/devel/qgraph.rst
@@ -3197,7 +3197,7 @@ F: scripts/simpletrace.py
 TPM
 M: Stefan Berger <stefanb@linux.ibm.com>
 S: Maintained
-F: softmmu/tpm*
+F: system/tpm*
 F: hw/tpm/*
 F: include/hw/acpi/tpm.h
 F: include/sysemu/tpm*
@@ -3242,7 +3242,7 @@ F: migration/rdma*
 Migration dirty limit and dirty page rate
 M: Hyman Huang <yong.huang@smartx.com>
 S: Maintained
-F: softmmu/dirtylimit.c
+F: system/dirtylimit.c
 F: include/sysemu/dirtylimit.h
 F: migration/dirtyrate.c
 F: migration/dirtyrate.h
@@ -3266,7 +3266,7 @@ F: scripts/xml-preprocess*
 Seccomp
 M: Daniel P. Berrange <berrange@redhat.com>
 S: Odd Fixes
-F: softmmu/qemu-seccomp.c
+F: system/qemu-seccomp.c
 F: include/sysemu/seccomp.h
 F: tests/unit/test-seccomp.c
 
@@ -3685,7 +3685,7 @@ T: git https://github.com/stefanha/qemu.git block
 Bootdevice
 M: Gonglei <arei.gonglei@huawei.com>
 S: Maintained
-F: softmmu/bootdevice.c
+F: system/bootdevice.c
 
 Quorum
 M: Alberto Garcia <berto@igalia.com>
index 0bf5bb5e21b67076917b796b8977f6959586b7d2..ec57192be824bedf6b37370b0606db487f0044b4 100644 (file)
@@ -37,7 +37,7 @@
 #include "hw/core/cpu.h"
 #include "sysemu/cpu-timers.h"
 #include "sysemu/cpu-throttle.h"
-#include "softmmu/timers-state.h"
+#include "sysemu/cpu-timers-internal.h"
 
 /*
  * ICOUNT: Instruction Counter
index 0455aa06ab28aa43ced1c23933129a5b6340243a..c5b8546b3eb117830391cefb949bff3f78dfbff7 100644 (file)
@@ -81,7 +81,7 @@ which you can run manually.
 QTest Protocol
 --------------
 
-.. kernel-doc:: softmmu/qtest.c
+.. kernel-doc:: system/qtest.c
    :doc: QTest Protocol
 
 
index cff45a047bf21e4e02bbf1cd39298d8b794dead2..db4e3099ae5691c4760cae9d440869c58cb05ee5 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "qapi/qapi-commands-run-state.h"
 
-/* in softmmu/runstate-action.c */
+/* in system/runstate-action.c */
 extern RebootAction reboot_action;
 extern ShutdownAction shutdown_action;
 extern PanicAction panic_action;
index 167cb70956a3f606ad8fe84177e2bf426958b868..79aef19bdce8d6aec0bade7812439b8adc972d70 100644 (file)
@@ -3291,7 +3291,7 @@ if have_system
     'hw/gpio',
     'migration',
     'net',
-    'softmmu',
+    'system',
     'ui',
     'hw/remote',
   ]
@@ -3418,7 +3418,7 @@ endif
 common_ss.add(files('cpu-common.c'))
 specific_ss.add(files('cpu-target.c'))
 
-subdir('softmmu')
+subdir('system')
 
 # Work around a gcc bug/misfeature wherein constant propagation looks
 # through an alias:
@@ -3797,14 +3797,14 @@ foreach target : target_dirs
     execs = [{
       'name': 'qemu-system-' + target_name,
       'win_subsystem': 'console',
-      'sources': files('softmmu/main.c'),
+      'sources': files('system/main.c'),
       'dependencies': []
     }]
     if targetos == 'windows' and (sdl.found() or gtk.found())
       execs += [{
         'name': 'qemu-system-' + target_name + 'w',
         'win_subsystem': 'windows',
-        'sources': files('softmmu/main.c'),
+        'sources': files('system/main.c'),
         'dependencies': []
       }]
     endif
index 1ad9ccb74ba07ab996a112f16b2208ec7eba790f..6e4100d2a41c8cef5d5955910977a9d1222966d9 100755 (executable)
@@ -466,7 +466,7 @@ sub top_of_kernel_tree {
        my @tree_check = (
                "COPYING", "MAINTAINERS", "Makefile",
                "README.rst", "docs", "VERSION",
-               "linux-user", "softmmu"
+               "linux-user", "system"
        );
 
        foreach my $check (@tree_check) {
index 883da95aff229adf20f1422e0618750a62fe3327..0e62f10aad38790cd521b105ec5a437931f8545d 100644 (file)
@@ -148,7 +148,7 @@ tcg
   ~ (/qemu)?(/accel/tcg|/replay|/tcg)/.*
 
 sysemu
-  ~ (/qemu)?(/softmmu/.*|/accel/.*)
+  ~ (/qemu)?(/system/.*|/accel/.*)
 
 (headers)
   ~ (/qemu)?(/include/.*)
index e5499b94b4fb604c0ee65cab8e95b0acf44811cf..02fa828100e3fe3c485913da048927e5b2b6132f 100755 (executable)
@@ -796,7 +796,7 @@ sub top_of_tree {
         && (-d "${lk_path}docs")
         && (-f "${lk_path}VERSION")
         && (-d "${lk_path}linux-user/")
-        && (-d "${lk_path}softmmu/")) {
+        && (-d "${lk_path}system/")) {
        return 1;
     }
     return 0;
index 3bda0d72c72c97c1082bcc69579a7ac0236f6a7b..5238f83343582a5cee9a87d7604aaa3707a515c4 100755 (executable)
@@ -43,10 +43,10 @@ EXTRA_CFLAGS="$CFLAGS -U __OPTIMIZE__"
 if ! { [ -e "./COPYING" ] &&
    [ -e "./MAINTAINERS" ] &&
    [ -e "./Makefile" ] &&
-   [ -e "./docs" ] &&
+   [ -d "./docs" ] &&
    [ -e "./VERSION" ] &&
-   [ -e "./linux-user" ] &&
-   [ -e "./softmmu" ];} ; then
+   [ -d "./linux-user" ] &&
+   [ -d "./system" ];} ; then
     fatal "Please run the script from the top of the QEMU tree"
 fi
 
diff --git a/softmmu/trace.h b/softmmu/trace.h
deleted file mode 100644 (file)
index 2ad1011..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "trace/trace-softmmu.h"
similarity index 100%
rename from softmmu/arch_init.c
rename to system/arch_init.c
similarity index 100%
rename from softmmu/balloon.c
rename to system/balloon.c
similarity index 100%
rename from softmmu/bootdevice.c
rename to system/bootdevice.c
similarity index 100%
rename from softmmu/cpu-throttle.c
rename to system/cpu-throttle.c
similarity index 99%
rename from softmmu/cpu-timers.c
rename to system/cpu-timers.c
index 117408cb83af2beba91770d83f73646fc785f2fb..7452d97b673162b718e00599bdb36183e975bb18 100644 (file)
@@ -36,7 +36,7 @@
 #include "hw/core/cpu.h"
 #include "sysemu/cpu-timers.h"
 #include "sysemu/cpu-throttle.h"
-#include "timers-state.h"
+#include "sysemu/cpu-timers-internal.h"
 
 /* clock and ticks */
 
similarity index 100%
rename from softmmu/cpus.c
rename to system/cpus.c
similarity index 100%
rename from softmmu/datadir.c
rename to system/datadir.c
similarity index 100%
rename from softmmu/device_tree.c
rename to system/device_tree.c
similarity index 100%
rename from softmmu/dirtylimit.c
rename to system/dirtylimit.c
similarity index 100%
rename from softmmu/dma-helpers.c
rename to system/dma-helpers.c
similarity index 100%
rename from softmmu/globals.c
rename to system/globals.c
similarity index 100%
rename from softmmu/ioport.c
rename to system/ioport.c
similarity index 100%
rename from softmmu/main.c
rename to system/main.c
similarity index 100%
rename from softmmu/memory.c
rename to system/memory.c
similarity index 100%
rename from softmmu/meson.build
rename to system/meson.build
similarity index 99%
rename from softmmu/physmem.c
rename to system/physmem.c
index 309653c7221333dfc8247aa0af87cfba9f73bb6b..edc3ed8ab90fe38412bd00ed04df2ec1c1223bce 100644 (file)
@@ -2301,8 +2301,10 @@ RAMBlock *qemu_ram_block_by_name(const char *name)
     return NULL;
 }
 
-/* Some of the softmmu routines need to translate from a host pointer
-   (typically a TLB entry) back to a ram offset.  */
+/*
+ * Some of the system routines need to translate from a host pointer
+ * (typically a TLB entry) back to a ram offset.
+ */
 ram_addr_t qemu_ram_addr_from_host(void *ptr)
 {
     RAMBlock *block;
similarity index 100%
rename from softmmu/qdev-monitor.c
rename to system/qdev-monitor.c
similarity index 100%
rename from softmmu/qemu-seccomp.c
rename to system/qemu-seccomp.c
similarity index 100%
rename from softmmu/qtest.c
rename to system/qtest.c
similarity index 100%
rename from softmmu/rtc.c
rename to system/rtc.c
similarity index 100%
rename from softmmu/runstate.c
rename to system/runstate.c
similarity index 100%
rename from softmmu/tpm-hmp-cmds.c
rename to system/tpm-hmp-cmds.c
similarity index 100%
rename from softmmu/tpm.c
rename to system/tpm.c
similarity index 100%
rename from softmmu/trace-events
rename to system/trace-events
diff --git a/system/trace.h b/system/trace.h
new file mode 100644 (file)
index 0000000..cd0136d
--- /dev/null
@@ -0,0 +1 @@
+#include "trace/trace-system.h"
similarity index 100%
rename from softmmu/vl.c
rename to system/vl.c
similarity index 100%
rename from softmmu/watchpoint.c
rename to system/watchpoint.c
index 1977b302e2fa16172b0f56ff2d41a90f783eddda..f33ae64b8dc6fdb8202f7a16dfc499009e79188b 100644 (file)
@@ -59,7 +59,7 @@ if have_system or have_tools
   }
 
   if seccomp.found()
-    tests += {'test-seccomp': ['../../softmmu/qemu-seccomp.c', seccomp]}
+    tests += {'test-seccomp': ['../../system/qemu-seccomp.c', seccomp]}
   endif
 endif