Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kpgn9-0005oh-Mu for qemu-devel@nongnu.org; Tue, 14 Oct 2008 06:06:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kpgn8-0005nt-Nd for qemu-devel@nongnu.org; Tue, 14 Oct 2008 06:06:15 -0400 Received: from [199.232.76.173] (port=34037 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kpgn8-0005nj-7X for qemu-devel@nongnu.org; Tue, 14 Oct 2008 06:06:14 -0400 Received: from hall.aurel32.net ([88.191.82.174]:39243) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kpgn7-0000z5-Ma for qemu-devel@nongnu.org; Tue, 14 Oct 2008 06:06:14 -0400 Date: Tue, 14 Oct 2008 12:06:11 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] 3/5: Bugfix needed for FreeBSD/amd64 guests Message-ID: <20081014100611.GC13141@volta.aurel32.net> References: <20081001183838.GA70670@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20081001183838.GA70670@saturn.kn-bremen.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juergen Lock Cc: qemu-devel@nongnu.org On Wed, Oct 01, 2008 at 08:38:39PM +0200, Juergen Lock wrote: > This was originally posted as: > http://www.nabble.com/-PATCH--i386-hard-interrupt-generation-bug-fix-p14921171.html If I understand correctly, the problem appears when running FreeBSD/amd64 as a guest. Could you please give more details about that? (FreeBSD version, how to reproduce the problem, symptoms). Thanks. > Index: qemu/cpu-exec.c > @@ -394,16 +394,18 @@ > (env->eflags & IF_MASK && > !(env->hflags & HF_INHIBIT_IRQ_MASK))))) { > int intno; > - svm_check_intercept(SVM_EXIT_INTR); > env->interrupt_request &= ~(CPU_INTERRUPT_HARD | CPU_INTERRUPT_VIRQ); > intno = cpu_get_pic_interrupt(env); > - if (loglevel & CPU_LOG_TB_IN_ASM) { > - fprintf(logfile, "Servicing hardware INT=0x%02x\n", intno); > + if (intno>=0) { > + svm_check_intercept(SVM_EXIT_INTR); > + if (loglevel & CPU_LOG_TB_IN_ASM) { > + fprintf(logfile, "Servicing hardware INT=0x%02x\n", intno); > + } > + do_interrupt(intno, 0, 0, 0, 1); > + /* ensure that no TB jump will be modified as > + the program flow was changed */ > + next_tb = 0; > } > - do_interrupt(intno, 0, 0, 0, 1); > - /* ensure that no TB jump will be modified as > - the program flow was changed */ > - next_tb = 0; > #if !defined(CONFIG_USER_ONLY) > } else if ((interrupt_request & CPU_INTERRUPT_VIRQ) && > (env->eflags & IF_MASK) && > > Signed-off-by: Juergen Lock > > > -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net