Re: [uml-user] ska4 impact on users

2008-05-15 Thread Jeff Dike
On Fri, May 16, 2008 at 12:19:43AM +0200, vincent-perrier wrote: > I use non-patched kernels for the host and for the > guest, is there hope that in the future, simple > users that do not patch their hosts (or guest) > kernels will get the ska4? Yup, the hope is that the skas4 interfaces are accep

[uml-user] ska4 impact on users

2008-05-15 Thread vincent-perrier
Hello, I use non-patched kernels for the host and for the guest, is there hope that in the future, simple users that do not patch their hosts (or guest) kernels will get the ska4? Regards Vincent Perrier - This SF.net email i

[uml-user] [RFC PATCH 8/12] SKAS4 - stub management preparation

2008-05-15 Thread Jeff Dike
Tidy the existing stub code so that the skas4 code can be dropped in. diff --git a/arch/um/os-Linux/skas/mem.c b/arch/um/os-Linux/skas/mem.c index 484e68f..5f09a9b 100644 --- a/arch/um/os-Linux/skas/mem.c +++ b/arch/um/os-Linux/skas/mem.c @@ -40,35 +40,69 @@ static unsigned long syscall_regs[MAX_R

[uml-user] [RFC PATCH 3/12] SKAS4 - Host get_mm and switch_mm

2008-05-15 Thread Jeff Dike
This is the new_mm, switch_mm, and /proc//mm implementation for 32- and 64-bit x86 and UML, plus 32-bit support on 64-bit x86. diff --git a/arch/um/include/skas_ptrace.h b/arch/um/include/skas_ptrace.h index cd2327d..38ec9fd 100644 --- a/arch/um/include/skas_ptrace.h +++ b/arch/um/include/skas_ptr

[uml-user] [RFC PATCH 4/12] SKAS4 - Host VCPU support

2008-05-15 Thread Jeff Dike
This patch implements sys_vcpu, which allows a process to enter a new mode in which a signal or system call will cause a return to the original context. diff --git a/arch/um/include/kern_util.h b/arch/um/include/kern_util.h index 3c34122..0a91cb1 100644 --- a/arch/um/include/kern_util.h +++ b/arch

[uml-user] [RFC PATCH 9/12] SKAS4 - rename new_mm

2008-05-15 Thread Jeff Dike
UML already had a new_mm(). This is renamed to make_new_mm(). diff --git a/arch/um/include/skas/skas.h b/arch/um/include/skas/skas.h index d6cbb4f..061a362 100644 --- a/arch/um/include/skas/skas.h +++ b/arch/um/include/skas/skas.h @@ -17,7 +17,7 @@ extern int skas_needs_stub; extern int user_thr

[uml-user] [RFC PATCH 5/12] SKAS4 - Macroize stub system call execution loop

2008-05-15 Thread Jeff Dike
Macroize stub system call execution loop Extract the system call execution loop in the stubs into a macro A later patch will need this loop, so this makes it available. diff --git a/arch/um/sys-i386/stub.S b/arch/um/sys-i386/stub.S index 7699e89..a63397f 100644 --- a/arch/um/sys-i386/stub.S +

[uml-user] [RFC PATCH 12/12] SKAS4 - Guest vcpu support

2008-05-15 Thread Jeff Dike
This patch implements sys_vcpu support in UML. diff --git a/arch/um/include/kern_util.h b/arch/um/include/kern_util.h index 0a91cb1..3421c47 100644 --- a/arch/um/include/kern_util.h +++ b/arch/um/include/kern_util.h @@ -22,7 +22,7 @@ extern void free_stack(unsigned long stack, int order); exter

[uml-user] [RFC PATCH 6/12] SKAS4 - start_up.c preparation

2008-05-15 Thread Jeff Dike
Tidy arch/um/os-Linux/start_up.c in preparation for host SKAS4 testing. There are now explicit variables for disabling any particular host capability. init_registers is moved out of the skas3 testing because it needs to happen every time, and the skas3 checks will become optional. diff -

[uml-user] [RFC PATCH 11/12] SKAS4 - Guest get_mm and switch_mm support

2008-05-15 Thread Jeff Dike
UML guest SKAS4 support. diff --git a/arch/um/include/as-layout.h b/arch/um/include/as-layout.h index cac542d..929d053 100644 --- a/arch/um/include/as-layout.h +++ b/arch/um/include/as-layout.h @@ -23,16 +23,15 @@ */ #ifdef __ASSEMBLY__ -#define _AC(X, Y) (Y) +#define _C(Y) (Y) #else -

[uml-user] [RFC PATCH 1/12] SKAS4 - Work around compat PTRACE_GETSIGINFO bug

2008-05-15 Thread Jeff Dike
copy_siginfo_to_user correctly strips off the high bits of si->si_code before copying it to userspace. Unfortunately, ptrace32_siginfo calls copy_siginfo_to_user to put the siginfo into a temporary userspace buffer and counts on the high bits still being present so that it may initialize the u

[uml-user] [RFC PATCH 2/12] SKAS4 - Host SIGSEGV siginfo_t extensions

2008-05-15 Thread Jeff Dike
Add CPU trap number and error code to siginfo_t in the SIGSEGV case for x86. diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c index 5e7771a..a2a4c1c 100644 --- a/arch/x86/ia32/ia32_signal.c +++ b/arch/x86/ia32/ia32_signal.c @@ -68,6 +68,8 @@ int copy_siginfo_to_user32(compat_

[uml-user] [RFC PATCH 10/12] SKAS4 - Introduce STUB_ADDR

2008-05-15 Thread Jeff Dike
There were a number of repetitions of the calculation of an stub address in a process address space. This introduces STUB_ADDR to eliminate the common code. diff --git a/arch/um/include/skas/skas.h b/arch/um/include/skas/skas.h index 061a362..331f343 100644 --- a/arch/um/include/skas/skas.h +++ b

[uml-user] [RFC PATCH 7/12] SKAS4 - Guest support for using PTRACE_GETSIGINFO

2008-05-15 Thread Jeff Dike
This patch allows UML to get page fault information for its processes using PTRACE_GETSIGINFO by reading the fault address, trap number, and error code from the siginfo_t. The nastiness in arch/um/include/siginfo_segv.h is defining the new siginfo_t structure in place of the old one, which req