[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/25] plugins: Check if vCPU is realized
From: |
Alex Bennée |
Subject: |
[PULL 10/25] plugins: Check if vCPU is realized |
Date: |
Wed, 11 Oct 2023 11:33:14 +0100 |
From: Akihiko Odaki <akihiko.odaki@daynix.com>
The created member of CPUState tells if the vCPU thread is started, and
will be always false for the user space emulation that manages threads
independently. Use the realized member of DeviceState, which is valid
for both of the system and user space emulation.
Fixes: 54cb65d858 ("plugin: add core code")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20230912224107.29669-4-akihiko.odaki@daynix.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231009164104.369749-11-alex.bennee@linaro.org>
diff --git a/plugins/core.c b/plugins/core.c
index 3c4e26c7ed..fcd33a2bff 100644
--- a/plugins/core.c
+++ b/plugins/core.c
@@ -64,7 +64,7 @@ static void plugin_cpu_update__locked(gpointer k, gpointer v,
gpointer udata)
CPUState *cpu = container_of(k, CPUState, cpu_index);
run_on_cpu_data mask = RUN_ON_CPU_HOST_ULONG(*plugin.mask);
- if (cpu->created) {
+ if (DEVICE(cpu)->realized) {
async_run_on_cpu(cpu, plugin_cpu_update__async, mask);
} else {
plugin_cpu_update__async(cpu, mask);
--
2.39.2
- [PULL 00/25] testing, gdbstub and plugin updates, Alex Bennée, 2023/10/11
- [PULL 02/25] tests/avocado: remove flaky test marking for test_sbsaref_edk2_firmware, Alex Bennée, 2023/10/11
- [PULL 10/25] plugins: Check if vCPU is realized,
Alex Bennée <=
- [PULL 04/25] gitlab: shuffle some targets and reduce avocado noise, Alex Bennée, 2023/10/11
- [PULL 14/25] hw/core/cpu: Return static value with gdb_arch_name(), Alex Bennée, 2023/10/11
- [PULL 13/25] target/arm: Move the reference to arm-core.xml, Alex Bennée, 2023/10/11
- [PULL 19/25] gdbstub: Replace gdb_regs with an array, Alex Bennée, 2023/10/11
- [PULL 01/25] tests/avocado: update firmware to enable OpenBSD test on sbsa-ref, Alex Bennée, 2023/10/11
- [PULL 08/25] gdbstub: Fix target_xml initialization, Alex Bennée, 2023/10/11
- [PULL 05/25] tests/docker: make docker engine choice entirely configure driven, Alex Bennée, 2023/10/11
- [PULL 09/25] gdbstub: Fix target.xml response, Alex Bennée, 2023/10/11