summary refs log tree commit diff stats
path: root/system/cpus.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-06-23 17:58:39 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-07-04 15:37:07 +0200
commit9a8e6b9ca1a6cf5aa66f0f7f9620a0b90320b064 (patch)
tree3a4d324b1528469563916b54389504a6ea66a686 /system/cpus.c
parent261573c7724ffca8795416eae8b435e175672491 (diff)
downloadfocaccia-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.c4
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();