Re: [uml-devel] [PATCH] uml: move TMP default from /tmp to /dev/shm.

2005-11-28 Thread Henrik Nordstrom
On Mon, 28 Nov 2005, Jeff Dike wrote: On Mon, Nov 28, 2005 at 11:52:15AM -0600, Rob Landley wrote: I sent a second copy that hopefully is less mangled. Did it make it through ok? By eye, both looked the same. Not entirely, the first not only munged the whitespace, it also word-wrapped the

Re: [uml-devel] Re: merge status

2005-11-19 Thread Henrik Nordstrom
On Fri, 18 Nov 2005, Rob Landley wrote: was going on. (And #2 was the case: once I found out it was the 0 length files, I could fix that. I didn't expect 0 length files screwing up the #include search paths. The #include search paths are confusing, I'm still a bit fuzzy on the difference betw

Re: [uml-devel] Making UML Single Threader

2005-11-15 Thread Henrik Nordstrom
On Mon, 14 Nov 2005, Blaisorblade wrote: I.e. "shutdown now" without -h? Halt without poweroff? halt without poweroff. stops the scheduler, but interrupts etc continues running. but it's not something I'd recommend relying upon. Better to leave the scheduler running but only have an init pr

Re: [uml-devel] Making UML Single Threader

2005-11-09 Thread Henrik Nordstrom
On Wed, 9 Nov 2005, Rob Landley wrote: (Wow, sourceforge's mailing list archives are almost as difficult to use as their download mirror system. That takes _effort_.) There is other mirrors more easily navigated.. my preference is MARC: http://marc.theaimsgroup.com/?l=user-mode-linux-devel&r

Re: [uml-devel] Starting uml with the debugger

2005-10-17 Thread Henrik Nordstrom
On Mon, 17 Oct 2005, Etay Meiri wrote: If this thing is new enough to have skas0, then just disable CONFIG_MODE_TT and gdb it normally. Will it still run if my host kernel is not skas enabled? Yes. SKAS0 is implementing memory management usign the same principles as SKAS, but without supp

Re: [uml-devel] Any way to give /dev/console a controlling TTY?

2005-09-25 Thread Henrik Nordstrom
On Fri, 23 Sep 2005, Rob Landley wrote: There is indeed a console= switch, but I haven't found a way to get it to do anything useful. (when I use console=/dev/tty0 it immediately exits with no error message. Same for console=4,1. Strangely, console=tty0 boots, but seems to be a NOP.) See Do

Re: [uml-devel] Any way to give /dev/console a controlling TTY?

2005-09-24 Thread Henrik Nordstrom
On Sat, 24 Sep 2005, Blaisorblade wrote: init= doesn't take argument, yes, but IIRC unhandled arguments are automatically passed to init, like unhandled assignment are passed in env. vars. Or not? Right. Seems to work just fine even if somewhat confusing... sh init=/bin/ctty or init=/bi

Re: [uml-devel] Any way to give /dev/console a controlling TTY?

2005-09-23 Thread Henrik Nordstrom
On Fri, 23 Sep 2005, Blaisorblade wrote: So in this case he should use init=/sbin/ctty sh, right? But you can't.. init= takes a single path to the binary to use, no arguments. But it's trivial to modify ctty to autmatically start a shell for you. Regards Henrik --

Re: [uml-devel] Any way to give /dev/console a controlling TTY?

2005-09-23 Thread Henrik Nordstrom
On Fri, 23 Sep 2005, Rob Landley wrote: Anybody see an obvious way to make /dev/console a controlling TTY? The user-space process who wants it as a controlling tty needs to run ioctl(0, TIOCSCTTY, (void *) 1); You should also take care to set up the termios parameters correctly. At http:/

Re: [uml-devel] Any way to give /dev/console a controlling TTY?

2005-09-23 Thread Henrik Nordstrom
On Fri, 23 Sep 2005, Rob Landley wrote: I'm the strange guy using UML via the stdio console, ala: ./linux rootfstype=hostfs MEM=48m rw init=/bin/sh LD_ASSUME_KERNEL=2.4.1 And it would be very nice if ctrl-c would work with that. I tried commenting out the "!noctty &&" test in line 1872, but i

Re: [uml-devel] Re: [uml-user] 2.6.13 / cannot set up LDT for thread-local storage

2005-09-16 Thread Henrik Nordstrom
On Fri, 16 Sep 2005, Nelson Castillo wrote: 1) patching init/main.c to add the variable to the environment 2) using a wrapper to /sbin/init Better to just add the variable to the kernel command line.. any XX=something string on the command line is set as environment variables to init. b

Re: [uml-devel] Re: [PATCH 1/2] UML - skas0 - separate kernel address space on stock hosts

