x86/boot: correct CR4 setup on APs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 May 2014 15:41:10 +0000 (17:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 16 May 2014 15:41:10 +0000 (17:41 +0200)
commit92009d3e98e8938e73a70a77566fa5e8ad5adf56
treeb10979cb269b7bf568670039a276590945e77756
parent279840d5ea6462a132cd2d69fe486fd7813e8483
x86/boot: correct CR4 setup on APs

It is not safe to load mmu_cr4_features into cr4 early on AP start.  Features
such as MCE require an int 0x18 handler to be set up.

Instead, load the minimum Xen CR4 features early but defer loading the full
'mmu_cr4_features' set until after the IDT has been set up.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/x86_64.S
xen/arch/x86/setup.c
xen/arch/x86/smpboot.c
xen/include/asm-x86/processor.h