From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUMiK-0004kt-GM for qemu-devel@nongnu.org; Mon, 11 Jan 2010 11:01:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUMiF-0004hl-PG for qemu-devel@nongnu.org; Mon, 11 Jan 2010 11:01:55 -0500 Received: from [199.232.76.173] (port=56668 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUMiF-0004hZ-8q for qemu-devel@nongnu.org; Mon, 11 Jan 2010 11:01:51 -0500 Received: from mail-yx0-f188.google.com ([209.85.210.188]:56810) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUMiE-0002oc-R3 for qemu-devel@nongnu.org; Mon, 11 Jan 2010 11:01:50 -0500 Received: by mail-yx0-f188.google.com with SMTP id 26so20730971yxe.4 for ; Mon, 11 Jan 2010 08:01:50 -0800 (PST) Message-ID: <4B4B4B6B.2070203@codemonkey.ws> Date: Mon, 11 Jan 2010 10:01:47 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] remove pending exception on vcpu reset. References: <20100106143010.GP4905@redhat.com> In-Reply-To: <20100106143010.GP4905@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: qemu-devel@nongnu.org On 01/06/2010 08:30 AM, Gleb Natapov wrote: > 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 > Applied. Thanks. Regards, Anthony Liguori > 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. > > > >