From: Gleb Natapov Date: Wed, 6 Jan 2010 14:30:10 +0000 (+0200) Subject: remove pending exception on vcpu reset. X-Git-Tag: v0.12.2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de3ea06d59a110eb401c543b992dd85779ed8362;p=thirdparty%2Fqemu.git 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 (cherry picked from commit e73223a5849d9e695b5f3b5a4a2a812e68e3735d) --- diff --git a/target-i386/kvm.c b/target-i386/kvm.c index de79eb76070..408450361a9 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;