From: Gleb Natapov Date: Wed, 6 Jan 2010 14:30:10 +0000 (+0200) Subject: remove pending exception on vcpu reset. X-Git-Tag: pull-nvme-20200902~13067 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e73223a5849d9e695b5f3b5a4a2a812e68e3735d;p=qemu-nvme.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 --- 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;