xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] linux-2.6.18/xencons: generalize use of add_preferred_console()
@ 2013-12-13  9:30 Jan Beulich
  2014-02-06 22:53 ` Olaf Hering
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Beulich @ 2013-12-13  9:30 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 838 bytes --]

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@suse.com>

--- 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 #2: xen-console-add-preferred.patch --]
[-- Type: text/plain, Size: 886 bytes --]

xencons: generalize use of add_preferred_console()

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@suse.com>

--- 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 #3: Type: text/plain, Size: 126 bytes --]

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-02-07 12:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-13  9:30 [PATCH] linux-2.6.18/xencons: generalize use of add_preferred_console() Jan Beulich
2014-02-06 22:53 ` Olaf Hering
2014-02-07  8:18   ` Jan Beulich
2014-02-07  8:32     ` Olaf Hering
2014-02-07  9:12       ` Jan Beulich
2014-02-07 10:07         ` Olaf Hering
2014-02-07 10:24           ` Jan Beulich
2014-02-07 12:30             ` Olaf Hering
2014-02-07 12:38               ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).