Re: [PATCH] 2.6.22.6 user-mode linux: fix error in check_sysemu

2007-09-24 Thread Jeff Dike
On Sun, Sep 23, 2007 at 08:26:53PM +0800, lepton wrote: > it is a error do count++ here, it will let the following compare > (after 8 lines) " if (!count)" always be false. I take back what I said. It looks like it's checking for some non-zero number of traps, which would be for the

Re: [PATCH] 2.6.22.6 user-mode linux: fix error in check_sysemu

2007-09-24 Thread Jeff Dike
On Sun, Sep 23, 2007 at 08:26:53PM +0800, lepton wrote: > it is a error do count++ here, it will let the following compare >(after 8 lines) " if (!count)" always be false. > - count++; Have you booted a UML with this change? It looks to me like you'll just make it crash on boot

Re: [PATCH] 2.6.22.6 user-mode linux: fix error in check_sysemu

2007-09-24 Thread Jeff Dike
On Sun, Sep 23, 2007 at 08:26:53PM +0800, lepton wrote: it is a error do count++ here, it will let the following compare (after 8 lines)if (!count) always be false. - count++; Have you booted a UML with this change? It looks to me like you'll just make it crash on boot every

Re: [PATCH] 2.6.22.6 user-mode linux: fix error in check_sysemu

2007-09-24 Thread Jeff Dike
On Sun, Sep 23, 2007 at 08:26:53PM +0800, lepton wrote: it is a error do count++ here, it will let the following compare (after 8 lines)if (!count) always be false. I take back what I said. It looks like it's checking for some non-zero number of traps, which would be for the

Re: [RFC PATCH] 2.6.22.6 user-mode linux: No need to new a stack for clone without CLONE_VM

2007-09-24 Thread Jeff Dike
On Sat, Sep 22, 2007 at 11:39:32PM +0800, lepton wrote: Since we just call clone without CLONE_VM, it is no need to use anoymous mmap to get a new stack frame. This section of code has been converted to use fork() for this exact reason. Jeff -- Work email -

Re: [PATCH] 2.6.22.6 user-mode linux: use address instead of value as argument in os_free_irq_by_cb

2007-09-24 Thread Jeff Dike
On Sat, Sep 22, 2007 at 12:39:55PM +0800, lepton wrote: There is a bug in os_free_irq_by_cb, when the first element of active_fds list is free, the value of active_fds is not updated, just value in stack is updated. Man, that sucks. Nice spotting. The intresting thing is that

Re: [uml-devel] [PATCH] UML - Fix irqstack crash

2007-09-24 Thread Jeff Dike
On Thu, Sep 20, 2007 at 05:57:49PM +0200, Paolo Giarrusso wrote: Yes, indeed - or sign extension on 64bit machines would set to 1 the whole high-word. But using long for that mask makes no difference; either int or long long (or better, either u32 or u64) should be used, given that the

Re: UML dead with current -git?

2007-09-19 Thread Jeff Dike
On Wed, Sep 19, 2007 at 06:17:51PM +0200, Philipp Marek wrote: > How about that? > readlink include/asm > returns > asm-um > in my case, so I only have to strip the "asm-" part ... It doesn't handle O= directories... Jeff -- Work email - jdike at

[RESEND] [PATCH 9/11] UML - Eliminate interrupts in the idle loop

2007-09-19 Thread Jeff Dike
if nanosleep returns 0, which is the case if it didn't return early due to an interrupt. Otherwise, it just returns. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/os.h |5 +--- arch/um/kernel/process.c |7 +++-- arch/um/os-Linux/signal.c |3 -- arch/um/os-Linux/

[RESEND] [PATCH 2/11] UML - Fix timer switching

2007-09-19 Thread Jeff Dike
, making it much more clear why it is happening. switch_timers now returns the old timer type so that it may be restored. The signal handler uses this in order to restore the previous timer type when it returns. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/os.h

[PATCH 10/11] UML - Eliminate SIGALRM

