Re: [uml-devel] [PATCH] Fix UML build on i386 Ubuntu Dapper

2006-06-29 Thread Jeff Dike
On Fri, Jun 30, 2006 at 02:29:48AM +0200, Paolo Giarrusso wrote: > Probably it can, and IMHO it's cleaner. For me the patch is now > perfect; Jeff please update the one in -mm. Yeah, I'll send an update. Jeff Using Tomcat but need to do more? Need to support web services,

Re: [uml-devel] [PATCH] Fix UML build on i386 Ubuntu Dapper

2006-06-29 Thread Paolo Giarrusso
Nishanth Aravamudan <[EMAIL PROTECTED]> ha scritto: > On 28.06.2006 [12:13:21 +0200], Blaisorblade wrote: > Just for clarity's sake, the reason the #undef is there, as far as > I can > tell, is otherwise the preprocessor (I'm assuming) goes and makes > the > output specification as 1:x86_64 inst

Re: [uml-devel] [PATCH 3/9] UML - Remove pte_mkexec

2006-06-29 Thread Andi Kleen
On Thursday 29 June 2006 23:36, Jeff Dike wrote: > Andi is making pte_mkexec go away, and UML had one of the last uses. Actually not go away, but do the correct thing on i386/x86-64. Just relying on its side effects of setting _USER was bad. Thanks, -Andi Using Tomcat but need to do more? Need t

Re: [uml-devel] [PATCH] Fix UML build on i386 Ubuntu Dapper

2006-06-29 Thread Nishanth Aravamudan
On 29.06.2006 [13:56:26 -0700], Nishanth Aravamudan wrote: > On 28.06.2006 [12:13:21 +0200], Blaisorblade wrote: > > On Wednesday 28 June 2006 02:47, Nishanth Aravamudan wrote: > > > On 27.06.2006 [11:31:28 -0700], Nishanth Aravamudan wrote: > > > > On 27.06.2006 [16:56:13 +0200], Blaisorblade wrot

[uml-devel] [PATCH 9/9] UML - add __raw_writeq definition

2006-06-29 Thread Jeff Dike
The x86_64 build requires a definition for __raw_writeq. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.16/include/asm-um/io.h === --- linux-2.6.16.orig/include/asm-um/io.h 2006-03-23 16:40:24.0 -0500 ++

[uml-devel] [PATCH 8/9] UML - Fix biarch gcc build on x86_64

2006-06-29 Thread Jeff Dike
I run an x86_64 kernel with i386 userspace (Ubuntu Dapper) and decided to try out UML today. I found that UML wasn't quite aware of biarch compilers (which Ubuntu i386 ships). A fix similar to what was done for x86_64 should probably be committed (see http://marc.theaimsgroup.com/?l=linux-kernel&m=

[uml-devel] [PATCH 7/9] UML - Remove stray file

2006-06-29 Thread Jeff Dike
Forgot to remove arch/um/kernel/time.c when it was mostly moved to arch/um/os-Linux. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.16-rc-mm/arch/um/kernel/time.c === --- linux-2.6.16-rc-mm.orig/arch/um/kernel/time.c

[uml-devel] [PATCH 5/9] UML - Add locking to xtime accesses

2006-06-29 Thread Jeff Dike
do_timer must be called with xtime_lock held. I'm not sure boot_timer_handler needs this, however I don't think it hurts: it simply disables irq and takes a spinlock. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Index: linux-2.6.17/arch/um/kernel/time_kern.c =

[uml-devel] [PATCH 6/9] UML - Remove unneeded time definitions

2006-06-29 Thread Jeff Dike
Remove um_time() and um_stime() syscalls since they are identical to system-wide ones. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Index: linux-2.6.17/arch/um/kernel/time_kern.c === --- linux-2.6.17.orig/arch/um

[uml-devel] [PATCH 4/9] UML - unregister useless console when it's not needed

2006-06-29 Thread Jeff Dike
-mm in combination with an FC5 init started dying with 'stderr=1' because init didn't like the lack of /dev/console and exited. The problem was that the stderr console, which is intended to dump printk output to the terminal before the regular console is initialized, isn't a tty, and so can't make

[uml-devel] [PATCH 3/9] UML - Remove pte_mkexec

2006-06-29 Thread Jeff Dike
Andi is making pte_mkexec go away, and UML had one of the last uses. This removes the use and the definition. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.16-rc-mm/arch/um/kernel/skas/mmu.c === --- linux-2.6.16-rc-m

[uml-devel] [PATCH 2/9] UML - Fix off-by-one bug in VM file creation

2006-06-29 Thread Jeff Dike
Fix an off-by-one bug in temp file creation. Seeking to the desired length and writing a byte resulted in the file being one byte longer than expected. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.17/arch/um/os-Linux/mem.c

[uml-devel] [PATCH 1/9] UML - Fix /proc/mounts parsing boundary condition

2006-06-29 Thread Jeff Dike
When parsing /proc/mounts looking for a tmpfs mount on /dev/shm, if a string that we are looking for if split across reads, then it won't be recognized. Fix this by refilling the buffer whenever we advance the cursor. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.16-rc-mm/arch/um

Re: [uml-devel] [PATCH] Fix UML build on i386 Ubuntu Dapper

2006-06-29 Thread Nishanth Aravamudan
On 28.06.2006 [12:13:21 +0200], Blaisorblade wrote: > On Wednesday 28 June 2006 02:47, Nishanth Aravamudan wrote: > > On 27.06.2006 [11:31:28 -0700], Nishanth Aravamudan wrote: > > > On 27.06.2006 [16:56:13 +0200], Blaisorblade wrote: > > > > On Tuesday 27 June 2006 00:02, Nishanth Aravamudan wrote

[uml-devel] [RFC: 2.6 patch] fix the INIT_ENV_ARG_LIMIT dependencies

2006-06-29 Thread Adrian Bunk
This patch fixes the INIT_ENV_ARG_LIMIT dependencies to what seems to have been intended. Spotted by Jean-Luc Leger. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Acked-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- This patch was already sent on: - 15 Apr 2006 --- linux-2.6.17-r

Re: [uml-devel] [PATCH] Task Size Init cleanup

2006-06-29 Thread Jeff Dike
On Mon, May 22, 2006 at 11:26:49PM +0200, [EMAIL PROTECTED] wrote: > I was looking at the code of the UML and more precisely at the functions > set_task_sizes_tt and set_task_sizes_skas. I noticed that these 2 > functions take a paramater (arg) which is not used : the function is > always called wi