x86/setup: Read CR4 earlier in __start_xen()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 1 Nov 2021 10:19:57 +0000 (10:19 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 25 Mar 2022 17:06:38 +0000 (17:06 +0000)
commit875830393a420eedd2fb0cdba3e8512532c7daee
tree6d9a290c2dacdef7188d946539ce347b2a45a157
parent917b6ef91b9372dc09ba9a56740590c0b6cda6ca
x86/setup: Read CR4 earlier in __start_xen()

This is necessary for read_cr4() to function correctly.  Move the EFER caching
at the same time.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 9851bc4939101828d2ad7634b93c0d9ccaef5b7e)
xen/arch/x86/setup.c