xen/x86: make "earlyprintk=xen" work for HVM/PVH DomU
authorJan Beulich <jbeulich@suse.com>
Thu, 30 Sep 2021 12:18:45 +0000 (14:18 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 5 Oct 2021 06:36:05 +0000 (08:36 +0200)
xenboot_write_console() is dealing with these quite fine so I don't see
why xenboot_console_setup() would return -ENOENT in this case.

Adjust documentation accordingly.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/3d212583-700e-8b2d-727a-845ef33ac265@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Documentation/admin-guide/kernel-parameters.txt
drivers/tty/hvc/hvc_xen.c

index bdb2200..259d03f 100644 (file)
                        The VGA and EFI output is eventually overwritten by
                        the real console.
 
-                       The xen output can only be used by Xen PV guests.
+                       The xen option can only be used in Xen domains.
 
                        The sclp output can only be used on s390.
 
index ee7ea8d..f1c99b4 100644 (file)
@@ -607,10 +607,8 @@ static int __init xenboot_console_setup(struct console *console, char *string)
 {
        static struct xencons_info xenboot;
 
-       if (xen_initial_domain())
+       if (xen_initial_domain() || !xen_pv_domain())
                return 0;
-       if (!xen_pv_domain())
-               return -ENODEV;
 
        return xencons_info_pv_init(&xenboot, 0);
 }