x86: re-enable NX if disabled
authorJan Beulich <jbeulich@suse.com>
Thu, 10 Dec 2015 12:17:21 +0000 (13:17 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Dec 2015 12:17:21 +0000 (13:17 +0100)
commit7cc65a9e8178124464760fe6a6bf2ab3726db877
tree60840efd82fc2a54129548064096b2031d5059ea
parent323b2261c124166a7551a2f18387bf0d493f793c
x86: re-enable NX if disabled

I noticed Linux 4.4 doing this universally now, and I think it's a good
idea to override such anti-security BIOS settings (we certainly have no
compatibility problem due to NX being enabled).

Secondary changes:
- no need to check supported extended CPUID level for leaves 80000000
  and 80000001 (required on x86-64)
- no need to update c->cpuid_level in early_init_intel() (done anyway
  in generic_identify())
- alignment of trampoline data items

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/boot/trampoline.S
xen/arch/x86/cpu/common.c
xen/arch/x86/cpu/intel.c
xen/include/asm-x86/msr-index.h
xen/include/asm-x86/processor.h