Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71dc0563 authored by Jan Beulich's avatar Jan Beulich Committed by Boris Ostrovsky
Browse files

x86/Xen: further refine add_preferred_console() invocations



As the sequence of invocations matters, add "tty" only after "hvc" when
a VGA console is available (which is often the case for Dom0, but hardly
ever for DomU).

Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
parent f76c318c
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -1385,8 +1385,11 @@ asmlinkage __visible void __init xen_start_kernel(void)
		xen_boot_params_init_edd();
		xen_boot_params_init_edd();
	}
	}


	if (!boot_params.screen_info.orig_video_isVGA)
		add_preferred_console("tty", 0, NULL);
		add_preferred_console("tty", 0, NULL);
	add_preferred_console("hvc", 0, NULL);
	add_preferred_console("hvc", 0, NULL);
	if (boot_params.screen_info.orig_video_isVGA)
		add_preferred_console("tty", 0, NULL);


#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
	/* PCI BIOS service won't work from a PV guest. */
	/* PCI BIOS service won't work from a PV guest. */