summaryrefslogtreecommitdiff
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
parentFix CPU topology initialization (diff)
downloadqemu-kvm-de3ea06d59a110eb401c543b992dd85779ed8362.tar.gz
qemu-kvm-de3ea06d59a110eb401c543b992dd85779ed8362.tar.bz2
qemu-kvm-de3ea06d59a110eb401c543b992dd85779ed8362.zip
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 de79eb760..408450361 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;