Skip to content

Commit 47b02f4

Browse files
committed
x86/xen: add tty0 and hvc0 as preferred consoles for dom0
Today the tty0 and hvc0 consoles are added as a preferred consoles for pv domUs only. As this requires a boot parameter for getting dom0 messages per default, add them for dom0, too. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Juergen Gross <jgross@suse.com>
1 parent c2d2e67 commit 47b02f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arch/x86/xen/enlighten_pv.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,8 +1376,6 @@ asmlinkage __visible void __init xen_start_kernel(void)
13761376

13771377
if (!xen_initial_domain()) {
13781378
add_preferred_console("xenboot", 0, NULL);
1379-
add_preferred_console("tty", 0, NULL);
1380-
add_preferred_console("hvc", 0, NULL);
13811379
if (pci_xen)
13821380
x86_init.pci.arch_init = pci_xen_init;
13831381
} else {
@@ -1410,6 +1408,10 @@ asmlinkage __visible void __init xen_start_kernel(void)
14101408

14111409
xen_boot_params_init_edd();
14121410
}
1411+
1412+
add_preferred_console("tty", 0, NULL);
1413+
add_preferred_console("hvc", 0, NULL);
1414+
14131415
#ifdef CONFIG_PCI
14141416
/* PCI BIOS service won't work from a PV guest. */
14151417
pci_probe &= ~PCI_PROBE_BIOS;

0 commit comments

Comments
 (0)