KQEMU 0.7.1 not working
Not sure why, but dmesg says this:
kqemu: Unknown symbol __PAGE_KERNEL_EXEC
Signature · 1 line
Mike
Quoted 5 lines · Mike Swanson
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
Pablo.-
Quoted 9 lines · Pablo R. Canto
Quoted 5 lines · Mike Swanson
Not sure why, but dmesg says this:
kqemu: Unknown symbol
__PAGE_KERNEL_EXECThis 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 Jul 2005 22:17:34 -0000 renamed from kqemu-linux.c 25 Apr 2005 22:14:39 -0000 1.4 +7 -1
@@ -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
The first patch worked fine for me, but I've got kqemu-0.7.1-1 downloaded for the next time I sync with CVS
Thanks for both of you guys' help.
Signature · 1 line
Mike