From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHoIu-0006v0-PL for qemu-devel@nongnu.org; Wed, 23 Jan 2008 17:42:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHoIs-0006sf-U4 for qemu-devel@nongnu.org; Wed, 23 Jan 2008 17:42:44 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHoIs-0006sN-Ot for qemu-devel@nongnu.org; Wed, 23 Jan 2008 17:42:42 -0500 Received: from os.inf.tu-dresden.de ([141.76.48.99]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JHoIs-0002nW-EE for qemu-devel@nongnu.org; Wed, 23 Jan 2008 17:42:42 -0500 Received: from erwin.inf.tu-dresden.de ([141.76.48.80] helo=chrom.inf.tu-dresden.de) by os.inf.tu-dresden.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1JHoIp-0000Ug-Dr for qemu-devel@nongnu.org; Wed, 23 Jan 2008 23:42:39 +0100 Received: from kauer by chrom.inf.tu-dresden.de with local (Exim 4.68) (envelope-from ) id 1JHoIo-0001kt-J2 for qemu-devel@nongnu.org; Wed, 23 Jan 2008 23:42:38 +0100 Date: Wed, 23 Jan 2008 23:42:38 +0100 From: Bernhard Kauer Message-ID: <20080123224238.GA3150@chrom.inf.tu-dresden.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] fix SVM event injection Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The SVM event injection mechanism for NMI and INTRs should not be handled as software interrupts. Bernhard Kauer --W/nzBZO5zC0uMSeA Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="qemu_eventinj.diff" Index: target-i386/helper.c --- target-i386/helper.c 24 Dec 2007 13:36:00 -0000 1.98 +++ target-i386/helper.c 23 Jan 2008 22:37:49 -0000 @@ -4124,7 +4193,7 @@ case SVM_EVTINJ_TYPE_INTR: env->exception_index = vector; env->error_code = event_inj_err; - env->exception_is_int = 1; + env->exception_is_int = 0; env->exception_next_eip = -1; if (loglevel & CPU_LOG_TB_IN_ASM) fprintf(logfile, "INTR"); @@ -4132,7 +4201,7 @@ case SVM_EVTINJ_TYPE_NMI: env->exception_index = vector; env->error_code = event_inj_err; - env->exception_is_int = 1; + env->exception_is_int = 0; env->exception_next_eip = EIP; if (loglevel & CPU_LOG_TB_IN_ASM) fprintf(logfile, "NMI"); --W/nzBZO5zC0uMSeA--