Re: [uml-devel] (Workarounded) Hanging using 'iptables -L' in UML vm booted with con0=pts

2007-09-19 Thread Fermín Galán Márquez
Dear Paolo, >> The solution to the problem is using con1 instead of con0, I mean: >> >> ./linux ubd0=/tmp/root_fs_debug con=null con1=pts uml_dir=/tmp umid=run >> >> instead of >> >> ./linux ubd0=/tmp/root_fs_debug con=null con1=pts uml_dir=/tmp umid=run > > This was con0=pts, I checked your othe

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

2007-09-19 Thread Jeff Dike
[ The first version of this patch conflicted with the irqstack fix merged last night - this is the fixed version ] Fix up the switching between virtual and real timers. The idle loop sleeps, so the timer at that point must be real time. At all other times, the timer must be virtual. Even when

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

2007-09-19 Thread Jeff Dike
[ The first version of this patch conflicted with the irqstack fix merged last night - this is the fixed version ] Now, the idle loop now longer needs SIGALRM firing - it can just sleep for the requisite amount of time and fake a timer interrupt when it finishes. Any use of ITIMER_REAL now goes

[uml-devel] [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-

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

2007-09-19 Thread Jeff Dike
There are various uses of powers of 1000, plus the odd BILLION constant in the time code. However, there are perfectly good definitions of *SEC_PER_*SEC in linux/time.h which can be used instaed. These are replaced directly in kernel code. Userspace code imports those constants as UM_*SEC_PER_*S

[uml-devel] [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

[uml-devel] [PATCH 2/11] UML - Fix timer switching

2007-09-19 Thread Jeff Dike
Fix up the switching between virtual and real timers. The idle loop sleeps, so the timer at that point must be real time. At all other times, the timer must be virtual. Even when userspace is running, and the kernel is asleep, the virtual timer is correct because the process timer will be runnin

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

2007-09-19 Thread Jeff Dike
Now, the idle loop now longer needs SIGALRM firing - it can just sleep for the requisite amount of time and fake a timer interrupt when it finishes. Any use of ITIMER_REAL now goes away. disable_timer only turns off ITIMER_VIRTUAL. switch_timers is no longer needed, so it, and all calls, goes aw

[uml-devel] [PATCH 8/11] UML - Tickless support

2007-09-19 Thread Jeff Dike
Enable tickless support. CONFIG_TICK_ONESHOT and CONFIG_NO_HZ are enabled. itimer_clockevent gets CLOCK_EVT_FEAT_ONESHOT and an implementation of .set_next_event. CONFIG_UML_REAL_TIME_CLOCK goes away because it only makes sense when there is a clock ticking away all the time. timer_handler now

[uml-devel] [PATCH 6/11] UML - GENERIC_CLOCKEVENTS support

2007-09-19 Thread Jeff Dike
Enable CONFIG_GENERIC_CLOCKEVENTS. timer_irq gets its name changed to timer_handler, and becomes the recipient of timer signals. The clock_event_device is set up to imitate the current ticking clock, i.e. CLOCK_EVT_FEAT_ONESHOT is not enabled yet. disable_timer now doesn't ignore SIGALRM and SIG

[uml-devel] [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 fil

[uml-devel] [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/

[uml-devel] [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

[uml-devel] [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 - This SF.net email is sponsored by: Microsof

[uml-devel] [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/ker