Re: [uml-devel] Re: tun/tap network throughput problem

2005-03-09 Thread Nuutti Kotivuori
Young Koh wrote: >> In general, there's nothing to limit how many packets get queued to >> the interface queue - if something sends a million packets, that is >> how many packets are queued to the interface. However, for TCP, >> there > > interesting. then, the UDP sending rate should be solely det

Re: [uml-devel] Re: tun/tap network throughput problem

2005-03-09 Thread Nuutti Kotivuori
Nuutti Kotivuori wrote: > Young Koh wrote: >> when i measured UDP sending rate in the host machine, it was about >> 650Mbits/s. that means the throughput of data transfer from an >> application to the kernel internal structure is only 650Mbits/s? >> but, when i measured UDP sending rate with loopb

[uml-devel] Switching uml_utilities to public CVS and no-maintainer model

2005-03-09 Thread Blaisorblade
Now, I'm thinking to move uml_utilities to a CVS repository, either the SourceForge one or the UML's own one. And give to many write-access to it (for public read access we'll see, there are security problems with pserver. Having a rsyncable CVS repos like for the kernel should be ok - the repo

Re: [uml-devel] RE: uml_switch security fixing

2005-03-09 Thread Blaisorblade
On Monday 07 March 2005 05:42, Steve Schmidtke wrote: > Blaisorblade wrote: > >Hey, has anyone found the time to put together any patch to workaround the > >security bug in uml_net? > Attached are two patches. The first one, uml_net-slip.diff, is the minimal > patch to apply to uml_net. The seco

Re: [uml-devel] Re: uml_switch security fixing

2005-03-09 Thread Blaisorblade
On Thursday 03 March 2005 13:47, Nuutti Kotivuori wrote: > [EMAIL PROTECTED] wrote: > > Suggestions? > > FWIW, we have gone off using switch daemon entirely. We are using > simply preallocated tap devices, connected to bridges via normal Linux > bridging controls. Works cleaner and faster, more pla

Re: [uml-devel] [PATCH] UML - Make deb-pkg build target build a Debian-style user-mode-linux package

2005-03-09 Thread Blaisorblade
On Monday 07 March 2005 19:28, Ryan Anderson wrote: > Make the deb-pkg build target understand the "um" arch and set up the > package and directory structure to match a mainline-Debian style > user-mode-linux package. > > This is primarily so that it stops matching, exactly, the naming > convention

[uml-devel] [patch 1/1] unified spinlock initialization arch/um/drivers/port_kern.c

2005-03-09 Thread blaisorblade
From: <[EMAIL PROTECTED]> Cc: , <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Unify the spinlock initialization as far as possible. Signed-off-by: Amit Gud <[EMAIL PROTECTED]> Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL P

[uml-devel] Re: [patch 1/1] unified spinlock initialization arch/um/drivers/port_kern.c

2005-03-09 Thread Russell King
On Wed, Mar 09, 2005 at 10:42:33AM +0100, [EMAIL PROTECTED] wrote: > > From: <[EMAIL PROTECTED]> > Cc: , <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > > Unify the spinlock initialization as far as possible. Are you sure this is really the best option in this instance? Someti

Re: [uml-devel] Re: Fw: [patch] uml: terminal cleanup

2005-03-09 Thread Blaisorblade
On Tuesday 08 March 2005 09:25, Gerd Knorr wrote: > > > -void register_winch(int fd, void *device_data) > > > +void register_winch(int fd, struct tty_struct *tty) > > > { > > > int pid, thread, thread_fd; > > > int count; > > > -void line_close(struct line *lines, struct tty_struct *tty) > >

Re: [uml-devel] RE: uml_switch security fixing

2005-03-09 Thread Steve Schmidtke
Blaisorblade wrote: But an unpatched UML won't work with a newer uml_net binary (for SLIP usage only and only for closing the interface, I mean), right? Correct. I think uml_net would need to manage a database of who opened what to do what you suggest. I also looked at the versioning for uml_net

Re: [uml-devel] how to "freeze" user mode linux

2005-03-09 Thread Blaisorblade
On Tuesday 08 March 2005 17:13, Rob Landley wrote: > On Tuesday 08 March 2005 02:45 am, [EMAIL PROTECTED] wrote: > > hello everyone: > > > > I am a new coder of embed linux app development .I use "User Mode Linux " > > as host stimulator environment where our applications running .now I > > have a

Re: [uml-devel] tun/tap network throughput problem

2005-03-09 Thread Blaisorblade
On Monday 07 March 2005 21:56, Young Koh wrote: > Hi, > > i was running an expriment to measure network throughput of UML. > physical machine A and B are connected with gigabit network. and UML > runs on machine A. i'm sending bulk UDP packets from UML to machine B > using ttcp network throughput b

Re: [uml-devel] RE: uml_switch security fixing

2005-03-09 Thread Blaisorblade
On Wednesday 09 March 2005 19:53, Steve Schmidtke wrote: > Blaisorblade wrote: > >But an unpatched UML won't work with a newer uml_net binary (for SLIP > > usage only and only for closing the interface, I mean), right? > Correct. I think uml_net would need to manage a database of who opened > wha

Re: [uml-devel] [PATCH 2/16] UML - Update defconfig

2005-03-09 Thread Blaisorblade
On Tuesday 08 March 2005 16:54, Rob Landley wrote: > On Monday 07 March 2005 03:37 pm, Jeff Dike wrote: > > Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> > > > > Index: linux-2.6.11/arch/um/defconfig > > While you're at it: > > Last I checked, when I extract a fresh kernel tarball and do a make ARCH

Re: [uml-devel] how to "freeze" user mode linux

2005-03-09 Thread Erik Paulson
On Wed, Mar 09, 2005 at 08:24:26PM +0100, Blaisorblade wrote: > > In the archives there was also an announce for a separate project for UML > only > to implement suspending in a UML-specific way (it was meaningful, but I don't > remember about it, even because they wanted to run their own mainli

[uml-devel] Re: [patch 1/1] unified spinlock initialization arch/um/drivers/port_kern.c

2005-03-09 Thread Blaisorblade
On Wednesday 09 March 2005 18:12, Russell King wrote: > On Wed, Mar 09, 2005 at 10:42:33AM +0100, [EMAIL PROTECTED] wrote: > > From: <[EMAIL PROTECTED]> > > Cc: , <[EMAIL PROTECTED]>, > > <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > > > > Unify the spinlock initialization as far as possible. > Are y

[uml-devel] RE: Switching uml_utilities to public CVS and no-maintainer model

2005-03-09 Thread Steve Schmidtke
Blaisorblade wrote: Now, I'm thinking to move uml_utilities to a CVS repository, either the SourceForge one or the UML's own one. Ok... There are too much little things to fix to have a central maintainer, IMHO. And nobody volunteered, sadly, and I can't either. Is there really that much to fix? T

Re: [uml-devel] tun/tap network throughput problem

2005-03-09 Thread Young Koh
sure, allow me to check if everything looks fine (at least) to me... On Wed, 9 Mar 2005 20:29:29 +0100, Blaisorblade <[EMAIL PROTECTED]> wrote: > On Monday 07 March 2005 21:56, Young Koh wrote: > > Hi, > > > > i was running an expriment to measure network throughput of UML. > > physical machine A

[uml-devel] lasted skas patch for 2.6

2005-03-09 Thread itamar
What´s the lasted skas patch for 2.6 kernel ? Itamar Reis Peixoto +55 (34) 3238 3845 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live u

[uml-devel] Re: Switching uml_utilities to public CVS and no-maintainer model

2005-03-09 Thread Blaisorblade
On Wednesday 09 March 2005 22:39, Michael Richardson wrote: > I'm happy to deal with whatever. > More open CVS is a good idea. > > I even have a gForge install at if you want. Removed the hostname just in case (I didn't now why you mailed me privately, maybe you just forgot to CC the list). > How

Re: [uml-devel] lasted skas patch for 2.6

2005-03-09 Thread Blaisorblade
On Wednesday 09 March 2005 22:59, itamar wrote: > What´s the lasted skas patch for 2.6 kernel ? See my homepage (at the end of the signature). Use -V7 for now..., it's a good release (or -V8-rc2 with the fixup if you need 2.6.11 host kernel, but it's still a bit experimental). -- Paolo Giarrusso

[uml-devel] Re: [patch 1/1] unified spinlock initialization arch/um/drivers/port_kern.c

2005-03-09 Thread Russell King
On Wed, Mar 09, 2005 at 08:52:24PM +0100, Blaisorblade wrote: > On Wednesday 09 March 2005 18:12, Russell King wrote: > > On Wed, Mar 09, 2005 at 10:42:33AM +0100, [EMAIL PROTECTED] wrote: > > > From: <[EMAIL PROTECTED]> > > > Cc: , <[EMAIL PROTECTED]>, > > > <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]

