x86/boot: Cache cpu_has_hypervisor very early on boot
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Nov 2019 20:07:31 +0000 (20:07 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 21 Nov 2019 15:49:54 +0000 (15:49 +0000)
commita7b88f0545ffe7d3ca8036beed1af92ac2be112a
treed079d11455ba50eb01eb02d4e471993b72a86fe0
parent9678167db9ac2562ce7365dfc613db73cd50c8c7
x86/boot: Cache cpu_has_hypervisor very early on boot

We cache Long Mode and No Execute early on boot, so take the opportunity to
cache HYPERVISOR early as well.

Replace opencoded early access to the feature bit.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/apic.c
xen/arch/x86/boot/head.S
xen/arch/x86/efi/efi-boot.h
xen/arch/x86/guest/xen.c
xen/arch/x86/mm.c