[uml-devel] [PATCH 12/12] UML - Add throttling to console driver

2006-01-03 Thread Jeff Dike
This patch adds support for throttling and unthrottling input when the tty driver can't handle it. Index: linux-2.6.15/arch/um/drivers/ssl.c === --- linux-2.6.15.orig/arch/um/drivers/ssl.c 2006-01-03 17:32:45.0 -0500 +++

[uml-devel] [PATCH 10/12] UML - Simplify console opening/closing and irq registration

2006-01-03 Thread Jeff Dike
This patch simplifies the opening and closing of host console devices and the registration and deregistration of IRQs. The intent is to make it obvious that an IRQ can't exist without an open file descriptor. chan_enable will now open the channel, and when both opening and IRQ registration are des

[uml-devel] [PATCH 3/12] UML - Formatting changes

2006-01-03 Thread Jeff Dike
This patch makes a bunch of non-functional changes - return(foo); becomes return foo; some statements are broken across lines for readability some trailing whitespace is cleaned up open_one_chan took four arguments, three of which could be deduced from the first. Accordingly, they

[uml-devel] [PATCH 11/12] UML - Fix flip_buf full handling

2006-01-03 Thread Jeff Dike
When the tty flip_buf is full, it's a good idea to delay the input processing for a jiffy, rather than just scheduling the tasklet immediately. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/drivers/chan_kern.c

[uml-devel] [PATCH 9/12] UML - move console configuration

2006-01-03 Thread Jeff Dike
This patch changes when console devices are configured in order to prepare the ground for the next patch. parse_chan_pair is now done earlier, when initcalls are run, rather than when the device is opened. When a host device disappears, the channel list is closed, but not freed. This is required b

[uml-devel] [PATCH 8/12] UML - line_setup interface change

2006-01-03 Thread Jeff Dike
line_setup is changed to return the device which it set up, rather than just success or failure. This will be important in the line-config patch. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/drivers/line.c ==

[uml-devel] [PATCH 6/12] UML - Move mconsole support out of generic code

2006-01-03 Thread Jeff Dike
A bit of restructuring which eliminates the all_allowed argument (which is mconsole-specific) to line_setup. That logic is moved to the mconsole callback. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/drivers/line.c

[uml-devel] [PATCH 2/12] UML - non-void functions should return something

2006-01-03 Thread Jeff Dike
There are a few functions which are declared to return something, but don't. These are actually infinite loops which are forced to be declared as non-void. This makes them all return 0. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/drivers/ubd_kern.c =

[uml-devel] [PATCH 7/12] UML - Add static initializations and declarations

2006-01-03 Thread Jeff Dike
Some structure fields were being dynamically initialized when they could be initialized at compile-time instead. This also makes some declarations static (in the C sense). Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/include/line.h =

[uml-devel] [PATCH 5/12] UML - Remove unneeded structure field

2006-01-03 Thread Jeff Dike
This removes a structure field which turned out to be pointless, and references to it. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/drivers/chan_kern.c === --- linux-2.6.15.orig/arch/um/drivers/chan_kern.c

[uml-devel] [PATCH 4/12] UML - use ARRAY_SIZE

2006-01-03 Thread Jeff Dike
This patch replaces instances of "sizeof(foo)/sizeof(foo[0])" with ARRAY_SIZE(foo), which expands to the same thing. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/drivers/ssl.c === --- linux-2.6.15.orig/ar

[uml-devel] [PATCH 1/12] UML - use kstrdup

2006-01-03 Thread Jeff Dike
There were a bunch of calls to uml_strdup dating from before kstrdup was introduced. This changes those calls. It doesn't eliminate the definition since there is still a couple of calls in userspace code (which should probably call the libc strdup). Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>

[uml-devel] 2.6.15 is out (and here is a skas3 patch for it)

2006-01-03 Thread Antoine Martin
There were some trivial merge problems when using the 2.6.14 patch. Here is the same patch but without any offsets: http://uml.nagafix.co.uk/skas-2.6.15-v9-pre7.patch.bz2 Antoine --- This SF.net email is sponsored by: Splunk Inc. Do you grep t

Re: [uml-devel] grsecurity + skas UML patch for 2.6.14.5

2006-01-03 Thread Blaisorblade
On Tuesday 03 January 2006 14:55, Lubomir Host wrote: > Hi guys, > > I have one question. It is possible to run grsecurity kernel with skas3 > UML (User Mode Linux) patch from > > http://www.user-mode-linux.org/~blaisorblade/patches/skas3-2.6/skas-2.6.14- >v8.2/skas-2.6.14-v8.2.patch.bz2 > > ? I ha

[uml-devel] grsecurity + skas UML patch for 2.6.14.5

2006-01-03 Thread Lubomir Host
Hi guys, I have one question. It is possible to run grsecurity kernel with skas3 UML (User Mode Linux) patch from http://www.user-mode-linux.org/~blaisorblade/patches/skas3-2.6/skas-2.6.14-v8.2/skas-2.6.14-v8.2.patch.bz2 ? I have tried to create kernel with following patches (apply in this orde