2007-09-19 Thread Jeff Dike
Now that ITIMER_REAL is no longer used, there is no need for any use of SIGALRM whatsoever. This patch removes all mention of it. In addition, real_alarm_handler took a signal argument which is now always SIGVTALRM. So, that is gone. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch

[PATCH 11/11] UML - Use *SEC_PER_*SEC constants

2007-09-19 Thread Jeff Dike
*SEC and uses these. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/common-offsets.h |4 arch/um/include/os.h |2 -- arch/um/kernel/time.c|9 + arch/um/os-Linux/skas/process.c | 12 +++- arch/um/os-Linux/

[PATCH 8/11] UML - Tickless support

2007-09-19 Thread Jeff Dike
. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/Kconfig | 12 -- arch/um/defconfig |5 +--- arch/um/include/os.h|1 arch/um/kernel/process.c|3 ++ arch/um/kernel/time.c

[PATCH 3/11] UML - Simplify interval setting

2007-09-19 Thread Jeff Dike
set_interval took a timer type as an argument, but it always specified a virtual timer. So, it is not needed, and it is gone, and set_interval is simplified appropriately. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/os.h|2 +- arch/um/kernel/

[PATCH 9/11] UML - Eliminate interrupts in the idle loop

2007-09-19 Thread Jeff Dike
-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/os.h |5 +--- arch/um/kernel/process.c |7 +++-- arch/um/os-Linux/signal.c |3 -- arch/um/os-Linux/time.c | 54 +- 4 files changed, 17 insertions(+), 52 deletions(-)

[PATCH 4/11] UML - Separate timer initialization

2007-09-19 Thread Jeff Dike
Move timer signal initialization from init_irq_signals to a new function, timer_init. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/os.h |1 + arch/um/kernel/time.c |2 ++ arch/um/os-Linux/irq.c|4 arch/um/os-Linux/signal.c | 10 +++

[PATCH 2/11] UML - Fix timer switching

2007-09-19 Thread Jeff Dike
. The signal handler uses this in order to restore the previous timer type when it returns. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/os.h |2 +- arch/um/kernel/process.c |9 ++--- arch/um/os-Linux/signal.c |9 +++-- arch/um/os-Linux/time.c

[PATCH 6/11] UML - GENERIC_CLOCKEVENTS support

2007-09-19 Thread Jeff Dike
and SIGVTALRM because that breaks delay calibration. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/Kconfig |4 + arch/um/defconfig |3 + arch/um/kernel/time.c | 99 ++-- arch/um/os-Linux/time.c |4 - 4 files chang

[PATCH 0/11] UML - Respin of tickless and timekeeping patches

2007-09-19 Thread Jeff Dike
These patches are the UML tickless support and timekeeping update rediffed against rc6-mm1. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

[PATCH 7/11] UML - clocksource support

2007-09-19 Thread Jeff Dike
Add clocksource support. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/time.c | 21 + 1 file changed, 21 insertions(+) Index: linux-2.6.20/arch/um/kernel/time.c === --- linux-2.6.20.ori

[PATCH 1/11] UML - Eliminate hz()

2007-09-19 Thread Jeff Dike
Eliminate hz() since its only purpose was to provide a kernel-space constant to userspace code. This can be done instead by providing the constant directly through kernel_constants.h. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/common-offsets.h |2 ++ arch/um/i

[PATCH 5/11] UML - GENERIC_TIME support

2007-09-19 Thread Jeff Dike
Enable CONFIG_GENERIC_TIME. As a side-effect of this, the UML implementations of do_gettimeofday and do_settimeofday go away, as these are provided by generic code. set_time also goes away since it was only used by do_settimeofday. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- a

[PATCH 1/11] UML - Eliminate hz()

2007-09-19 Thread Jeff Dike
Eliminate hz() since its only purpose was to provide a kernel-space constant to userspace code. This can be done instead by providing the constant directly through kernel_constants.h. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/include/common-offsets.h |2 ++ arch/um/include

[PATCH 5/11] UML - GENERIC_TIME support

2007-09-19 Thread Jeff Dike
Enable CONFIG_GENERIC_TIME. As a side-effect of this, the UML implementations of do_gettimeofday and do_settimeofday go away, as these are provided by generic code. set_time also goes away since it was only used by do_settimeofday. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/Kconfig

