aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvm-all.c b/kvm-all.c
index c3a46e2438..8575a4dee2 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -298,6 +298,11 @@ int kvm_cpu_exec(CPUState *env)
}
} while (ret > 0);
+ if ((env->interrupt_request & CPU_INTERRUPT_EXIT)) {
+ env->interrupt_request &= ~CPU_INTERRUPT_EXIT;
+ env->exception_index = EXCP_INTERRUPT;
+ }
+
return ret;
}