diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-23 17:58:39 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-04 15:37:07 +0200 |
| commit | 9a8e6b9ca1a6cf5aa66f0f7f9620a0b90320b064 (patch) | |
| tree | 3a4d324b1528469563916b54389504a6ea66a686 /system/cpus.c | |
| parent | 261573c7724ffca8795416eae8b435e175672491 (diff) | |
| download | focaccia-qemu-9a8e6b9ca1a6cf5aa66f0f7f9620a0b90320b064.tar.gz focaccia-qemu-9a8e6b9ca1a6cf5aa66f0f7f9620a0b90320b064.zip | |
accel/system: Convert pre_resume() from AccelOpsClass to AccelClass
Accelerators call pre_resume() once. Since it isn't a method to call for each vCPU, move it from AccelOpsClass to AccelClass. Adapt WHPX. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250702185332.43650-21-philmd@linaro.org>
Diffstat (limited to 'system/cpus.c')
| -rw-r--r-- | system/cpus.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/system/cpus.c b/system/cpus.c index 0d0eec82a2..8e6da2e060 100644 --- a/system/cpus.c +++ b/system/cpus.c @@ -768,9 +768,7 @@ int vm_prepare_start(bool step_pending) * WHPX accelerator needs to know whether we are going to step * any CPUs, before starting the first one. */ - if (cpus_accel->synchronize_pre_resume) { - cpus_accel->synchronize_pre_resume(step_pending); - } + accel_pre_resume(MACHINE(qdev_get_machine()), step_pending); /* We are sending this now, but the CPUs will be resumed shortly later */ qapi_event_send_resume(); |