[PATCH 7/11] UML - clocksource support

2007-09-19 Thread Jeff Dike
Add clocksource support. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/kernel/time.c | 21 + 1 file changed, 21 insertions(+) Index: linux-2.6.20/arch/um/kernel/time.c === --- linux-2.6.20.orig/arch

[PATCH 6/11] UML - GENERIC_CLOCKEVENTS support

2007-09-19 Thread Jeff Dike
and SIGVTALRM because that breaks delay calibration. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/Kconfig |4 + arch/um/defconfig |3 + arch/um/kernel/time.c | 99 ++-- arch/um/os-Linux/time.c |4 - 4 files changed, 54

[PATCH 0/11] UML - Respin of tickless and timekeeping patches

2007-09-19 Thread Jeff Dike
These patches are the UML tickless support and timekeeping update rediffed against rc6-mm1. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED]

[PATCH 4/11] UML - Separate timer initialization

2007-09-19 Thread Jeff Dike
Move timer signal initialization from init_irq_signals to a new function, timer_init. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/include/os.h |1 + arch/um/kernel/time.c |2 ++ arch/um/os-Linux/irq.c|4 arch/um/os-Linux/signal.c | 10 ++ 4

[PATCH 2/11] UML - Fix timer switching

2007-09-19 Thread Jeff Dike
. The signal handler uses this in order to restore the previous timer type when it returns. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/include/os.h |2 +- arch/um/kernel/process.c |9 ++--- arch/um/os-Linux/signal.c |9 +++-- arch/um/os-Linux/time.c | 27

[PATCH 9/11] UML - Eliminate interrupts in the idle loop

2007-09-19 Thread Jeff Dike
-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/include/os.h |5 +--- arch/um/kernel/process.c |7 +++-- arch/um/os-Linux/signal.c |3 -- arch/um/os-Linux/time.c | 54 +- 4 files changed, 17 insertions(+), 52 deletions(-) Index: linux

[PATCH 8/11] UML - Tickless support

2007-09-19 Thread Jeff Dike
. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/Kconfig | 12 -- arch/um/defconfig |5 +--- arch/um/include/os.h|1 arch/um/kernel/process.c|3 ++ arch/um/kernel/time.c | 45

[PATCH 3/11] UML - Simplify interval setting

2007-09-19 Thread Jeff Dike
set_interval took a timer type as an argument, but it always specified a virtual timer. So, it is not needed, and it is gone, and set_interval is simplified appropriately. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/include/os.h|2 +- arch/um/kernel/time.c

[PATCH 10/11] UML - Eliminate SIGALRM

2007-09-19 Thread Jeff Dike
Now that ITIMER_REAL is no longer used, there is no need for any use of SIGALRM whatsoever. This patch removes all mention of it. In addition, real_alarm_handler took a signal argument which is now always SIGVTALRM. So, that is gone. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/os

[PATCH 11/11] UML - Use *SEC_PER_*SEC constants

2007-09-19 Thread Jeff Dike
*SEC and uses these. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/include/common-offsets.h |4 arch/um/include/os.h |2 -- arch/um/kernel/time.c|9 + arch/um/os-Linux/skas/process.c | 12 +++- arch/um/os-Linux/time.c

[RESEND] [PATCH 2/11] UML - Fix timer switching

2007-09-19 Thread Jeff Dike
, making it much more clear why it is happening. switch_timers now returns the old timer type so that it may be restored. The signal handler uses this in order to restore the previous timer type when it returns. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/include/os.h |2 +- arch

[RESEND] [PATCH 9/11] UML - Eliminate interrupts in the idle loop

2007-09-19 Thread Jeff Dike
if nanosleep returns 0, which is the case if it didn't return early due to an interrupt. Otherwise, it just returns. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/include/os.h |5 +--- arch/um/kernel/process.c |7 +++-- arch/um/os-Linux/signal.c |3 -- arch/um/os-Linux/time.c

Re: UML dead with current -git?

