]> xenbits.xensource.com Git - people/iwj/xen.git/commit
x86: fix boot time APIC mode detection
authorJan Beulich <jbeulich@suse.com>
Thu, 23 May 2013 11:08:32 +0000 (13:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 23 May 2013 11:08:32 +0000 (13:08 +0200)
commit234c4dde2fd4f1182fe1a6bea6bced83fe363007
treedc711dc5aba877b21d9b7f3bfd076abd55fc9908
parent9204bc654562976c7cdebf21c6b5013f6e3057b3
x86: fix boot time APIC mode detection

current_cpu_data becomes valid only relatively late in the boot
process, so looking there for a particular feature early in the game
would generally give the appearance of the feature being unavailable.

Getting this wrong means that at kexec time the system would get
returned to xAPIC mode, causing disconnect_bsp_APIC() to try to access
the APIC page, which on systems with x2APIC pre-enabled will never get
set up.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/apic.c