From patchwork Wed Jan 6 14:30:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 42298 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6950CB6EEB for ; Thu, 7 Jan 2010 01:31:23 +1100 (EST) Received: from localhost ([127.0.0.1]:47779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSWuu-0004zA-A1 for incoming@patchwork.ozlabs.org; Wed, 06 Jan 2010 09:31:20 -0500 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 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 8A8D018D450; Wed, 6 Jan 2010 16:30:10 +0200 (IST) Date: Wed, 6 Jan 2010 16:30:10 +0200 From: Gleb Natapov To: qemu-devel@nongnu.org Message-ID: <20100106143010.GP4905@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH] remove pending exception on vcpu reset. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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 --- Gleb. 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;