2005-07-02 Thread Henrik Nordstrom
On Sat, 2 Jul 2005, Blaisorblade wrote: [regarding uml-kill-some-useless-vmalloc-tlb-flushing.patch] However, for now it seems that I can't reproduce anyway the iptables crash, and even Jeff did some testing... so it seems it's ok. If this is the same iptables crash due to vmalloc (or actually

Re: [uml-devel] NPTL can't be disabled in fc4?

2005-06-28 Thread Henrik Nordstrom
On Mon, 27 Jun 2005, William Stearns wrote: "raidautorun /dev/md0" 758 Segmentation fault | nash --quiet nash is statically linked ldd /sbin/nash not a dynamic executable Why they use nash in the rc.sysinit script beats me. It is only supposed to be used in the initrd w

Re: [uml-devel] applying a .diff.bz2 patch

2005-05-20 Thread Henrik Nordstrom
On Thu, 19 May 2005, ashwin tanugula wrote: Hi How do i apply a .diff.bz2 patch to a linux kernel? Usually by cd linux-x.y.z bzcat /path/to/patchfile.diff.bz2 | patch -p1 -s then rebuild the kernel. Sometimes -p0 is required instead of -p1, but very rarely (depends on who made the patch and how, s

Re: [uml-devel] Re: [patch 1/6] uml: remove elf.h [ compile-fix, for 2.6.12 ]

2005-05-10 Thread Henrik Nordstrom
On Mon, 9 May 2005, Andrew Morton wrote: diff -L include/asm-um/elf.h -puN include/asm-um/elf.h~uml-remove-elf-h /dev/null hmm, that's exciting. How to tell diff and patch to remove a zero-length file? This has to be instructed by the patch.. If the new file is an empty file with timestamp of 1 J

Re: [uml-devel] The source to that firmware-uml thing is now up...

2005-04-24 Thread Henrik Nordstrom
On Wed, 20 Apr 2005, Rob Landley wrote: By the way, I've toyed with the idea of running this sucker in an otherwise empty chroot environment (/proc/self/fd is likely to exist and have fairly uninteresting contents. As a chroot environment, it just has symlinks that point to nothing), but to chroot

Re: [uml-devel] [POLL] Putting UML/2.4 into "fixes-only" mode

2005-01-30 Thread Henrik Nordstrom
On Wed, 26 Jan 2005, Blaisorblade wrote: So, I'd suggest to follow this policy to choose the work to merge: - reduce *a lot* what is going to be merged... no new features, no code cleanups (especially NOT the Makefiles cleanups)... - concentrate on stability... and on backing out the hostfs rewrite

Re: [uml-devel] Re: [uml-user] keyring syscalls

2005-01-25 Thread Henrik Nordstrom
On Tue, 25 Jan 2005, Michael Halcrow wrote: I am not entirely clear on the function that ``[ 222 ] = sys_ni_syscall,'' at the end of the table in syscalls.h is supposed to serve. This says that syscall number 222 is not implemented, which it isn't on i386 (not defined). Syscalls in UML contstitu

Re: [uml-devel] memory

2005-01-24 Thread Henrik Nordstrom
On Mon, 24 Jan 2005, Blaisorblade wrote: You'd probably prefer to use the 4G/4G patch from Ingo Molnar, integrated into Fedora kernels, to allow processes to use 4G of virtual address space. Side note: Fedora apparently dropped this patch some time ago, reason not known to me. * Thu Dec 09 2004 D

Re: [uml-devel] memory

2005-01-24 Thread Henrik Nordstrom
On Mon, 24 Jan 2005, Rob Landley wrote: Interesting. I wonder how that works? (PAE on x86 only lets you have 64G.) Thats only an limitation of the CPU support for PAE. As UML is using mmap() other limits apply and these limits is mainly set by the UML pagetable structures. But an individual pr

Re: [uml-devel] memory

2005-01-24 Thread Henrik Nordstrom
On Sun, 23 Jan 2005, Rob Landley wrote: The client kernel's highmem suport is unlikely to do much, I'd think. Not unless it's unmapping and remapping multiple mmaps. (There's large file support, but trying to mmap a 5 gig chunk out of a large file can't work: what would that mean? How could you

Re: [uml-devel] memory

2005-01-23 Thread Henrik Nordstrom
On Sun, 23 Jan 2005, Doug Dumitru wrote: What you are trying to do will work, but not for large amounts of memory. UML runs the client using a single user mode memory block as the entire client's core. Thus the clients core size is limited to what a single task can allocate as plain memory. It

Re: [uml-devel] df -h and hostfs

2005-01-12 Thread Henrik Nordstrom
On Wed, 12 Jan 2005, Blaisorblade wrote: Yes, good idea... fixing it like you said will guarantee correct free space stats (apart for quotas) but not correct used-space and total-space stats (they would be possible only for humfs if it uses some accounting). It will be as good as if the root was NF

Re: [uml-devel] How stable is hostfs (and UML in general)?

2005-01-11 Thread Henrik Nordstrom
On Tue, 11 Jan 2005, Rob Landley wrote: Don't have a real partition to mount it on, unless I want to cannibalize the host system's swap. I could try ubd if you think it would help. You are likely to experience less bugs using ubd than hostfs. /dev/console attaches to fd0 and fd1. These are not tt

Re: [uml-devel] How stable is hostfs (and UML in general)?

2005-01-10 Thread Henrik Nordstrom
On Mon, 10 Jan 2005, Rob Landley wrote: Did you read second sentence in the bit you just quoted? How, exactly, could I chroot into there and compile stuff if ld isn't there? Is the permissions on your hostfs tree set correctly? Can you execute ld manually? And again, have you tried with the -bb UM

Re: [uml-devel] How stable is hostfs (and UML in general)?

2005-01-09 Thread Henrik Nordstrom
On Sun, 9 Jan 2005, Rob Landley wrote: I wonder if that old hack (deleting the file signalling there's no rush about writing stuff back to the disk anymore, although it's still your backing store) still works? Probably not. Why does it do this instead of just mallocing stuff, anyway? (Quick and di

RE: [uml-devel] bridge query

2005-01-07 Thread Henrik Nordstrom
On Fri, 7 Jan 2005, Adil Mujeeb, Noida wrote: I have not added the guest interface & add a new ip to bridge and update the routing tables and iam able to outside thru guest. Correct. You only need to use bridgeing if you want your UMLs to be part of the local lan where the host is connected, not