From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSWtv-0004ev-Jl for qemu-devel@nongnu.org; Wed, 06 Jan 2010 09:30:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSWtq-0004bW-Gz for qemu-devel@nongnu.org; Wed, 06 Jan 2010 09:30:18 -0500 Received: from [199.232.76.173] (port=36068 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSWtq-0004bH-7F for qemu-devel@nongnu.org; Wed, 06 Jan 2010 09:30:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:7629) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSWtp-0005CK-N9 for qemu-devel@nongnu.org; Wed, 06 Jan 2010 09:30:14 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o06EUBSR005833 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 6 Jan 2010 09:30:12 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o06EUAGI007720 for ; Wed, 6 Jan 2010 09:30:11 -0500 Date: Wed, 6 Jan 2010 16:30:10 +0200 From: Gleb Natapov Message-ID: <20100106143010.GP4905@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] remove pending exception on vcpu reset. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 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; -- Gleb.