From: Julien Grall <julien.grall@linaro.org>
To: Sander Bogaert <sander.bogaert@elis.ugent.be>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Xen on Arndale with SSD
Date: Mon, 22 Apr 2013 11:42:47 +0100 [thread overview]
Message-ID: <51751427.9010702@linaro.org> (raw)
In-Reply-To: <CANO7gZesxJ2VQRjH8YZm3LMCa+-XsPVQvxZCdQQAy4SaTVqo4g@mail.gmail.com>
On 04/19/2013 10:11 AM, Sander Bogaert wrote:
> Hi,
>
> I was wondering if anyone managed to use an ssd in this setup yet? I
> gave it a try:
>
> - Julien's xen / dom0 / domU branches
> - Comay Venus 3S SSD drive
> - Changed the dts compiled in Xen to have root=/dev/sda1 for dom0
> kernel parameter.
> - The bootloader is on the SD card, the kernel and xen are loaded
> using PXE, the dom0 rootfs is on the ssd disk.
>
> Xen hangs on (complete log attached):
> (XEN) 3... 2... 1...
> (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch
> input to Xen)
> (XEN) Freed 204kB init memory.
I think linux hangs before hvc console is initialized. Could you try
to apply this hackish patch and resent the log? This patch will directly
call the console hypercall instead of buffering messages.
diff --git a/kernel/printk.c b/kernel/printk.c
index abbdd9e..6975215 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -1652,6 +1652,8 @@ asmlinkage int printk_emit(int facility, int level,
}
EXPORT_SYMBOL(printk_emit);
+void xen_raw_console_write(const char *buf);
+
/**
* printk - print a kernel message
* @fmt: format string
@@ -1677,6 +1679,7 @@ asmlinkage int printk(const char *fmt, ...)
{
va_list args;
int r;
+ static char buf[512];
#ifdef CONFIG_KGDB_KDB
if (unlikely(kdb_trap_printk)) {
@@ -1687,9 +1690,12 @@ asmlinkage int printk(const char *fmt, ...)
}
#endif
va_start(args, fmt);
- r = vprintk_emit(0, -1, NULL, 0, fmt, args);
+// r = vprintk_emit(0, -1, NULL, 0, fmt, args);
+ r = vsnprintf(buf, sizeof(buf), fmt, args);
va_end(args);
+ xen_raw_console_write(buf);
+
return r;
}
EXPORT_SYMBOL(printk);
next prev parent reply other threads:[~2013-04-22 10:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 9:11 Xen on Arndale with SSD Sander Bogaert
2013-04-22 10:42 ` Julien Grall [this message]
2013-04-24 3:00 ` David Park
2013-04-29 9:30 ` Sander Bogaert
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=51751427.9010702@linaro.org \
--to=julien.grall@linaro.org \
--cc=sander.bogaert@elis.ugent.be \
--cc=xen-devel@lists.xen.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.