diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-02-03 02:03:57 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-03-06 13:15:42 +0100 |
commit | 3919635582856abc7e3702c6af05f04f38b086e9 (patch) | |
tree | 83bed669306a7ceeaf7ca9f31cb5131668072061 /softmmu | |
parent | ad7d684dfde391de6fe5c0680f73097072fbf03a (diff) |
accel: Introduce AccelOpsClass::cpus_are_resettable()
Add cpus_are_resettable() to AccelOps, and implement it for the
KVM accelerator.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
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-12-f4bug@amsat.org>
Diffstat (limited to 'softmmu')
-rw-r--r-- | softmmu/cpus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/softmmu/cpus.c b/softmmu/cpus.c index b17033d3bc..e1d84c8ccb 100644 --- a/softmmu/cpus.c +++ b/softmmu/cpus.c @@ -195,7 +195,10 @@ void cpu_synchronize_pre_loadvm(CPUState *cpu) bool cpus_are_resettable(void) { - return cpu_check_are_resettable(); + if (cpus_accel->cpus_are_resettable) { + return cpus_accel->cpus_are_resettable(); + } + return true; } int64_t cpus_get_virtual_clock(void) |