c7b64948f8
meson: Replace CONFIG_SOFTMMU -> CONFIG_SYSTEM_ONLY
...
Since we *might* have user emulation with softmmu,
use the clearer 'CONFIG_SYSTEM_ONLY' key to check
for system emulation.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20230613133347.82210-9-philmd@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2023-06-20 10:01:30 +02:00
c9923550b4
accel/qtest: Support qtest accelerator for Windows
...
Currently signal SIGIPI [=SIGUSR1] is used to kick the dummy CPU
when qtest accelerator is used. However SIGUSR1 is unsupported on
Windows. To support Windows, we add a QemuSemaphore CPUState::sem
to kick the dummy CPU instead for Windows.
Signed-off-by: Xuzhou Cheng <xuzhou.cheng@windriver.com >
Signed-off-by: Bin Meng <bin.meng@windriver.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20221028045736.679903-2-bin.meng@windriver.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2022-10-28 11:17:12 +02:00
b57dfb0f30
misc: Remove unnecessary "sysemu/cpu-timers.h" include
...
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20220207075426.81934-17-f4bug@amsat.org >
2022-03-06 13:15:42 +01:00
c94a7b8892
accel: build qtest modular
...
Allow building accelerators as module.
Start with qtest as first user.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Reviewed-by: Jose R. Ziviani <jziviani@suse.de >
Message-Id: <20210624103836.2382472-28-kraxel@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2021-07-09 18:21:33 +02:00
a05ca2d416
accel: add qtest module annotations
...
Add module annotations for qtest so autoloading works.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Reviewed-by: Jose R. Ziviani <jziviani@suse.de >
Message-Id: <20210624103836.2382472-27-kraxel@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2021-07-09 18:21:33 +02:00
b86f59c715
accel: replace struct CpusAccel with AccelOpsClass
...
This will allow us to centralize the registration of
the cpus.c module accelerator operations (in accel/accel-softmmu.c),
and trigger it automatically using object hierarchy lookup from the
new accel_init_interfaces() initialization step, depending just on
which accelerators are available in the code.
Rename all tcg-cpus.c, kvm-cpus.c, etc to tcg-accel-ops.c,
kvm-accel-ops.c, etc, matching the object type names.
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Message-Id: <20210204163931.7358-18-cfontana@suse.de >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-02-05 10:24:15 -10:00
940e43aa30
accel: extend AccelState and AccelClass to user-mode
...
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
[claudio: rebased on Richard's splitwx work]
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Message-Id: <20210204163931.7358-17-cfontana@suse.de >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2021-02-05 10:24:15 -10:00
9ce84a0d17
accel: move qtest CpusAccel functions to a common location
...
Move and rename accel/qtest/qtest-cpus.c files to accel/dummy-cpus.c so
it can be re-used by Xen.
Signed-off-by: Jason Andryuk <jandryuk@gmail.com >
Message-Id: <20201013140511.5681-3-jandryuk@gmail.com >
Reviewed-by: Claudio Fontana <cfontana@suse.de >
Acked-by: Paolo Bonzini <pbonzini@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2020-10-24 07:23:19 +02:00
a6b0882ca7
accel: Remove _WIN32 ifdef from qtest-cpus.c
...
dummy-cpus.c is only compiled with CONFIG_POSIX, so the _WIN32 condition
will never evaluate true. Remove it.
Signed-off-by: Jason Andryuk <jandryuk@gmail.com >
Message-Id: <20201013140511.5681-2-jandryuk@gmail.com >
Acked-by: Paolo Bonzini <pbonzini@redhat.com >
Reviewed-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2020-10-24 07:23:19 +02:00
1583a38988
cpus: extract out qtest-specific code to accel/qtest
...
register a "CpusAccel" interface for qtest as well.
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-10-05 16:41:22 +02:00