Re: [uml-devel] [PATCH] lib: Consolidate DEBUG_STACK_USAGE option

2011-05-10 Thread Ralf Baechle
On Fri, May 06, 2011 at 10:57:11PM -0700, Stephen Boyd wrote: Acked-by: Ralf Baechle Ralf -- Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel ha

[uml-devel] [PATCH 2/4] um: fix abort

2011-05-10 Thread Richard Weinberger
os_dump_core() uses abort() to terminate UML in case of an fatal error. glibc's abort() calls raise(SIGABRT) which makes use of tgkill(). tgkill() has no effect within UML's kernel threads because they are not pthreads. As fallback abort() executes an invalid instruction to terminate the process. T

[uml-devel] [PATCH 4/4] um: os_dump_core() cleanup

2011-05-10 Thread Richard Weinberger
When os_dump_core() raises SIGTERM to bring down all UML processes this would also trigger the quite complex do_uml_exitcalls() routine. This is why UML crashed often while panicking. Let's make os_dump_core() short and painless by killing all UML processes with SIGHUP and calling the only sane ex

[uml-devel] [PATCH 3/4] um: remove SIGHUP handler

2011-05-10 Thread Richard Weinberger
The UML kernel ignores SIGHUP anyway. This handler is in vain. Signed-off-by: Richard Weinberger --- arch/um/os-Linux/main.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c index 39613ea..fb2a97a 100644 --- a/arch/um/os-L

[uml-devel] [PATCH 1/4] um: fix UML_LIB_PATH

2011-05-10 Thread Richard Weinberger
UML_LIB_PATH is hardcoded to /usr/lib/uml/, on 64bit systems UML_LIB_PATH needs to be /usr/lib64/uml/. Signed-off-by: Richard Weinberger --- arch/um/drivers/xterm.c |2 +- arch/um/include/shared/os.h |6 ++ arch/um/os-Linux/main.c |2 +- 3 files changed, 8 insertions(+),

[uml-devel] [PATCH 2/3] um: add ucast ethernet transport.

2011-05-10 Thread Richard Weinberger
From: Nolan Leake The ucast transport is similar to the mcast transport (and, in fact, shares most of its code), only it uses UDP unicast to move packets. Obviously this is only useful for point-to-point connections between virtual ethernet devices. Signed-off-by: Nolan Leake Signed-off-by: Ri

[uml-devel] [PATCH 3/3] um: print info about fatal segfaults

2011-05-10 Thread Richard Weinberger
Print a short info about fatal segfaults like other archs do. Signed-off-by: Richard Weinberger --- arch/um/kernel/trap.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.c index 637c650..b2e3d82 100644 -

[uml-devel] [PATCH 1/3] um: add earlyprintk support

2011-05-10 Thread Richard Weinberger
User Mode Linux can also benefit from earlyprintk. UML's earlyprintk writes kernel messages directly to stdout. Signed-off-by: Richard Weinberger --- arch/um/Kconfig.debug | 10 ++ arch/um/include/shared/os.h |1 + arch/um/kernel/Makefile |1 + arch/um/kernel/ea