All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Kaliszewski <Sebastian.Kaliszewski@softax.com.pl>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] KQEMU 0.7.1 not working
Date: Fri, 29 Jul 2005 14:35:26 +0200	[thread overview]
Message-ID: <42EA228E.7010502@softax.com.pl> (raw)
In-Reply-To: <42E94286.9020902@4m.com.ar>

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	other threads:[~2005-07-29 12:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28 18:01 [Qemu-devel] KQEMU 0.7.1 not working Mike Swanson
2005-07-28 20:39 ` Pablo R. Canto
2005-07-29 12:35   ` Sebastian Kaliszewski [this message]
2005-07-29 19:12     ` Mike Swanson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42EA228E.7010502@softax.com.pl \
    --to=sebastian.kaliszewski@softax.com.pl \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.