Skip to content

Commit 5054daa

Browse files
Boris OstrovskyDavid Vrabel
authored andcommitted
x86/xen: Initialize cr4 shadow for 64-bit PV(H) guests
Commit 1e02ce4 ("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: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
1 parent facb573 commit 5054daa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/xen/enlighten.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,6 +1758,7 @@ asmlinkage __visible void __init xen_start_kernel(void)
17581758
#ifdef CONFIG_X86_32
17591759
i386_start_kernel();
17601760
#else
1761+
cr4_init_shadow(); /* 32b kernel does this in i386_start_kernel() */
17611762
x86_64_start_reservations((char *)__pa_symbol(&boot_params));
17621763
#endif
17631764
}

0 commit comments

Comments
 (0)