]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen: check EFER for NX before setting up GDT mapping
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Mon, 21 Sep 2009 20:34:06 +0000 (13:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:31:45 +0000 (09:31 -0700)
commitc22044b960eef0dfd48c9b608defaf2c5c3e7880
tree131cbf72d9b03a43d66836bf04528692f4b2a093
parent7bb8fd4ee497a34c68e35d259a20d98cbad7fc94
xen: check EFER for NX before setting up GDT mapping

commit b75fe4e5b869f8dbebd36df64a7fcda0c5b318ed upstream.

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.

[ Impact: prevent Xen crash on NX-less 64-bit machines ]

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/mm/Makefile
arch/x86/xen/enlighten.c