From e73223a5849d9e695b5f3b5a4a2a812e68e3735d Mon Sep 17 00:00:00 2001 From: Gleb Natapov Date: Wed, 6 Jan 2010 16:30:10 +0200 Subject: 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 Signed-off-by: Anthony Liguori --- target-i386/kvm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'target-i386') 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; -- cgit v1.1