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 /accel/accel-system.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 'accel/accel-system.c')
| -rw-r--r-- | accel/accel-system.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/accel/accel-system.c b/accel/accel-system.c index af713cc902..c54c30f18b 100644 --- a/accel/accel-system.c +++ b/accel/accel-system.c @@ -62,6 +62,15 @@ void accel_setup_post(MachineState *ms) } } +void accel_pre_resume(MachineState *ms, bool step_pending) +{ + AccelState *accel = ms->accelerator; + AccelClass *acc = ACCEL_GET_CLASS(accel); + if (acc->pre_resume_vm) { + acc->pre_resume_vm(accel, step_pending); + } +} + /* initialize the arch-independent accel operation interfaces */ void accel_init_ops_interfaces(AccelClass *ac) { |