2007-09-19 Thread Jeff Dike
On Wed, Sep 19, 2007 at 06:17:51PM +0200, Philipp Marek wrote: How about that? readlink include/asm returns asm-um in my case, so I only have to strip the asm- part ... It doesn't handle O= directories... Jeff -- Work email - jdike at linux dot

Re: UML dead with current -git?

2007-09-18 Thread Jeff Dike
On Tue, Sep 18, 2007 at 07:55:13PM +0200, Sam Ravnborg wrote: > Sounds to me like a known issue by you. Can you give a few more details > so we maybe can get it fixed? I believe what happened here is an x86_64 build followed by a UML/x86_64 build with no intervening mrproper. I've always

[PATCH 2/2] UML - refix ELF_CORE_COPY_REGS

2007-09-18 Thread Jeff Dike
it was rebased on -rc6. This patch changes things back again to be right for -mm. This should go to mainline after uml-rename-pt_regs-general-purpose-register-file.patch Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- include/asm-um/elf-x86_64.h | 42 +-

[PATCH 1/2] UML - Fix registers.c build

2007-09-18 Thread Jeff Dike
: enum __ptrace_request { ... PTRACE_GETREGS = 12, ... } Also, errno.h was missing. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/os-Linux/sys-x86_64/registers.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux-

[PATCH 0/2] UML - Two x86_64 build fixes

2007-09-18 Thread Jeff Dike
These two patches fix UML build breakages on x86_64. They are -mm-specific, so don't need to go to mainline until 2.6.24. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

[PATCH] UML - Fix irqstack crash

2007-09-18 Thread Jeff Dike
is to stop passing a signal number into to_irq_stack. Rather, the pending signals mask is initialized beforehand with the bit for sig already set. References to sig in to_irq_stack can be replaced with references to the mask. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/i

Re: UML dead with current -git?

2007-09-18 Thread Jeff Dike
On Tue, Sep 18, 2007 at 05:14:33PM +0200, Philipp Marek wrote: > I'm trying to build a UML machine on x86-64 (config attached) > but I'm getting compile errors. Builds for me. Did you start with an mrproper? These errors look like the UML build getting confused by left-overs from an x86_64

Re: UML dead with current -git?

2007-09-18 Thread Jeff Dike
On Tue, Sep 18, 2007 at 05:14:33PM +0200, Philipp Marek wrote: I'm trying to build a UML machine on x86-64 (config attached) but I'm getting compile errors. Builds for me. Did you start with an mrproper? These errors look like the UML build getting confused by left-overs from an x86_64

[PATCH] UML - Fix irqstack crash

2007-09-18 Thread Jeff Dike
is to stop passing a signal number into to_irq_stack. Rather, the pending signals mask is initialized beforehand with the bit for sig already set. References to sig in to_irq_stack can be replaced with references to the mask. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/include

[PATCH 1/2] UML - Fix registers.c build

2007-09-18 Thread Jeff Dike
: enum __ptrace_request { ... PTRACE_GETREGS = 12, ... } Also, errno.h was missing. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- arch/um/os-Linux/sys-x86_64/registers.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux-2.6.20

[PATCH 0/2] UML - Two x86_64 build fixes

2007-09-18 Thread Jeff Dike
These two patches fix UML build breakages on x86_64. They are -mm-specific, so don't need to go to mainline until 2.6.24. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of

[PATCH 2/2] UML - refix ELF_CORE_COPY_REGS

2007-09-18 Thread Jeff Dike
it was rebased on -rc6. This patch changes things back again to be right for -mm. This should go to mainline after uml-rename-pt_regs-general-purpose-register-file.patch Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- include/asm-um/elf-x86_64.h | 42 +- 1 file

Re: UML dead with current -git?

2007-09-18 Thread Jeff Dike
On Tue, Sep 18, 2007 at 07:55:13PM +0200, Sam Ravnborg wrote: Sounds to me like a known issue by you. Can you give a few more details so we maybe can get it fixed? I believe what happened here is an x86_64 build followed by a UML/x86_64 build with no intervening mrproper. I've always

