Skip to content

Commit 8e24d9b

Browse files
jbeulichjgross1
authored andcommitted
xen/x86: allow "earlyprintk=xen" to work for PV Dom0
With preferred consoles "tty" and "hvc" announced as preferred, registering "xenboot" early won't result in use of the console: It also needs to be registered as preferred. Generalize this from being DomU- only so far. Signed-off-by: Jan Beulich <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
1 parent adf330a commit 8e24d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/xen/enlighten_pv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,6 @@ asmlinkage __visible void __init xen_start_kernel(void)
13481348
boot_params.hdr.hardware_subarch = X86_SUBARCH_XEN;
13491349

13501350
if (!xen_initial_domain()) {
1351-
add_preferred_console("xenboot", 0, NULL);
13521351
if (pci_xen)
13531352
x86_init.pci.arch_init = pci_xen_init;
13541353
x86_platform.set_legacy_features =
@@ -1393,6 +1392,7 @@ asmlinkage __visible void __init xen_start_kernel(void)
13931392
#endif
13941393
}
13951394

1395+
add_preferred_console("xenboot", 0, NULL);
13961396
if (!boot_params.screen_info.orig_video_isVGA)
13971397
add_preferred_console("tty", 0, NULL);
13981398
add_preferred_console("hvc", 0, NULL);

0 commit comments

Comments
 (0)