aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-01-06 16:30:10 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-01-11 09:56:30 -0600
commite73223a5849d9e695b5f3b5a4a2a812e68e3735d (patch)
tree31abebd686544aab11935e3b50c975f54e22bbdd
parent3f7638ec4093100a63b18cbacd45dcd847f7c06b (diff)
downloadqemu-e73223a5849d9e695b5f3b5a4a2a812e68e3735d.zip
qemu-e73223a5849d9e695b5f3b5a4a2a812e68e3735d.tar.gz
qemu-e73223a5849d9e695b5f3b5a4a2a812e68e3735d.tar.bz2
remove pending exception on vcpu reset.
Without this qemu can even start on kvm modules with events support since default value of exception_injected in zero and this is #DE exception. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--target-i386/kvm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index de79eb7..4084503 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -227,6 +227,7 @@ int kvm_arch_init_vcpu(CPUState *env)
void kvm_arch_reset_vcpu(CPUState *env)
{
+ env->exception_injected = -1;
env->interrupt_injected = -1;
env->nmi_injected = 0;
env->nmi_pending = 0;