On 26/09/18 12:00, Wei Liu wrote:
> The relocation code in __start_xen requires one extra element in the
> MBI structure. By the looks of it the temporary MBI array is already
> large enough. Add an assertion to catch any issue in the future.
>
> Signed-off-by: Wei Liu <wei.l...@citrix.com>

While this is all well and good, the ASSERT() never actually gets out
onto the console.  This is because, when a failure occurs, the console
hasn't been configured yet.

For development purposes I use:

diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c
index e48039d..64febfa 100644
--- a/xen/drivers/char/console.c
+++ b/xen/drivers/char/console.c
@@ -91,7 +91,7 @@ static uint32_t conringc, conringp;
 static int __read_mostly sercon_handle = -1;
 
 #ifdef CONFIG_X86
-static bool __read_mostly opt_console_xen; /* console=xen */
+static bool __read_mostly opt_console_xen = true; /* console=xen */
 #endif
 
 static DEFINE_SPINLOCK(console_lock);

which gets the details out into the L0 log.

As an addendum, might it be worth having opt_console_xen be tristate,
and enabled by the start of the PVH path, so log messages before the
command line is parsed end up being emitted?

~Andrew

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

Reply via email to