From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DyU34-0002HR-N5 for qemu-devel@nongnu.org; Fri, 29 Jul 2005 08:33:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DyU30-0002FF-Pg for qemu-devel@nongnu.org; Fri, 29 Jul 2005 08:33:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DyU30-0002Dv-Cv for qemu-devel@nongnu.org; Fri, 29 Jul 2005 08:33:06 -0400 Received: from [62.89.75.144] (helo=bozon2.softax.com.pl) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DyUB9-0001Lu-6E for qemu-devel@nongnu.org; Fri, 29 Jul 2005 08:41:31 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by bozon2.softax.com.pl (Postfix) with ESMTP id 0E742DC046 for ; Fri, 29 Jul 2005 14:29:38 +0200 (CEST) Received: from bozon2.softax.pl ([127.0.0.1]) by localhost (bozon2.softax.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07825-10 for ; Fri, 29 Jul 2005 14:29:35 +0200 (CEST) Received: from [16.193.144.98] (unknown [16.193.144.98]) by bozon2.softax.com.pl (Postfix) with ESMTP id 80636DC045 for ; Fri, 29 Jul 2005 14:29:35 +0200 (CEST) Message-ID: <42EA228E.7010502@softax.com.pl> Date: Fri, 29 Jul 2005 14:35:26 +0200 From: Sebastian Kaliszewski MIME-Version: 1.0 Subject: Re: [Qemu-devel] KQEMU 0.7.1 not working References: <79bf9848050728110177ec33dc@mail.gmail.com> <42E94286.9020902@4m.com.ar> In-Reply-To: <42E94286.9020902@4m.com.ar> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Pablo R. Canto wrote: > Mike Swanson wrote: > >> Not sure why, but dmesg says this: >> >> kqemu: Unknown symbol __PAGE_KERNEL_EXEC >> >> > This patch is the solution > http://www.zarb.org/cgi-bin/viewcvs.cgi/plf/SPECS/non-free/dkms-kqemu/kqemu-0.7.1-PAGE_KERNEL_EXEC.patch?rev=1.1&view=log Farbice proposed this instead (and it works for me): --- kqemu-linux.c 25 Apr 2005 22:14:39 -0000 1.4 +++ kqemu-linux.c 25 Jul 2005 22:17:34 -0000 @@ -28,7 +28,13 @@ #define pfn_to_page(pfn) (mem_map + (pfn)) #endif -#ifndef PAGE_KERNEL_EXEC +#ifdef PAGE_KERNEL_EXEC +#if defined(__i386__) +/* problem : i386 kernels usually don't export __PAGE_KERNEL_EXEC */ +#undef PAGE_KERNEL_EXEC +#define PAGE_KERNEL_EXEC __pgprot(__PAGE_KERNEL & ~_PAGE_NX) +#endif +#else #define PAGE_KERNEL_EXEC PAGE_KERNEL #endif