From: Jeremy Fitzhardinge <jeremy@goop.org>
To: "Pasi Kärkkäinen" <pasik@iki.fi>
Cc: Charles Gruener <cjg9411@rit.edu>,
xen-devel@lists.xensource.com, fedora-xen@redhat.com
Subject: Re: [Fedora-xen] 2.6.31-1.2.65.xendom0.fc12.x86_64 crash on boot
Date: Tue, 15 Sep 2009 15:23:14 -0700 [thread overview]
Message-ID: <4AB013D2.908@goop.org> (raw)
In-Reply-To: <20090915113914.GT31123@reaktio.net>
On 09/15/09 04:39, Pasi Kärkkäinen wrote:
> On Tue, Sep 15, 2009 at 07:29:52AM -0400, Charles Gruener wrote:
>
>> Thanks for the help on configuring my boot options. I apologize that
>> I forgot to mention I'm using the latest kernel from M. Young,
>> 2.6.31-1.2.65.xendom0.fc12.x86_64. Here's what I get now that I've
>> done all of what you've said:
>>
>>
> Ok. I've CCd Jeremy and xen-devel.
>
> Does this crash look familiar to you Jeremy?
>
Does this fix it?
>From 76ca2d74040210450a670df773d760867f07d519 Mon Sep 17 00:00:00 2001
From: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Date: Tue, 15 Sep 2009 14:18:12 -0700
Subject: [PATCH] xen: check EFER for NX before setting up GDT mapping
x86-64 assumes NX is available by default, so we need to
explicitly check for it before using NX. Some first-generation
Intel x86-64 processors didn't support NX, and even recent systems
allow it to be disabled in BIOS.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
diff --git a/arch/x86/mm/Makefile b/arch/x86/mm/Makefile
index 72bb3a2..0088329 100644
--- a/arch/x86/mm/Makefile
+++ b/arch/x86/mm/Makefile
@@ -4,6 +4,7 @@ obj-y := init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \
# Make sure __phys_addr has no stackprotector
nostackp := $(call cc-option, -fno-stack-protector)
CFLAGS_ioremap.o := $(nostackp)
+CFLAGS_init.o := $(nostackp)
obj-$(CONFIG_SMP) += tlb.o
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 03644f9..5b55c92 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1092,6 +1092,11 @@ asmlinkage void __init xen_start_kernel(void)
__supported_pte_mask |= _PAGE_IOMAP;
+#ifdef CONFIG_X86_64
+ /* Work out if we support NX */
+ check_efer();
+#endif
+
xen_setup_features();
/* Get mfn list */
@@ -1132,11 +1137,6 @@ asmlinkage void __init xen_start_kernel(void)
pgd = (pgd_t *)xen_start_info->pt_base;
-#ifdef CONFIG_X86_64
- /* Work out if we support NX */
- check_efer();
-#endif
-
/* Don't do the full vcpu_info placement stuff until we have a
possible map and a non-dummy shared_info. */
per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0];
next prev parent reply other threads:[~2009-09-15 22:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <976E8557-F11D-416E-84C2-CD12B180CA1B@rit.edu>
[not found] ` <20090915071730.GP31123@reaktio.net>
[not found] ` <20090915075613.GQ31123@reaktio.net>
[not found] ` <82B3AFF8-B4F1-4347-82F3-04F100002684@rit.edu>
2009-09-15 11:39 ` [Fedora-xen] 2.6.31-1.2.65.xendom0.fc12.x86_64 crash on boot Pasi Kärkkäinen
2009-09-15 11:53 ` Pasi Kärkkäinen
2009-09-15 14:41 ` Nathan Stratton
2009-09-15 19:58 ` Jeremy Fitzhardinge
2009-09-15 21:01 ` Charles Gruener
2009-09-15 21:14 ` [Fedora-xen] " Jeremy Fitzhardinge
2009-09-15 22:23 ` Jeremy Fitzhardinge [this message]
2009-09-16 8:47 ` M A Young
2009-09-16 11:47 ` Pasi Kärkkäinen
2009-09-16 16:09 ` Charles Gruener
2009-09-21 19:07 ` Re: [Fedora-xen] " Jeremy Fitzhardinge
2009-09-21 19:24 ` Charles J Gruener
[not found] ` <alpine.GSO.2.00.0909151240230.27096@algedi.dur.ac.uk>
[not found] ` <20090915121026.GV31123@reaktio.net>
[not found] ` <alpine.LFD.2.00.0909151323110.16009@vega4.dur.ac.uk>
2009-09-15 12:46 ` Pasi Kärkkäinen
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=4AB013D2.908@goop.org \
--to=jeremy@goop.org \
--cc=cjg9411@rit.edu \
--cc=fedora-xen@redhat.com \
--cc=pasik@iki.fi \
--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.