[PATCH 2/4] UML - Remove unused sigcontext accessors

2008-02-12 Thread Jeff Dike
The macros which extract registers from a struct sigcontext are no longer needed and can be removed. They are starting not to build anyway, given the removal of the 'e' and 'r' from register names during the x86 merge. Cc: Jiri Olsa <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>

[PATCH 2/4] UML - Add !UML dependencies

2007-11-28 Thread Jeff Dike
From: Al Viro <[EMAIL PROTECTED]> That's not enough, unfortunately. If we go that way, we need to add dependencies on !UML for several options. [ jdike - "not enough" refers to my patch which enables X86_32 and RWSEM_XCHGADD_ALGORITHM in UML's Kconfig.i386 ] Signed-off-by: Al Viro <[EMAIL PROTE

[PATCH 2/4] UML - use ptrace directly in libc code

2007-11-20 Thread Jeff Dike
Some register accessor cleanups - userspace() was calling restore_registers and save_registers for no reason, since userspace() is on the libc side of the house, and these add no value over calling ptrace directly init_thread_registers and get_safe_registers were the same thing, so

Re: [PATCH 2/4] UML - Remove unused variables in the context switcher

2007-11-15 Thread Jeff Dike
On Thu, Nov 15, 2007 at 04:15:21PM -0800, Andrew Morton wrote: > I assumed from the above that Karol was the author of this patch. Please > let me know if that was wrong. He is - I forgot the From line... Jeff -- Work email - jdike at linux dot intel dot com - T

Re: [PATCH 2/4] UML - Remove unused variables in the context switcher

2007-11-15 Thread Andrew Morton
On Wed, 14 Nov 2007 14:20:49 -0500 Jeff Dike <[EMAIL PROTECTED]> wrote: > This patch removes a variable which was not used in two functions. > Yet another code cleanup, nothing really significant. > > Please note that I could not test this on x86_64. I don't have the > hardware for it. > > [ jdi

[PATCH 2/4] UML - Remove unused variables in the context switcher

2007-11-14 Thread Jeff Dike
This patch removes a variable which was not used in two functions. Yet another code cleanup, nothing really significant. Please note that I could not test this on x86_64. I don't have the hardware for it. [ jdike - Bits of tidying around the affected code. Also, it's fine on x86_64 ] Signed-off

[PATCH 2/4] UML - Fix kernel vs libc symbols clash

2007-11-01 Thread Jeff Dike
commit 2a772652c3971745228a2e40e6575ae594c88365 Author: Jeff Dike <[EMAIL PROTECTED]> Date: Tue Oct 16 01:26:45 2007 -0700 uml: fix an IPV6 libc vs kernel symbol clash On some systems, with IPV6 configured, there is a clash between the kernel's in6addr_any and the one in libc.

[PATCH 2/4] UML - Remove last include of libc asm/page.h

2007-10-31 Thread Jeff Dike
asm/page.h is disappearing from the libc headers and we don't need it anyway. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/skas/clone.c |1 - 1 file changed, 1 deletion(-) Index: linux-2.6.22/arch/um/kernel/skas/clone.c =

[PATCH 2/4] UML - Code tidying under arch/um/os-Linux

2007-10-30 Thread Jeff Dike
From: WANG Cong <[EMAIL PROTECTED]> This patch contains varied fixes and improvements for some files under arch/um/os-Linux/, such as a typo fix in a perror message, a missing argument fix for a printf, some constifying for pointers and so on. [ jdike - made sigprocmask failure return -errno inst

[PATCH 2/4] UML - Tidy recently-moved code

2007-07-30 Thread Jeff Dike
Now that the generic console operations are in a userspace file, we can do the following: directly call into libc instead of through the os_* wrappers eliminate os_window_size since it has only one user Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/drivers/chan_user.c |

[PATCH 2/4] UML - Send pointers instead of structures to I/O thread

2007-04-11 Thread Jeff Dike
Instead of writing entire structures between UML and the I/O thread, we send pointers. This cuts down on the amount of data being copied and possibly allows more requests to be pending between the two. This requires that the requests be kmalloced and freed instead of living on the stack. Signed-

[PATCH 2/4] UML - Start fixing os_read_file and os_write_file

2007-04-09 Thread Jeff Dike
This patch starts the removal of a very old, very broken piece of code. This stems from the problem of passing a userspace buffer into read() or write() on the host. If that buffer had not yet been faulted in, read and write will return -EFAULT. To avoid this problem, the solution was to fault t

[PATCH 2/4] UML - Delete HOST_FRAME_SIZE

2007-04-05 Thread Jeff Dike
HOST_FRAME_SIZE isn't used any more. It has been replaced with MAX_REG_NR. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/sys-i386/user-offsets.c |1 - arch/um/sys-x86_64/user-offsets.c |1 - 2 files changed, 2 deletions(-) Index: linux-2.6.21-mm/arch/um/sys-i386/user-offsets

Re: [uml-devel] [PATCH 2/4] UML - tidy process.c

2007-04-05 Thread Jeff Dike
On Tue, Apr 03, 2007 at 07:50:16PM +0200, Blaisorblade wrote: > Please, simply include uml-config.h and use just UML_CONFIG_MODE_TT. okok :-) Jeff Use only one ifdef to mark stack_sp as being tt mode only. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/include/kern_util.h |

