Skip to content

Commit 42bc971

Browse files
jbeulichjgross1
authored andcommitted
xen/x86: make "earlyprintk=xen" work for HVM/PVH DomU
xenboot_write_console() is dealing with these quite fine so I don't see why xenboot_console_setup() would return -ENOENT in this case. Adjust documentation accordingly. 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 8e24d9b commit 42bc971

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@
12551255
The VGA and EFI output is eventually overwritten by
12561256
the real console.
12571257

1258-
The xen output can only be used by Xen PV guests.
1258+
The xen option can only be used in Xen domains.
12591259

12601260
The sclp output can only be used on s390.
12611261

drivers/tty/hvc/hvc_xen.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,10 +607,8 @@ static int __init xenboot_console_setup(struct console *console, char *string)
607607
{
608608
static struct xencons_info xenboot;
609609

610-
if (xen_initial_domain())
610+
if (xen_initial_domain() || !xen_pv_domain())
611611
return 0;
612-
if (!xen_pv_domain())
613-
return -ENODEV;
614612

615613
return xencons_info_pv_init(&xenboot, 0);
616614
}

0 commit comments

Comments
 (0)