qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] KQEMU 0.7.1 not working


From: Sebastian Kaliszewski
Subject: Re: [Qemu-devel] KQEMU 0.7.1 not working
Date: Fri, 29 Jul 2005 14:35:26 +0200
User-agent: Mozilla Thunderbird 1.0 (X11/20050113)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]