summary refs log tree commit diff stats
path: root/accel/kvm/kvm-accel-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel/kvm/kvm-accel-ops.c')
-rw-r--r--accel/kvm/kvm-accel-ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/kvm/kvm-accel-ops.c b/accel/kvm/kvm-accel-ops.c
index f5ac643fca..94c828ac8d 100644
--- a/accel/kvm/kvm-accel-ops.c
+++ b/accel/kvm/kvm-accel-ops.c
@@ -82,7 +82,7 @@ static bool kvm_vcpu_thread_is_idle(CPUState *cpu)
 
 static bool kvm_cpus_are_resettable(void)
 {
-    return !kvm_enabled() || kvm_cpu_check_are_resettable();
+    return !kvm_enabled() || !kvm_state->guest_state_protected;
 }
 
 #ifdef TARGET_KVM_HAVE_GUEST_DEBUG