[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] 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: Jan Beulich <jbeulich@xxxxxxxx>
---
Slightly RFC, as there may be side effects which I simply haven't
observed myself yet.
---
 arch/x86/xen/enlighten_pv.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- 4.18-rc2/arch/x86/xen/enlighten_pv.c
+++ 4.18-rc2-x86-xen-console-order/arch/x86/xen/enlighten_pv.c
@@ -1386,8 +1386,11 @@ asmlinkage __visible void __init xen_sta
                xen_boot_params_init_edd();
        }
 
-       add_preferred_console("tty", 0, NULL);
+       if (!boot_params.screen_info.orig_video_isVGA)
+               add_preferred_console("tty", 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
        /* PCI BIOS service won't work from a PV guest. */



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.