[uml-devel] [PATCH 1/9] UML - Separate libc-dependent umid code

2006-01-04 Thread Jeff Dike
I reworked Gennady's umid OS abstraction patch because the code shouldn't be moved entirely to os. As it turns out, I moved most of it anyway. This patch is the minimal one needed to move the code and have it work. It turns out that the concept of the umid is OS-independent, but almost everything

[uml-devel] [PATCH 2/9] UML - umid cleanup

2006-01-04 Thread Jeff Dike
This patch cleans up the umid code: The only_if_set argument to get_umid is gone. get_umid returns an empty string rather than NULL if there is no umid. umid_is_random is gone since its users went away. Some printfs were turned into printks because the code runs late

[uml-devel] [PATCH 3/9] UML - SIGWINCH handling cleanup

2006-01-04 Thread Jeff Dike
Code cleanup - unregister_winch and winch_cleanup had some duplicate code. This is now abstracted out into free_winch. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/drivers/line.c === --- linux-2.6.15.orig/

[uml-devel] [PATCH 4/9] UML - Better diagnostics for broken configs

2006-01-04 Thread Jeff Dike
Produce a compile-time error if both MODE_SKAS and MODE_TT are disabled. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/include/choose-mode.h === --- linux-2.6.15.orig/arch/um/include/choose-mode.h 2005-

[uml-devel] [PATCH 6/9] UML - capture printk output for mconsole stack

2006-01-04 Thread Jeff Dike
The stack command now sends the printk output back to the mconsole client. This is done by registering a special console for the mconsole driver. This receives all printk output. Normally, it is ignored, but when a stack command is issued, any printk output will be sent back to the client. Thi

[uml-devel] [PATCH 5/9] UML - add mconsole_reply variant with length param

2006-01-04 Thread Jeff Dike
This is needed for the console output patch, since we have a possibly non-NULL-terminated string there. So, the new interface takes a string and a length, and the old interface calls strlen on its string and calls the new interface with the length. There's also a bit of whitespace cleanup. Signe

[uml-devel] [PATCH 8/9] UML - Fix whitespace in mconsole driver

2006-01-04 Thread Jeff Dike
Fix up some bogus spacing in the mconsole driver. Also delete the emacs formatting comment at the end. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/drivers/mconsole_kern.c === --- linux-2.6.15.orig/arch/u

[uml-devel] [PATCH 9/9] UML - Free network IRQ correctly

2006-01-04 Thread Jeff Dike
Free the network IRQ when closing down the network devices at shutdown. Delete the device from the opened devices list on close. These prevent an -EBADF when later disabling SIGIO on all extant descriptors and a complaint from free_irq about freeing the IRQ twice. Signed-off-by: Jeff Dike <[EMAIL

[uml-devel] [PATCH 7/9] UML - Capture printk output for mconsole sysrq

2006-01-04 Thread Jeff Dike
Pass sysrq output back to the mconsole client using the mechanism introduced for stack output. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/drivers/mconsole_kern.c === --- linux-2.6.15.orig/arch/um/drivers

[uml-devel] Re: [PATCH 4/9] UML - Better diagnostics for broken configs

2006-01-04 Thread Andrew Morton
Jeff Dike <[EMAIL PROTECTED]> wrote: > > Produce a compile-time error if both MODE_SKAS and MODE_TT are disabled. > > Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> > > Index: linux-2.6.15/arch/um/include/choose-mode.h > === > --- linu

[uml-devel] Re: [PATCH 4/9] UML - Better diagnostics for broken configs

2006-01-04 Thread Jeff Dike
On Wed, Jan 04, 2006 at 03:24:33PM -0800, Andrew Morton wrote: > Jeff Dike <[EMAIL PROTECTED]> wrote: > > > > Produce a compile-time error if both MODE_SKAS and MODE_TT are disabled. > Is there no sane way to prevent this situation within Kconfig? I tried. The best I managed was to get *config to

[uml-devel] Re:User-mode-linux-devel -- confirmation of subscription -- request 414904

2006-01-04 Thread wang lianwei
confirm 414904

[uml-devel] Re: [PATCH 4/9] UML - Better diagnostics for broken configs

2006-01-04 Thread Jan Engelhardt
>Produce a compile-time error if both MODE_SKAS and MODE_TT are disabled. > What would happen if both were disabled? Say, if the host system does not have SKAS and I did not want any tracing/debugging stuff? Jan Engelhardt -- --- This SF.ne