[PATCH] softlockup_tick needs to initialize regs

2007-09-14 Thread Jeff Dike
softlockup-improve-debug-output.patch introduces a regs, but fails to initialize it. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- kernel/softlockup.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.22/kernel/softlo

[PATCH] softlockup_tick needs to initialize regs

2007-09-14 Thread Jeff Dike
softlockup-improve-debug-output.patch introduces a regs, but fails to initialize it. Signed-off-by: Jeff Dike [EMAIL PROTECTED] --- kernel/softlockup.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.22/kernel/softlockup.c

[PATCH 2/3] UML - Remove called-once function

2007-09-13 Thread Jeff Dike
init_irq_signals doesn't need to be called from the context of a new process. It initializes handlers, which are useless in process context. With that call gone, init_irq_signals has only one caller, so it can be inlined into init_new_thread_signals. Index: linux-2.6.22/arch/um/include/os.h

[PATCH 1/3] UML - Remove an unused file

2007-09-13 Thread Jeff Dike
arch/um/os-Linux/tt.c is no longer used. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/os-Linux/tt.c | 195 -- 1 file changed, 195 deletions(-) Index: linux-2.6.22/arch/um/os-Linu

[PATCH 0/3] UML - Three small patches for 2.6.24

2007-09-13 Thread Jeff Dike
These are two code cleanups and a fix for one of yesterday's patches. 2.6.24 material. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More

[PATCH 3/3] UML - Fix usec to nsec conversion

2007-09-13 Thread Jeff Dike
microseconds need to be multiplied by a thousand, not a billion, to get nanoseconds. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/os-Linux/time.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.22/arch/um/os-Linux/

[PATCH 0/3] UML - Three small patches for 2.6.24

2007-09-13 Thread Jeff Dike
These are two code cleanups and a fix for one of yesterday's patches. 2.6.24 material. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

[PATCH 3/3] UML - Fix usec to nsec conversion

2007-09-13 Thread Jeff Dike
microseconds need to be multiplied by a thousand, not a billion, to get nanoseconds. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/os-Linux/time.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.22/arch/um/os-Linux/time.c

[PATCH 1/3] UML - Remove an unused file

2007-09-13 Thread Jeff Dike
arch/um/os-Linux/tt.c is no longer used. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/os-Linux/tt.c | 195 -- 1 file changed, 195 deletions(-) Index: linux-2.6.22/arch/um/os-Linux/tt.c

[PATCH 2/3] UML - Remove called-once function

2007-09-13 Thread Jeff Dike
init_irq_signals doesn't need to be called from the context of a new process. It initializes handlers, which are useless in process context. With that call gone, init_irq_signals has only one caller, so it can be inlined into init_new_thread_signals. Index: linux-2.6.22/arch/um/include/os.h

[PATCH 11/11] UML - Use *_PER_* definitions

2007-09-12 Thread Jeff Dike
*SEC and uses these. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/include/common-offsets.h |4 arch/um/include/os.h |2 -- arch/um/kernel/time.c|9 + arch/um/os-Linux/skas/process.c |2 +- arch/um/os-Linux/time.c

[PATCH 4/11] UML - Move timer signal initialization

2007-09-12 Thread Jeff Dike
Move timer signal initialization from init_irq_signals to a new function, timer_init. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/include/os.h |1 + arch/um/kernel/time.c |2 ++ arch/um/os-Linux/irq.c|4 arch/um/os-Linux/signal.c | 10 +++

[PATCH 10/11] UML - Eliminate SIGALRM usage

2007-09-12 Thread Jeff Dike
Now that ITIMER_REAL is no longer used, there is no need for any use of SIGALRM whatsoever. This patch removes all mention of it. In addition, real_alarm_handler took a signal argument which is now always SIGVTALRM. So, that is gone. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch

[PATCH 2/11] UML - Clean up switching between virtual and real timers

2007-09-12 Thread Jeff Dike
to restore the previous timer type when it returns. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/include/os.h |2 +- arch/um/kernel/process.c |9 ++--- arch/um/os-Linux/signal.c |9 +++-- arch/um/os-Linux/time.c | 27 --- 4