[uml-devel] Re: [patch 1/1] unified spinlock initialization arch/um/drivers/port_kern.c

2005-03-09 Thread Andrew Morton
Russell King <[EMAIL PROTECTED]> wrote: > > I'm not convinced about the practicality of converting all static > initialisations to code-based initialisations though This is the first one I recall seeing. All the other conversions were replacing static spinlock_t lock = SPIN_LOCK_UNLOCK

[uml-devel] [PATCH 3/9] UML - "Hardware" random number generator

2005-03-09 Thread Jeff Dike
This implements a hardware random number generator for UML which attaches itself to the host's /dev/random. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.11/arch/um/Kconfig_char === --- linux-2.6.11.orig/arch/um/Kconf

[uml-devel] [PATCH 5/9] UML - change semaphores to completions

2005-03-09 Thread Jeff Dike
From: Esben Nielsen One of the problems was use of direct architecture specific semaphores (which doesn't work under PREEMPT_REALTIME) and in places where a quick (maybe too quick) look at the code told me that completions ought to be used. Therefore I changed two semaphores to completions which

[uml-devel] [PATCH 6/9] UML - Remove build dependency on perl

2005-03-09 Thread Jeff Dike
To quote .config into config.c for building the result into the code, use sed instead of perl, as requested by one "embedded" UML user (which notes that perl is a big requirement, while busybox provides sed which is used in this patch). I've tested that there are only cosmethical differences in

[uml-devel] [PATCH 7/9] UML - Speed up tlb flushing

2005-03-09 Thread Jeff Dike
This patch optimizes tlb flushing in a couple of ways to reduce the number of system calls made to the host in order to update an address space. Operations are collected, and adjacent ones which can be merged, are. This includes consecutive munmaps, mprotects with the same permissions, and mmaps

[uml-devel] [PATCH 9/9] UML - Fix rounding bug in tlb flushing

2005-03-09 Thread Jeff Dike
From: Bodo Stroesser <[EMAIL PROTECTED]> fix_range_common and flush_tlb_kernel_range_common don't work correctly, if a PGD (or PUD or PMD) is not present and start_addr (resp. start) is not aligned to a PGD boundary (or PUD or PMD boundary). Signed-off-by: Bodo Stroesser <[EMAIL PROTECTED]> Signe

[uml-devel] [PATCH 1/9] UML - Fix hostfs typo

2005-03-09 Thread Jeff Dike
Fix a typo in the hostfs setgid code. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.11/arch/um/include/kern.h === --- linux-2.6.11.orig/arch/um/include/kern.h2005-03-08 20:13:55.0 -0500 +++ linux-2.6.11/a

[uml-devel] [PATCH 4/9] UML - Export gcov symbol based on gcc version

2005-03-09 Thread Jeff Dike
The init function called by gcc when gcov is enabled is __gcov_init or __bb_init_func, depending on the gcc version. Anton is using 3.3.4 and seeing __gcov_init. I'm using 3.3.2 and seeing __bb_init_func, so we need to close that gap a bit. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: l

[uml-devel] [PATCH 2/9] UML - ptrace interface cleanup

2005-03-09 Thread Jeff Dike
>From Bodo Stroesser, mostly: Gets rid of all inclusions of {sys,linux,asm}/ptrace.h since their effects and contents are somewhat distro- and architecture-dependent. arch/um/sysdep/ptrace_user is now responsible for providing the system's ptrace interfaces to UML. As such, it is a purely userspa

[uml-devel] [PATCH 8/9] UML - Consolidate tlb flushing code

2005-03-09 Thread Jeff Dike
This patch merges now-identical page table walking and flushing code that had been duplicated in skas and tt modes. The differences had been the low-level address space updating operations, which are now abstracted away in the respective do_ops functions. Signed-off-by: Jeff Dike <[EMAIL PROTECTE

[uml-devel] Re: [PATCH 5/9] UML - change semaphores to completions

2005-03-09 Thread Andrew Morton
Jeff Dike <[EMAIL PROTECTED]> wrote: > > @@ -197,13 +197,14 @@ > { .list = LIST_HEAD_INIT(port->list), > .wait_count = ATOMIC_INIT(0), > .has_connection = 0, > - .sem = __SEMAPHORE_INITIALIZ

[uml-devel] Re: [patch 1/1] unified spinlock initialization arch/um/drivers/port_kern.c

2005-03-09 Thread Zwane Mwaikambo
On Wed, 9 Mar 2005, linux-os wrote: > We need to retain the spin_lock_init(&lock) because not all spin-locks > are allocated at compile-time. They might be allocated from kmalloc() > on startup, probably in a structure, along with other so-called > global data. Not to worry my good man, it's not

[uml-devel] (no subject)

2005-03-09 Thread Fitch, David L

[uml-devel] uml starting with a valid ip.

2005-03-09 Thread itamar
How to start a uml with a valid ip using tuntap ? Itamar Reis Peixoto +55 (34) 3238 3845 e-mail : [EMAIL PROTECTED] --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Disco