aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 3a31602359..959306d197 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1554,7 +1554,9 @@ static void do_kvm_cpu_synchronize_state(void *arg)
CPUState *cpu = arg;
if (!cpu->kvm_vcpu_dirty) {
- kvm_arch_get_registers(cpu);
+ if (kvm_arch_get_registers(cpu)) {
+ abort();
+ }
cpu->kvm_vcpu_dirty = true;
}
}
@@ -1570,13 +1572,17 @@ void kvm_cpu_synchronize_state(CPUArchState *env)
void kvm_cpu_synchronize_post_reset(CPUState *cpu)
{
- kvm_arch_put_registers(cpu, KVM_PUT_RESET_STATE);
+ if (kvm_arch_put_registers(cpu, KVM_PUT_RESET_STATE)) {
+ abort();
+ }
cpu->kvm_vcpu_dirty = false;
}
void kvm_cpu_synchronize_post_init(CPUState *cpu)
{
- kvm_arch_put_registers(cpu, KVM_PUT_FULL_STATE);
+ if (kvm_arch_put_registers(cpu, KVM_PUT_FULL_STATE)) {
+ abort();
+ }
cpu->kvm_vcpu_dirty = false;
}
@@ -1595,7 +1601,9 @@ int kvm_cpu_exec(CPUArchState *env)
do {
if (cpu->kvm_vcpu_dirty) {
- kvm_arch_put_registers(cpu, KVM_PUT_RUNTIME_STATE);
+ if (kvm_arch_put_registers(cpu, KVM_PUT_RUNTIME_STATE)) {
+ abort();
+ }
cpu->kvm_vcpu_dirty = false;
}