All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Stefano Stabellini <sstabellini@kernel.org>,
	Wei Liu <wei.liu2@citrix.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	George Dunlap <George.Dunlap@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
	Julien Grall <julien.grall@arm.com>,
	Jan Beulich <jbeulich@suse.com>
Subject: [PATCH 2/2] xen: make opt_xen_console true before console initialisation
Date: Fri, 28 Sep 2018 09:24:37 +0100	[thread overview]
Message-ID: <20180928082437.15140-3-wei.liu2@citrix.com> (raw)
In-Reply-To: <20180928082437.15140-1-wei.liu2@citrix.com>

This helps capture issues before console is initialised. The impact is
minimal because it only affects Xen running in as a guest.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
 xen/drivers/char/console.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c
index e48039dd82..bbec98304e 100644
--- a/xen/drivers/char/console.c
+++ b/xen/drivers/char/console.c
@@ -91,7 +91,8 @@ static uint32_t conringc, conringp;
 static int __read_mostly sercon_handle = -1;
 
 #ifdef CONFIG_X86
-static bool __read_mostly opt_console_xen; /* console=xen */
+/* Set to true at start of day to catch early boot issues */
+static bool __read_mostly opt_console_xen = true; /* console=xen */
 #endif
 
 static DEFINE_SPINLOCK(console_lock);
@@ -821,6 +822,10 @@ void __init console_init_preirq(void)
 
     serial_init_preirq();
 
+#ifdef CONFIG_X86
+    opt_console_xen = false;
+#endif
+
     /* Where should console output go? */
     for ( p = opt_console; p != NULL; p = strchr(p, ',') )
     {
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2018-09-28  8:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-28  8:24 [PATCH 0/2] Minor improvement to early boot code Wei Liu
2018-09-28  8:24 ` [PATCH 1/2] x86: make sure module array is large enough in pvh-boot.c Wei Liu
2018-09-28 15:06   ` Jan Beulich
2018-09-28 15:13     ` Wei Liu
2018-09-28  8:24 ` Wei Liu [this message]
2018-09-28 15:08   ` [PATCH 2/2] xen: make opt_xen_console true before console initialisation Jan Beulich
2018-09-28 15:12     ` Wei Liu
2018-09-28 15:13       ` Andrew Cooper
2018-09-28 15:16         ` Wei Liu
2018-09-28 15:19       ` Jan Beulich
2018-09-28 15:23         ` Wei Liu
2018-09-28 15:53           ` Wei Liu
2018-09-28 16:05             ` Jan Beulich
2018-09-28 16:19               ` Wei Liu
2018-09-28 16:55                 ` Wei Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180928082437.15140-3-wei.liu2@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien.grall@arm.com \
    --cc=konrad.wilk@oracle.com \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.