aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRoman Bolshakov <r.bolshakov@yadro.com>2020-06-30 13:28:18 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-07-10 18:02:18 -0400
commit5536c98e449fe832c6cb59612baf0f2936fb436d (patch)
tree51d8c23d792f7864e67b4b6836f80dc634463397 /include
parent4bb19f98d34302d627a1267b608de4df6d0988f9 (diff)
downloadqemu-5536c98e449fe832c6cb59612baf0f2936fb436d.zip
qemu-5536c98e449fe832c6cb59612baf0f2936fb436d.tar.gz
qemu-5536c98e449fe832c6cb59612baf0f2936fb436d.tar.bz2
i386: hvf: Add hvf_cpu_synchronize_pre_loadvm()
hvf lacks an implementation of cpu_synchronize_pre_loadvm(). Cc: Cameron Esfahani <dirty@apple.com> Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20200630102824.77604-4-r.bolshakov@yadro.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sysemu/hvf.h1
-rw-r--r--include/sysemu/hw_accel.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/sysemu/hvf.h b/include/sysemu/hvf.h
index 5214ed5..1d40a8e 100644
--- a/include/sysemu/hvf.h
+++ b/include/sysemu/hvf.h
@@ -28,6 +28,7 @@ int hvf_vcpu_exec(CPUState *);
void hvf_cpu_synchronize_state(CPUState *);
void hvf_cpu_synchronize_post_reset(CPUState *);
void hvf_cpu_synchronize_post_init(CPUState *);
+void hvf_cpu_synchronize_pre_loadvm(CPUState *);
void hvf_vcpu_destroy(CPUState *);
void hvf_reset_vcpu(CPUState *);
diff --git a/include/sysemu/hw_accel.h b/include/sysemu/hw_accel.h
index 80bce75..e128f8b 100644
--- a/include/sysemu/hw_accel.h
+++ b/include/sysemu/hw_accel.h
@@ -73,6 +73,9 @@ static inline void cpu_synchronize_pre_loadvm(CPUState *cpu)
if (hax_enabled()) {
hax_cpu_synchronize_pre_loadvm(cpu);
}
+ if (hvf_enabled()) {
+ hvf_cpu_synchronize_pre_loadvm(cpu);
+ }
if (whpx_enabled()) {
whpx_cpu_synchronize_pre_loadvm(cpu);
}