[PATCH 9/11] UML - Eliminate ticking in the idle loop

2007-09-12 Thread Jeff Dike
-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/include/os.h |5 +-- arch/um/kernel/process.c |7 +++-- arch/um/os-Linux/signal.c |3 -- arch/um/os-Linux/time.c | 58 -- 4 files changed, 17 insertions(+), 56 deletions(-) Index:

[PATCH 1/11] UML - Eliminate hz()

2007-09-12 Thread Jeff Dike
Eliminate hz() since its only purpose was to provide a kernel-space constant to userspace code. This can be done instead by providing the constant directly through kernel_constants.h. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/include/common-offsets.h |2 ++ arch/um/i

[PATCH 5/11] UML - GENERIC_TIME support

2007-09-12 Thread Jeff Dike
Enable CONFIG_GENERIC_TIME. As a side-effect of this, the UML implementations of do_gettimeofday and do_settimeofday go away, as these are provided by generic code. set_time also goes away since it was only used by do_settimeofday. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/K

[PATCH 8/11] UML - Tickless support

2007-09-12 Thread Jeff Dike
just calls do_IRQ once without trying to figure out how many ticks to emulate. The idle loop now needs to turn ticking on and off. For now, process ticks are ignored. This breaks userspace time accounting and this will be fixed later. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- a

[PATCH 0/11] UML - Tickless and timekeeping update

2007-09-12 Thread Jeff Dike
This patchset modernizes UML's timekeeping system. There are a number of cleanups, but the major items are clockevent and clocksource support, followed by tickless support. This is obviously 2.6.24 material. Jeff -- Work email - jdike at linux dot intel dot com

[PATCH 6/11] UML - GENERIC_CLOCKEVENTS support

2007-09-12 Thread Jeff Dike
and SIGVTALRM because that breaks delay calibration. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/Kconfig |4 + arch/um/defconfig |3 + arch/um/kernel/time.c | 99 ++-- arch/um/os-Linux/time.c |4 - 4 files chang

[PATCH 3/11] UML - tidy set_interval

2007-09-12 Thread Jeff Dike
set_interval took a timer type as an argument, but it always specified a virtual timer. So, it is not needed, and it is gone, and set_interval is simplified appropriately. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/include/os.h|2 +- arch/um/kernel/

[PATCH 7/11] UML - clocksource support

2007-09-12 Thread Jeff Dike
Add clocksource support. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/kernel/time.c | 21 + 1 file changed, 21 insertions(+) Index: linux-2.6.22/arch/um/kernel/time.c === --- linux-2.6.22.ori

[PATCH 7/11] UML - clocksource support

2007-09-12 Thread Jeff Dike
Add clocksource support. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/kernel/time.c | 21 + 1 file changed, 21 insertions(+) Index: linux-2.6.22/arch/um/kernel/time.c === --- linux-2.6.22.orig/arch/um

[PATCH 3/11] UML - tidy set_interval

2007-09-12 Thread Jeff Dike
set_interval took a timer type as an argument, but it always specified a virtual timer. So, it is not needed, and it is gone, and set_interval is simplified appropriately. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/include/os.h|2 +- arch/um/kernel/time.c

[PATCH 0/11] UML - Tickless and timekeeping update

2007-09-12 Thread Jeff Dike
This patchset modernizes UML's timekeeping system. There are a number of cleanups, but the major items are clockevent and clocksource support, followed by tickless support. This is obviously 2.6.24 material. Jeff -- Work email - jdike at linux dot intel dot com

[PATCH 6/11] UML - GENERIC_CLOCKEVENTS support

2007-09-12 Thread Jeff Dike
and SIGVTALRM because that breaks delay calibration. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/Kconfig |4 + arch/um/defconfig |3 + arch/um/kernel/time.c | 99 ++-- arch/um/os-Linux/time.c |4 - 4 files changed, 54

[PATCH 5/11] UML - GENERIC_TIME support

