From: Gerd Knorr <kraxel@suse.de>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: Status of PAE support?
Date: 07 Jun 2005 12:16:46 +0200 [thread overview]
Message-ID: <87acm2o4j5.fsf@bytesex.org> (raw)
In-Reply-To: <077c7b5cf0b37c1e90cb87b0c8708583@cl.cam.ac.uk>
Keir Fraser <Keir.Fraser@cl.cam.ac.uk> writes:
> > http://www.theshore.net/~caker/xen/PAE-testing/test1/boot.log
> >
> > It boots OK if I disable PAE. I can proide binaries if needed.
>
> You need a PAE-enabled domain0 kernel as well, and our tree isn;t yet
> patched to support PAE. So bootstrapping Xen is as far as you'll get
> right now.
http://dl.bytesex.org/patches/ has xenlinux patches for you, havn't
found the time yet to update them for after-initial-pae-merge source
tree, so it likely is a bit tricky to get it going at the moment.
Seems the pae patch chunk for common/elf.c got lost on the merge (by
mistake or intentionally?). I had added a sanity-check there to catch
the case of attempting to boot a non-pae kernel on pae xen (or
visa-versa), so you'll get a clear error message instead of a kernel
crashing very early. Hmm, something wrong with that?
Gerd
Index: xen/common/elf.c
===================================================================
--- xen.orig/common/elf.c 2005-05-30 14:09:15.000000000 +0200
+++ xen/common/elf.c 2005-05-30 14:14:30.000000000 +0200
@@ -82,7 +82,20 @@ int parseelfimage(struct domain_setup_in
printk("ERROR: Xen will only load images built for Xen v3.0\n");
return -EINVAL;
}
-
+#if defined(__i386__)
+#ifdef CONFIG_X86_PAE
+ int xen_pae = 1;
+#else
+ int xen_pae = 0;
+#endif
+ int guest_pae = strstr(guestinfo, "PAE=yes") ? 1 : 0;
+ if (xen_pae != guest_pae) {
+ printk("ERROR: PAE mode mismatch (xen=%s,guest=%s)\n",
+ xen_pae ? "yes" : "no",
+ guest_pae ? "yes" : "no");
+ return -EINVAL;
+ }
+#endif
break;
}
if ( guestinfo == NULL )
next prev parent reply other threads:[~2005-06-07 10:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-07 2:23 Status of PAE support? Christopher S. Aker
2005-06-07 6:49 ` Keir Fraser
2005-06-07 10:16 ` Gerd Knorr [this message]
2005-06-07 21:01 ` Christopher S. Aker
2005-06-08 8:00 ` Gerd Knorr
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=87acm2o4j5.fsf@bytesex.org \
--to=kraxel@suse.de \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.com \
/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.