Skip to content

Commit a9fbf4d

Browse files
David Vrabelgregkh
authored andcommitted
xen/hvc: allow xenboot console to be used again
Commit d0380e6 (early_printk: consolidate random copies of identical code) added in 3.10 introduced a check for con->index == -1 in early_console_register(). Initialize index to -1 for the xenboot console so earlyprintk=xen works again. Signed-off-by: David Vrabel <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f8747d4 commit a9fbf4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/hvc/hvc_xen.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ struct console xenboot_console = {
636636
.name = "xenboot",
637637
.write = xenboot_write_console,
638638
.flags = CON_PRINTBUFFER | CON_BOOT | CON_ANYTIME,
639+
.index = -1,
639640
};
640641
#endif /* CONFIG_EARLY_PRINTK */
641642

0 commit comments

Comments
 (0)