Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5054daa2 authored by Boris Ostrovsky's avatar Boris Ostrovsky Committed by David Vrabel
Browse files

x86/xen: Initialize cr4 shadow for 64-bit PV(H) guests



Commit 1e02ce4c ("x86: Store a per-cpu shadow copy of CR4")
introduced CR4 shadows.

These shadows are initialized in early boot code. The commit missed
initialization for 64-bit PV(H) guests that this patch adds.

Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
parent facb5732
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1758,6 +1758,7 @@ asmlinkage __visible void __init xen_start_kernel(void)
#ifdef CONFIG_X86_32
	i386_start_kernel();
#else
	cr4_init_shadow(); /* 32b kernel does this in i386_start_kernel() */
	x86_64_start_reservations((char *)__pa_symbol(&boot_params));
#endif
}