aboutsummaryrefslogtreecommitdiff
path: root/target-i386
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 10:03:30 -0600
commitde3ea06d59a110eb401c543b992dd85779ed8362 (patch)
tree85558d1183e3c4a3149961e9281342b7357a832e /target-i386
parentfe46a160ce16a394395fa9d9a46680416f41e85a (diff)
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> (cherry picked from commit e73223a5849d9e695b5f3b5a4a2a812e68e3735d)
Diffstat (limited to 'target-i386')
-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 de79eb7607..408450361a 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;