[ PATCH 2/4] UML - Kernel segfaults should dump proper registers

2007-04-04 Thread Jeff Dike
If there's a segfault inside the kernel, we want a dump of the registers at the point of the segfault, not the registers at the point of calling panic or the last userspace registers. sig_handler_common_skas now uses a static register set in the case of a SIGSEGV to avoid messing up the process re

Re: [uml-devel] [PATCH 2/4] UML - tidy process.c

2007-04-03 Thread Blaisorblade
On lunedì 2 aprile 2007, Jeff Dike wrote: > Clean up arch/um/kernel/process.c - > lots of return(x); -> return x; conversions > a number of the small functions are either unused, in which > case they are gone, along any declarations in a header, or could be > made static. > curre

[PATCH 2/4] UML - tidy process.c

2007-04-02 Thread Jeff Dike
Clean up arch/um/kernel/process.c - lots of return(x); -> return x; conversions a number of the small functions are either unused, in which case they are gone, along any declarations in a header, or could be made static. current_pid is ifdefed on CONFIG_MODE_TT and its decla

[PATCH 2/4] UML - improve checking and diagnostics of ethernet MACs

2007-03-28 Thread Jeff Dike
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Improve checking and diagnostics for broadcast and multicast Ethernet MAC addresses, and distinguish between those cases in output; also make sure the device is assigned a MAC address valid only locally to avoid collisions. Signed-off-by

[PATCH 2/4] UML - Fix formatting violations in signal delivery code

2007-03-05 Thread Jeff Dike
Fix a few formatting bugs in the signal code. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/kernel/signal.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: test/arch/um/kernel/signal.c === --- test.or

[PATCH 2/4] UML - formatting fixes

2007-02-21 Thread Jeff Dike
Formatting fixes - style violations whitespace breakage emacs formatting comment removal Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/kernel/um_arch.c | 51 +-- arch/um/os-Linux/main.c | 11 + arch/um/sys-i3

[PATCH 2/4] UML - Include asm/page.h in order to get PAGE_SHIFT

2006-12-04 Thread Jeff Dike
Include the proper header to get a definition of PAGE_SHIFT. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.17/arch/um/include/sysdep-i386/stub.h === --- linux-2.6.17.orig/arch/um/include/sysdep-i386/stub.h2006

[PATCH 2/4] UML -

2005-08-15 Thread Jeff Dike
>From Al Viro: Fix a macro typo which could break if the macro is passed arguments with side-effects. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.13-rc6/arch/um/include/sysdep-x86_64/ptrace.h === --- linux-2.6.13-r

[patch 2/4] Uml support: reorganize PTRACE_SYSEMU support

2005-07-27 Thread blaisorblade
From: Bodo Stroesser <[EMAIL PROTECTED]> With this patch, we change the way we handle switching from PTRACE_SYSEMU to PTRACE_{SINGLESTEP,SYSCALL}, to free TIF_SYSCALL_EMU from double use as a preparation for PTRACE_SYSEMU_SINGLESTEP extension, without changing the behavior of the host kernel. Si

[PATCH 2/4] UML - Add skas0 command-line option

2005-07-26 Thread Jeff Dike
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> This adds the "skas0" parameter to force skas0 operation on SKAS3 host and shows which operating mode has been selected. Not intrusive, much more trivial than Bodo's patch, to merge for 2.6.13. Signed-off-by: Paolo 'Blaisorblade' Giarrusso