x86/boot: Drop all use of lmsw
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 May 2019 17:14:03 +0000 (18:14 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 28 Aug 2019 18:52:54 +0000 (19:52 +0100)
commitf1a94202128e677be5c14f84492f80a12dba9571
tree8a8e17c9e918d03fba80b06dc16ec46a6cee878e
parentec92fcd1d089855a170b77c98055e1e49592aa5b
x86/boot: Drop all use of lmsw

lmsw is an obsolete relic of the 286 processor - so much so that it even lacks
intercept assistance on AMD processors.

Use a plain mov to %cr0 which is easier to follow, certainly faster to
virtualise on AMD hardware, and almost certainly a faster microcode path in
real hardware.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/trampoline.S
xen/arch/x86/boot/wakeup.S