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

[Xen-devel] [PATCH] linux-2.6.18/xencons: generalize use of add_preferred_console()


  • To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Jan Beulich" <JBeulich@xxxxxxxx>
  • Date: Fri, 13 Dec 2013 09:30:26 +0000
  • Delivery-date: Fri, 13 Dec 2013 09:32:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Changeset 762:a070228ac76e ("add hvc compatibility mode to xencons"
added this call just for the HVC case, without giving any reason why
HVC would be special in this regard. Use the call for all cases.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/drivers/xen/console/console.c
+++ b/drivers/xen/console/console.c
@@ -214,8 +214,6 @@ static int __init xen_console_init(void)
                strcpy(kcons_info.name, "hvc");
                if (xc_num == -1)
                        xc_num = 0;
-               if (!is_initial_xendomain())
-                       add_preferred_console(kcons_info.name, xc_num, NULL);
                break;
 
        case XC_SERIAL:
@@ -236,6 +234,8 @@ static int __init xen_console_init(void)
 
        wbuf = alloc_bootmem(wbuf_size);
 
+       if (!is_initial_xendomain())
+               add_preferred_console(kcons_info.name, xc_num, NULL);
        register_console(&kcons_info);
 
  out:



Attachment: xen-console-add-preferred.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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