xen/x86: generalize preferred console model from PV to PVH Dom0
authorJan Beulich <jbeulich@suse.com>
Thu, 30 Sep 2021 12:19:16 +0000 (14:19 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 5 Oct 2021 06:36:12 +0000 (08:36 +0200)
commit4d1ab432acc9391a5ae13c629dbb5882c29fd1b0
treeeb25eb590e4ae71514393af2acfee5b691ffad16
parent42bc9716bc1df21b55b303fe243f8575b3af24f9
xen/x86: generalize preferred console model from PV to PVH Dom0

Without announcing hvc0 as preferred it won't get used as long as tty0
gets registered earlier. This is particularly problematic with there not
being any screen output for PVH Dom0 when the screen is in graphics
mode, as the necessary information doesn't get conveyed yet from the
hypervisor.

Follow PV's model, but be conservative and do this for Dom0 only for
now.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/582328b6-c86c-37f3-d802-5539b7a86736@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/enlighten.c
arch/x86/xen/enlighten_pv.c
arch/x86/xen/enlighten_pvh.c
arch/x86/xen/xen-ops.h