2007-09-12 Thread Jeff Dike
Enable CONFIG_GENERIC_TIME. As a side-effect of this, the UML implementations of do_gettimeofday and do_settimeofday go away, as these are provided by generic code. set_time also goes away since it was only used by do_settimeofday. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/Kconfig

[PATCH 8/11] UML - Tickless support

2007-09-12 Thread Jeff Dike
just calls do_IRQ once without trying to figure out how many ticks to emulate. The idle loop now needs to turn ticking on and off. For now, process ticks are ignored. This breaks userspace time accounting and this will be fixed later. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um

[PATCH 9/11] UML - Eliminate ticking in the idle loop

2007-09-12 Thread Jeff Dike
-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/include/os.h |5 +-- arch/um/kernel/process.c |7 +++-- arch/um/os-Linux/signal.c |3 -- arch/um/os-Linux/time.c | 58 -- 4 files changed, 17 insertions(+), 56 deletions(-) Index: linux

[PATCH 1/11] UML - Eliminate hz()

2007-09-12 Thread Jeff Dike
Eliminate hz() since its only purpose was to provide a kernel-space constant to userspace code. This can be done instead by providing the constant directly through kernel_constants.h. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/include/common-offsets.h |2 ++ arch/um/include

[PATCH 2/11] UML - Clean up switching between virtual and real timers

2007-09-12 Thread Jeff Dike
to restore the previous timer type when it returns. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/include/os.h |2 +- arch/um/kernel/process.c |9 ++--- arch/um/os-Linux/signal.c |9 +++-- arch/um/os-Linux/time.c | 27 --- 4 files

[PATCH 4/11] UML - Move timer signal initialization

2007-09-12 Thread Jeff Dike
Move timer signal initialization from init_irq_signals to a new function, timer_init. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/include/os.h |1 + arch/um/kernel/time.c |2 ++ arch/um/os-Linux/irq.c|4 arch/um/os-Linux/signal.c | 10 ++ 4 files

[PATCH 10/11] UML - Eliminate SIGALRM usage

2007-09-12 Thread Jeff Dike
Now that ITIMER_REAL is no longer used, there is no need for any use of SIGALRM whatsoever. This patch removes all mention of it. In addition, real_alarm_handler took a signal argument which is now always SIGVTALRM. So, that is gone. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/os

[PATCH 11/11] UML - Use *_PER_* definitions

2007-09-12 Thread Jeff Dike
*SEC and uses these. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/include/common-offsets.h |4 arch/um/include/os.h |2 -- arch/um/kernel/time.c|9 + arch/um/os-Linux/skas/process.c |2 +- arch/um/os-Linux/time.c | 16

[ PATCH 2/3 ] UML - Remove unused file

2007-09-11 Thread Jeff Dike
arch/um/os-Linux/tt.c is no longer used. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/os-Linux/tt.c | 195 -- 1 file changed, 195 deletions(-) Index: linux-2.6.22/arch/um/os-Linu

[ PATCH 3/3 ] UML - More idiomatic parameter parsing

2007-09-11 Thread Jeff Dike
Make mconsole parameter parsing slightly more idiomatic. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/drivers/mconsole_kern.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6.22/arch/um/drivers/mconsole_

[ PATCH 1/3 ] UML - Remove unneeded void * cast

2007-09-11 Thread Jeff Dike
vmalloc() returns a void pointer, so casting to (void *) is pretty pointless. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/drivers/ubd_kern.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.22/arc

[ PATCH 0/3 ] UML - Three trivial patches for 2.6.24

2007-09-11 Thread Jeff Dike
A few trivial patches - these are obviously 2.6.24 material. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

[ PATCH 0/3 ] UML - Three trivial patches for 2.6.24

2007-09-11 Thread Jeff Dike
A few trivial patches - these are obviously 2.6.24 material. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

[ PATCH 1/3 ] UML - Remove unneeded void * cast

2007-09-11 Thread Jeff Dike
vmalloc() returns a void pointer, so casting to (void *) is pretty pointless. Signed-off-by: Jesper Juhl [EMAIL PROTECTED] Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/drivers/ubd_kern.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.22/arch/um/drivers

[ PATCH 2/3 ] UML - Remove unused file

