aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/x86/xen/enlighten_pvh.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-09-30 14:19:16 +0200
committerJuergen Gross <jgross@suse.com>2021-10-05 08:36:12 +0200
commit4d1ab432acc9391a5ae13c629dbb5882c29fd1b0 (patch)
treeeb25eb590e4ae71514393af2acfee5b691ffad16 /arch/x86/xen/enlighten_pvh.c
parentxen/x86: make "earlyprintk=xen" work for HVM/PVH DomU (diff)
downloadwireguard-linux-4d1ab432acc9391a5ae13c629dbb5882c29fd1b0.tar.xz
wireguard-linux-4d1ab432acc9391a5ae13c629dbb5882c29fd1b0.zip
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>
Diffstat (limited to 'arch/x86/xen/enlighten_pvh.c')
-rw-r--r--arch/x86/xen/enlighten_pvh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten_pvh.c b/arch/x86/xen/enlighten_pvh.c
index 0d5e34b9e6f9..9029c5ab60e2 100644
--- a/arch/x86/xen/enlighten_pvh.c
+++ b/arch/x86/xen/enlighten_pvh.c
@@ -36,6 +36,9 @@ void __init xen_pvh_init(struct boot_params *boot_params)
pfn = __pa(hypercall_page);
wrmsr_safe(msr, (u32)pfn, (u32)(pfn >> 32));
+ if (xen_initial_domain())
+ x86_init.oem.arch_setup = xen_add_preferred_consoles;
+
xen_efi_init(boot_params);
}