2007-09-11 Thread Jeff Dike
arch/um/os-Linux/tt.c is no longer used. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/os-Linux/tt.c | 195 -- 1 file changed, 195 deletions(-) Index: linux-2.6.22/arch/um/os-Linux/tt.c

[ PATCH 3/3 ] UML - More idiomatic parameter parsing

2007-09-11 Thread Jeff Dike
Make mconsole parameter parsing slightly more idiomatic. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/drivers/mconsole_kern.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6.22/arch/um/drivers/mconsole_kern.c

[PATCH] UML - Fix ELF_CORE_COPY_REGS build botch

2007-09-10 Thread Jeff Dike
. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- include/asm-um/elf-x86_64.h | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) Index: linux-2.6.17/include/asm-um/elf-x8

[PATCH] UML - Fix ELF_CORE_COPY_REGS build botch

2007-09-10 Thread Jeff Dike
. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- include/asm-um/elf-x86_64.h | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) Index: linux-2.6.17/include/asm-um/elf-x86_64.h

Re: [PATCH] include linux/pagemap.h in asm-generic/tlb.h

2007-08-24 Thread Jeff Dike
On Fri, Aug 24, 2007 at 05:20:27PM -0700, Andrew Morton wrote: > This is worrisome. If you look at pagemap.h, it includes a pile of things > which could easily themsleves try to include tlb.h via some path or > another. I fear that this patch will cause explosions with some config > and/or

Re: [PATCH] include linux/pagemap.h in asm-generic/tlb.h

2007-08-24 Thread Jeff Dike
On Fri, Aug 24, 2007 at 03:51:41PM -0500, Rob Landley wrote: > It may be non-urgent to you, but it still broke my build. :) > > Acked-by: Rob Landley <[EMAIL PROTECTED]> Heh, it doesn't seem like -stable material to me, but if there aren't any screams while it sits in -mm, maybe it's 2.6.23

[PATCH] include linux/pagemap.h in asm-generic/tlb.h

2007-08-24 Thread Jeff Dike
[ This looks non-urgent to me ] Without linux/pagemap.h, asm-generic/tlb.h is missing declarations of page_cache_release and release_pages. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- include/asm-generic/tlb.h |1 + 1 file changed, 1 insertion(+) Index: linux-2.6.22/include/asm-g

Re: [uml-devel] [PATCH 6/6] UML - Fix hostfs style

2007-08-24 Thread Jeff Dike
On Thu, Aug 23, 2007 at 04:54:59PM +0200, Blaisorblade wrote: > > actually. Personally I'd prefer: > > > > else > > type = OS_TYPE_DIR; > > I strongly agree with this style; beyond style itself, one strong reason is > that joining statements hinder singlestepping through function

Re: [uml-devel] [PATCH 6/6] UML - Fix hostfs style

2007-08-24 Thread Jeff Dike
On Thu, Aug 23, 2007 at 04:54:59PM +0200, Blaisorblade wrote: actually. Personally I'd prefer: else type = OS_TYPE_DIR; I strongly agree with this style; beyond style itself, one strong reason is that joining statements hinder singlestepping through function code (it's

[PATCH] include linux/pagemap.h in asm-generic/tlb.h

2007-08-24 Thread Jeff Dike
[ This looks non-urgent to me ] Without linux/pagemap.h, asm-generic/tlb.h is missing declarations of page_cache_release and release_pages. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- include/asm-generic/tlb.h |1 + 1 file changed, 1 insertion(+) Index: linux-2.6.22/include/asm-generic

Re: [PATCH] include linux/pagemap.h in asm-generic/tlb.h

2007-08-24 Thread Jeff Dike
On Fri, Aug 24, 2007 at 03:51:41PM -0500, Rob Landley wrote: It may be non-urgent to you, but it still broke my build. :) Acked-by: Rob Landley [EMAIL PROTECTED] Heh, it doesn't seem like -stable material to me, but if there aren't any screams while it sits in -mm, maybe it's 2.6.23 material.

<    1   2   3   4   5   6   7   8   9   10   >