From owner-freebsd-emulation Sun Sep 17 14:16:39 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id 4FAD237B422; Sun, 17 Sep 2000 14:16:35 -0700 (PDT) Received: from [128.130.111.2] (deneb [128.130.111.2]) by vexpert.dbai.tuwien.ac.at (8.9.3/8.9.3) with ESMTP id XAA20249; Sun, 17 Sep 2000 23:16:27 +0200 (MET DST) Date: Sun, 17 Sep 2000 23:16:27 +0200 (CEST) From: Gerald Pfeifer To: Andrew Gallatin Cc: freebsd-emulation@freebsd.org, freebsd-java@freebsd.org Subject: Re: IBM JDK 1.3 now working (pointer to patches) In-Reply-To: <14786.27119.307209.768848@grasshopper.cs.duke.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 15 Sep 2000, Andrew Gallatin wrote: > As promised, here's a new diff for 4.0-release: > > http://www.cs.duke.edu/~gallatin/linux_sa_siginfo/4.0-release.diff > > And a new diff to the pre-smpng -current: > http://www.cs.duke.edu/~gallatin/linux_sa_siginfo/diff Thanks! Hopefully someone will really install that into -STABLE before 4.1-RELEASE? Gerald To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Sep 17 23:22:50 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from shidahara1.planet.sci.kobe-u.ac.jp (shidahara1.planet.sci.kobe-u.ac.jp [133.30.50.200]) by hub.freebsd.org (Postfix) with ESMTP id 7196137B423; Sun, 17 Sep 2000 23:22:42 -0700 (PDT) Received: from shidahara1.planet.sci.kobe-u.ac.jp (localhost [127.0.0.1]) by shidahara1.planet.sci.kobe-u.ac.jp (8.9.3/8.9.3) with ESMTP id PAA49090; Mon, 18 Sep 2000 15:22:39 +0900 (JST) (envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp) Message-Id: <200009180622.PAA49090@shidahara1.planet.sci.kobe-u.ac.jp> To: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: PEACE - Portable Executable win32 API Compatible Environment. Date: Mon, 18 Sep 2000 15:22:38 +0900 From: Takanori Watanabe Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I ported kernel part of PEACE from NetBSD.(That is in sys/compat/pecoff/*). What is PEACE PEACE is Win32 API Compatible environment for (Originally) NetBSD. It consist of three parts: Kernel part to load PE format executable onto process memory space. Dynamic Linker to link with PE format DLL. Libraries to translate Win32 API call to NetBSD native system call. Yes, this scheme is more like BSD/OS's LAP than FreeBSD Linux ABI module. For more infomation: http://chiharu.hauN.ORG/peace/ Status: FreeBSD Specific: - I ported executable loader moudule to FreeBSD. - FreeBSD native libraries is not yet available,so I wrote a module to add(or replace) system call so that the libraries can be run. - It requires following changes to sys/imgact.h and kern/kern_exec.c to be able to change size of memory area to hold dynamic linker argument from executable image loader. --- sys/imgact.h.orig Mon Sep 18 02:18:46 2000 +++ sys/imgact.h Mon Sep 18 02:19:25 2000 @@ -58,6 +58,7 @@ struct vm_page *firstpage; /* first page that we mapped */ char *fname; /* pointer to filename of executable (user space) */ unsigned long ps_strings; /* PS_STRINGS for BSD/OS binaries */ + size_t auxarg_size; }; #ifdef _KERNEL --- kern/kern_exec.c.orig Fri Jul 14 15:44:45 2000 +++ kern/kern_exec.c Mon Sep 18 02:59:45 2000 @@ -127,6 +127,7 @@ imgp->vp = NULL; imgp->firstpage = NULL; imgp->ps_strings = 0; + imgp->auxarg_size=0; /* * Allocate temporary demand zeroed space for argument and @@ -613,14 +614,21 @@ * If we have a valid auxargs ptr, prepare some room * on the stack. */ - if (imgp->auxargs) + if (imgp->auxargs){ + /* + * 'AT_COUNT*2' is size for the ELF Auxargs data. + * This is for lower compatibility. + */ + imgp->auxarg_size=(imgp->auxarg_size)?imgp->auxarg_size + :(AT_COUNT*2); /* * The '+ 2' is for the null pointers at the end of each of the - * arg and env vector sets, and 'AT_COUNT*2' is room for the - * ELF Auxargs data. + * arg and env vector sets,and imgp->auxarg_size is room for argument + * of Runtime loader. */ vectp = (char **)(destp - (imgp->argc + imgp->envc + 2 + - AT_COUNT*2) * sizeof(char*)); + imgp->auxarg_size) * sizeof(char*)); + } else /* * The '+ 2' is for the null pointers at the end of each of the You can get These modules at http://www.planet.sci.kobe-u.ac.jp/~takawata/peace/peace4fbsd-kmodule.tar.gz General status: - Some command line application like FTP.EXE, CMD.EXE ,EXTRAC32.EXE can be run. - Simplest GUI application can be run,such as whello.exe ,distributed in PEACE website. ToDO priority order. - Merge the patch to precede .(Who should I ask about it?) - Merge pecoff loader module to FreeBSD. - Create native ld.so.dll ,pecoff format of libc.a and libc.dll . - Share library sources with NetBSD version as much as we can. NOTE: I don't subscribe freebsd-emulation. Thanks in advance . Takanori Watanabe Public Key Key fingerprint = 2C 51 E2 78 2C E1 C5 2D 0F F1 20 A3 11 3A 62 2A To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Sep 18 6:33:41 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id B1B2937B424; Mon, 18 Sep 2000 06:33:37 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id JAA00968; Mon, 18 Sep 2000 09:33:37 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.0/8.9.1) id e8IDXbI01415; Mon, 18 Sep 2000 09:33:37 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 18 Sep 2000 09:33:36 -0400 (EDT) To: Gerald Pfeifer Cc: freebsd-emulation@freebsd.org, freebsd-java@freebsd.org Subject: Re: IBM JDK 1.3 now working (pointer to patches) In-Reply-To: References: <14786.27119.307209.768848@grasshopper.cs.duke.edu> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14790.6386.502425.801102@grasshopper.cs.duke.edu> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Gerald Pfeifer writes: > On Fri, 15 Sep 2000, Andrew Gallatin wrote: > > As promised, here's a new diff for 4.0-release: > > > > http://www.cs.duke.edu/~gallatin/linux_sa_siginfo/4.0-release.diff > > > > And a new diff to the pre-smpng -current: > > http://www.cs.duke.edu/~gallatin/linux_sa_siginfo/diff > > Thanks! Hopefully someone will really install that into -STABLE before > 4.1-RELEASE? Errrm.. 4.1-RELEASE was last month... I have the 4-cd set here in my office. In any case, I need to get them reviewed by the linux abi maintainer before they can be committed. Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Sep 18 11:51: 1 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 0C93137B423; Mon, 18 Sep 2000 11:50:57 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id MAA91503; Mon, 18 Sep 2000 12:50:53 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id MAA32922; Mon, 18 Sep 2000 12:50:43 -0600 (MDT) Message-Id: <200009181850.MAA32922@harmony.village.org> To: Takanori Watanabe Subject: Re: PEACE - Portable Executable win32 API Compatible Environment. Cc: freebsd-hackers@FreeBSD.ORG, freebsd-emulation@FreeBSD.ORG In-reply-to: Your message of "Mon, 18 Sep 2000 15:22:38 +0900." <200009180622.PAA49090@shidahara1.planet.sci.kobe-u.ac.jp> References: <200009180622.PAA49090@shidahara1.planet.sci.kobe-u.ac.jp> Date: Mon, 18 Sep 2000 12:50:43 -0600 From: Warner Losh Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <200009180622.PAA49090@shidahara1.planet.sci.kobe-u.ac.jp> Takanori Watanabe writes: : I ported kernel part of PEACE from NetBSD.(That is in sys/compat/pecoff/*). Cool. Way Cool. : - It requires following changes to sys/imgact.h and kern/kern_exec.c to : be able to change size of memory area to hold dynamic linker argument : from executable image loader. Woof. I think this is reasonable, but will let others more qualified talk about it. I think that arch@ should likely review it if there aren't enough people doing so in emulation@. It looks good to me, but my knowledge in this area is limited and I think others with a better understanding might be able to give a better review. : - Merge the patch to precede .(Who should I ask about it?) Once the patch is reviewed, you should be able to commit the change yourself, since you have commit privs. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Sep 18 13:35: 4 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 9167E37B424; Mon, 18 Sep 2000 13:34:59 -0700 (PDT) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id WAA09131; Mon, 18 Sep 2000 22:34:51 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Takanori Watanabe Cc: freebsd-hackers@FreeBSD.ORG, freebsd-emulation@FreeBSD.ORG Subject: Re: PEACE - Portable Executable win32 API Compatible Environment. References: <200009180622.PAA49090@shidahara1.planet.sci.kobe-u.ac.jp> From: Dag-Erling Smorgrav Date: 18 Sep 2000 22:34:50 +0200 In-Reply-To: Takanori Watanabe's message of "Mon, 18 Sep 2000 15:22:38 +0900" Message-ID: Lines: 12 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Takanori Watanabe writes: > PEACE is Win32 API Compatible environment for (Originally) NetBSD. > It consist of three parts: > Kernel part to load PE format executable onto process memory space. > Dynamic Linker to link with PE format DLL. > Libraries to translate Win32 API call to NetBSD native system call. What is the difference between PEACE and WINE? DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Sep 18 14:18:18 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by hub.freebsd.org (Postfix) with ESMTP id 0ECAD37B423; Mon, 18 Sep 2000 14:18:15 -0700 (PDT) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.9.3/8.9.3) id OAA15595; Mon, 18 Sep 2000 14:23:10 -0700 (PDT) (envelope-from sgk) From: Steve Kargl Message-Id: <200009182123.OAA15595@troutmask.apl.washington.edu> Subject: Re: PEACE - Portable Executable win32 API Compatible Environment. In-Reply-To: from Dag-Erling Smorgrav at "Sep 18, 2000 10:34:50 pm" To: Dag-Erling Smorgrav Date: Mon, 18 Sep 2000 14:23:10 -0700 (PDT) Cc: Takanori Watanabe , freebsd-hackers@FreeBSD.ORG, freebsd-emulation@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dag-Erling Smorgrav wrote: > Takanori Watanabe writes: > > PEACE is Win32 API Compatible environment for (Originally) NetBSD. > > It consist of three parts: > > Kernel part to load PE format executable onto process memory space. > > Dynamic Linker to link with PE format DLL. > > Libraries to translate Win32 API call to NetBSD native system call. > > What is the difference between PEACE and WINE? > Wine is actually trying to completely replace MS windows (include win3.1, win95, win98, and winnt). SO, wine includes code for the old 16 bit API(s) and it is trying to replace all on the MS dll's with built-in dll. -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Sep 18 14:31: 3 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from mail.inka.de (quechua.inka.de [212.227.14.2]) by hub.freebsd.org (Postfix) with ESMTP id EAF5637B423 for ; Mon, 18 Sep 2000 14:31:00 -0700 (PDT) Received: from ganerc.mips.inka.de (uucp@) by mail.inka.de with local-bsmtp id 13b8VA-0000z4-01; Mon, 18 Sep 2000 23:31:00 +0200 Received: (from daemon@localhost) by ganerc.mips.inka.de (8.11.0/8.11.0) id e8IKq6F54672 for freebsd-emulation@freebsd.org; Mon, 18 Sep 2000 22:52:06 +0200 (CEST) (envelope-from daemon) From: naddy@mips.inka.de (Christian Weisgerber) Subject: Linux getpgid() Date: 18 Sep 2000 22:52:06 +0200 Message-ID: <8q5v9m$1lc2$1@ganerc.mips.inka.de> To: freebsd-emulation@freebsd.org Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Noticed on 4.1-STABLE/i386: Under the Linuxulator, getpgid(0) fails with ESRCH. This is easy enough to fix in sys/{i386,compat}/linux/linux_misc.c:linux_getpgid(). However, it raises the question why getpgid() was wrapped for the Linux compatibility layer in the first place. As far as I can tell, getpgid() has exactly the semantics on FreeBSD and Linux--and POSIX for that matter. In fact, the only difference between linux_getpgid() and the native getpgid() that I can see is that the former doesn't handle getpgid(0). Any reasons why we shouldn't just go with 132 NOPROTO LINUX { int getpgid(int pid); } ? -- Christian "naddy" Weisgerber naddy@mips.inka.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Sep 18 20:47: 7 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from shidahara1.planet.sci.kobe-u.ac.jp (shidahara1.planet.sci.kobe-u.ac.jp [133.30.50.200]) by hub.freebsd.org (Postfix) with ESMTP id 8651837B424; Mon, 18 Sep 2000 20:46:57 -0700 (PDT) Received: from shidahara1.planet.sci.kobe-u.ac.jp (localhost [127.0.0.1]) by shidahara1.planet.sci.kobe-u.ac.jp (8.9.3/8.9.3) with ESMTP id MAA78539; Tue, 19 Sep 2000 12:46:51 +0900 (JST) (envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp) Message-Id: <200009190346.MAA78539@shidahara1.planet.sci.kobe-u.ac.jp> To: Steve Kargl , Dag-Erling Smorgrav Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: PEACE - Portable Executable win32 API Compatible Environment. In-reply-to: Your message of "Mon, 18 Sep 2000 14:23:10 MST." <200009182123.OAA15595@troutmask.apl.washington.edu> Date: Tue, 19 Sep 2000 12:46:48 +0900 From: Takanori Watanabe Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <200009182123.OAA15595@troutmask.apl.washington.edu>, Steve Kargl wrote: >Dag-Erling Smorgrav wrote: >> Takanori Watanabe writes: >> > PEACE is Win32 API Compatible environment for (Originally) NetBSD. >> > It consist of three parts: >> > Kernel part to load PE format executable onto process memory space. >> > Dynamic Linker to link with PE format DLL. >> > Libraries to translate Win32 API call to NetBSD native system call. >> >> What is the difference between PEACE and WINE? >> > >Wine is actually trying to completely replace MS windows (include >win3.1, win95, win98, and winnt). SO, wine includes code for the >old 16 bit API(s) and it is trying to replace all on the MS >dll's with built-in dll. Yes ,but more essential difference is the way the executable binaries are treated. In FreeBSD Linux ABI support,executable binariies are treated as a executable text and kernel translate system calls so static Linux binaries can be run. +--------+ |Linux | | binary | |+ Lib | | | +--^-----+ | -----v-------KERNEL---- |Linux Syscall| |Entry | +-------------+ In Wine, Wine behaves as operation system that runs under FreeBSD and from FreeBSD, Windows executable is treated as data file. +----Wine--------+ | +--------+ | | |Windows | | | |App.+lib| | | +^-------+ | | | | +--v-------------| | Internal Lib | +----^-----------+ | --------v------KERNEL------------ (Native system entry) In PEACE,kernel execute PE executable (NE Win16 Binaries and DOS application is not supported) directry and prepare library imprementing win32 API by FreeBSD native system call and replace some win32 library by it. +----------+ |Win32 Exec| |+some native |Lib. +----+ | | | +-----+ | |replaced lib +---^------+ | | ------v----KERNEL----------- (Native sysent) That is my understanding. Takanori Watanabe Public Key Key fingerprint = 2C 51 E2 78 2C E1 C5 2D 0F F1 20 A3 11 3A 62 2A To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Sep 19 1:59:47 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from guard.polynet.lviv.ua (Guard.PolyNet.Lviv.UA [209.58.62.194]) by hub.freebsd.org (Postfix) with SMTP id B868437B423 for ; Tue, 19 Sep 2000 01:59:38 -0700 (PDT) Received: (qmail 3721 invoked from network); 19 Sep 2000 08:59:33 -0000 Received: from unknown (HELO postoffice.polynet.lviv.ua) (unknown) by unknown with SMTP; 19 Sep 2000 08:59:33 -0000 Received: (qmail 80854 invoked by uid 1001); 19 Sep 2000 08:59:32 -0000 Date: 19 Sep 2000 11:59:32 +0300 Date: Tue, 19 Sep 2000 11:59:32 +0300 From: Adrian Pavlykevych To: freebsd-emulation@freebsd.org Subject: Re: IBM JDK 1.3 now working (pointer to patches) Message-ID: <20000919115932.A35105@polynet.lviv.ua> References: <14783.55339.269170.481033@grasshopper.cs.duke.edu> <14786.27119.307209.768848@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.11i In-Reply-To: <14786.27119.307209.768848@grasshopper.cs.duke.edu>; from gallatin@cs.duke.edu on Fri, Sep 15, 2000 at 02:34:29PM -0400 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Sep 15, 2000 at 02:34:29PM -0400, Andrew Gallatin wrote: > > As for -stable -- Sean O'Connell took care of that yesterday. The > 4.0-release diff should (almost) apply to -stable. I don't have an > up-to-date -stable tree laying around & I don't have time to make > -stable diff right now. I obtained this diff by applying the patches > that Sean O'Connell posted yesterday (thanks Sean) and cleaning up 2 > rejects. Could someone post pointer (URL) to those -stable patches? I am almost 100% sure, that there were no refernces to them in yesterdays -emulation or -stable mailings. Thanks in advance, -- Adrian Pavlykevych email: System Administrator phone/fax: +380 (322) 742041 State University "Lvivska Polytechnica" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Sep 19 6: 9:20 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from beamer.mchh.siemens.de (beamer.mchh.siemens.de [194.138.158.163]) by hub.freebsd.org (Postfix) with ESMTP id D592D37B424 for ; Tue, 19 Sep 2000 06:09:15 -0700 (PDT) Received: from moody.mchh.siemens.de (mail2.mchh.siemens.de [194.138.158.226]) by beamer.mchh.siemens.de (8.9.3/8.9.3) with ESMTP id PAA05748; Tue, 19 Sep 2000 15:08:45 +0200 (MET DST) Received: from mchh247e.demchh201e.icn.siemens.de ([139.21.200.57]) by moody.mchh.siemens.de (8.9.1/8.9.1) with ESMTP id PAA24713; Tue, 19 Sep 2000 15:08:29 +0200 (MET DST) Received: by MCHH247E with Internet Mail Service (5.5.2650.21) id ; Tue, 19 Sep 2000 15:09:06 +0200 Message-ID: <67E0BE167008D31185F60008C7289DA0E12F19@MCHH218E> From: Reifenberger Michael To: "'Andrew Gallatin'" Cc: "'freebsd-emulation@freebsd.org'" Subject: Re: IBM JDK 1.3 now working (pointer to patches) Date: Tue, 19 Sep 2000 15:09:05 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I've tried your latest patches on -current (patching the kernel, = rebuilt kernel+modules). It works better than before - it doesn't fill the syslog with ton's of = messages. But it isn't fully working as expected. After starting one of my testapps (lotus notes or oracle 8.1.6 = installer) I get one: "kernel: trap 9 with interrupts disabled" in syslog and nothing else = happens. Am I missing something? Bye/2 ------ Michael Reifenberger - IT, UNIX, R/3-Basis Work: Michael.Reifenberger@plaut.de Proj: = Michael.Reifenberger.gp@icn.siemens.de Pers: Michael@Reifenberger.com Webspace: http://www.reifenberger.com > -----Urspr> =FCngliche Nachricht----- > Von: Andrew Gallatin [SMTP:gallatin@cs.duke.edu] > Gesendet am: Freitag, 15. September 2000 20:34 > An: Gerald Pfeifer > Cc: freebsd-emulation@FreeBSD.ORG; freebsd-java@FreeBSD.ORG > Betreff: Re: IBM JDK 1.3 now working (pointer to patches) >=20 >=20 >=20 > As promised, here's a new diff for 4.0-release: >=20 > http://www.cs.duke.edu/~gallatin/linux_sa_siginfo/4.0-release.diff >=20 > And a new diff to the pre-smpng -current: > http://www.cs.duke.edu/~gallatin/linux_sa_siginfo/diff >=20 > As for -stable -- Sean O'Connell took care of that yesterday. The > 4.0-release diff should (almost) apply to -stable. I don't have an > up-to-date -stable tree laying around & I don't have time to make > -stable diff right now. I obtained this diff by applying the patches > that Sean O'Connell posted yesterday (thanks Sean) and cleaning up 2 > rejects. >=20 > Both have a change in that rather than hitting the thread stack > problem over the head by changing the map flag to MAP_ANON from > MAP_STACK, I'm now detecting the allocation of a thread stack in the > region typically reserved for the main process stack and adjusting > vm_maxsaddr to reflect the current stacksize resource limit. >=20 > Drew >=20 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-emulation" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Sep 19 6:17:13 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id E3EC537B42C for ; Tue, 19 Sep 2000 06:14:06 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id JAA26094; Tue, 19 Sep 2000 09:12:21 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.0/8.9.1) id e8JDCLS05666; Tue, 19 Sep 2000 09:12:21 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 19 Sep 2000 09:12:21 -0400 (EDT) To: Michael.Reifenberger.gp@icn.siemens.de Cc: freebsd-emulation@freebsd.org Subject: Re: IBM JDK 1.3 now working (pointer to patches) In-Reply-To: <67E0BE167008D31185F60008C7289DA0E12F19@MCHH218E> References: <67E0BE167008D31185F60008C7289DA0E12F19@MCHH218E> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14791.26060.961311.116169@grasshopper.cs.duke.edu> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Reifenberger Michael writes: > Hi, > I've tried your latest patches on -current (patching the kernel, rebuilt kernel+modules). > It works better than before - it doesn't fill the syslog with ton's of messages. > But it isn't fully working as expected. > After starting one of my testapps (lotus notes or oracle 8.1.6 installer) I get one: > "kernel: trap 9 with interrupts disabled" in syslog and nothing else happens. > Am I missing something? > No, I probably am the one missing something. I think that's an older version of ibm's jdk than I've been testing with. Can you point me at someplace where I can freely download one of these apps so I can duplicate the problem? Thanks, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Sep 19 9:51:47 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id 6554A37B424 for ; Tue, 19 Sep 2000 09:51:45 -0700 (PDT) Received: from medusa.kfu.com (medusa.kfu.com [205.178.90.222]) by quack.kfu.com (8.11.0/8.9.3) with ESMTP id e8JGpfe22267; Tue, 19 Sep 2000 09:51:41 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from localhost (nsayer@localhost) by medusa.kfu.com (8.11.0/8.11.0) with ESMTP id e8JGpfZ01996; Tue, 19 Sep 2000 09:51:41 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) X-Authentication-Warning: medusa.kfu.com: nsayer owned process doing -bs Date: Tue, 19 Sep 2000 09:51:41 -0700 (PDT) From: Nick Sayer X-Sender: nsayer@medusa.kfu.com To: Archie Cobbs Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: vmnet, bridging and netgraph In-Reply-To: <200009160018.RAA81024@bubba.whistle.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 15 Sep 2000, Archie Cobbs wrote: > The ng_bridge(4) node treats all links as the same, whether they are > pointing "up" or "down", so it wouldn't know how to do that. I guess > it could contain logic to probe each peer to see if it's an ng_ether > node, and if so, remember it. That's probably worth looking in to.. The change to ng_ether committed last night fixes this. Using ng_bridge now works at least as well as the traditional bridge stuff. I still think something's just a touch whacky in if_tap, but it works for everything except being a dhcp client of the Solaris machine at the office. > You'd need ng_ether.ko and ng_bridge.ko, both of which depend on > netgraph.ko... ? Doing that, I end up with _two_ copies of ng_bridge installed, but if I don't, then I get no copies. But if I try other combinations it just flat doesn't work. Perhaps it's because I am kldloading netgraph.ko instead of using 'options NETGRAPH' in my kernel? Vladimir: Want to take a whack at morphing the vmware.sh script to support ng_bridge.ko where available? :-) Maybe it's time to have a bunch of different vmware.sh scripts and have the port dialogs let you select the one you want: 1. No networking 2. Host only networking 3. Netgraph bridging 4. old fashioned bridging 5. 2 and 4 without if_tap (does the port support this anymore?) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Sep 19 10: 6: 8 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id C04D337B423 for ; Tue, 19 Sep 2000 10:05:49 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id NAA01441; Tue, 19 Sep 2000 13:05:47 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.0/8.9.1) id e8JH5kj06031; Tue, 19 Sep 2000 13:05:46 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 19 Sep 2000 13:05:46 -0400 (EDT) To: Reifenberger Michael Cc: "'freebsd-emulation@freebsd.org'" Subject: Re: IBM JDK 1.3 now working (pointer to patches) In-Reply-To: <67E0BE167008D31185F60008C7289DA0E12F19@MCHH218E> References: <67E0BE167008D31185F60008C7289DA0E12F19@MCHH218E> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14791.39444.277301.461069@grasshopper.cs.duke.edu> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Reifenberger Michael writes: > Hi, > I've tried your latest patches on -current (patching the kernel, rebuilt kernel+modules). > It works better than before - it doesn't fill the syslog with ton's of messages. > But it isn't fully working as expected. > After starting one of my testapps (lotus notes or oracle 8.1.6 installer) I get one: > "kernel: trap 9 with interrupts disabled" in syslog and nothing else happens. > Am I missing something? It looks like the IBM jdk 1.1.8 has a different problem than the the 1.3 jdk. From a ktrace I see the problem when a particular thread is clone()'ed: <...> 2848 java RET linux_fork 0 2848 java CALL getpid 2848 java RET getpid 2848/0xb20 2848 java CALL linux_rt_sigprocmask(0x2,0xbf1ffec4,0,0x8) 2848 java RET linux_rt_sigprocmask 0 2848 java CALL linux_sched_setscheduler(0xb20,0,0xbf1fff48) 2848 java RET linux_sched_setscheduler RESTART 2848 java CALL nanosleep(0xbf1ffd00,0) 2846 java RET linux_kill 0 2846 java CALL poll(0x80b1600,0x1,0x7d0) 2841 java RET linux_rt_sigsuspend -1 errno 4 Interrupted system call 2841 java CALL linux_sigreturn(0xbfbfe99c) 2848 java RET nanosleep 0 2848 java CALL nanosleep(0xbf1ffd00,0) 2841 java RET linux_sigreturn JUSTRETURN 2841 java CALL linux_rt_sigprocmask(0x2,0,0xbfbfeac8,0x8) 2841 java RET linux_rt_sigprocmask 0 2841 java CALL linux_rt_sigsuspend(0xbfbfeac8,0x8) 2848 java RET nanosleep 0 2848 java CALL getpid 2848 java RET getpid 2848/0xb20 2848 java CALL linux_rt_sigprocmask(0x1,0x281f9a20,0,0x8) 2848 java RET linux_rt_sigprocmask 0 2848 java CALL linux_modify_ldt(0x11,0xbf1ffcf4,0x10) 2848 java RET linux_modify_ldt 0 2848 java PSIG SIGSEGV caught handler=0x28082460 mask=0x80000000 code=0x0 2848 java PSIG SIGSEGV caught handler=0x28082460 mask=0xcffef6bf code=0xffffffff 2848 java PSIG SIGSEGV caught handler=0x28082460 mask=0xcffef6bf code=0xffffffff <...> Between the end of the linux_modify_ldt() function and the first SEGV signal, a "kernel trap 9 with interrupts disabled" is printed on console. (verified w/printfs in linux_sendsig() and linux_modify_ldt()). I cannot prove this, but I suspect that something is going wrong with the linux_modify_ldt() call and trashing the process's address space. I played around with our linux_modify_ldt() function & "fixed" a few minor incompatibilities, but it didn't seem to have any effect. I hate to say this, but I'm mainly an alpha guy & I don't know anything about x86 ldts. I don't even know what they are. Given that the IBM JDK 1.3 works, I'm afraid that I'm not terribly motivated to spend any time getting the obsolete 1.8 version to work. So I'm going to back away from this problem. Hopefully somebody who has more knowledge about the low-level workings of x86 processors can take up the torch. Sorry, Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Sep 19 10: 6:23 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (Postfix) with ESMTP id 7857337B616 for ; Tue, 19 Sep 2000 10:06:20 -0700 (PDT) Received: (from smap@localhost) by whistle.com (8.10.0/8.10.0) id e8JH6CR15681; Tue, 19 Sep 2000 10:06:12 -0700 (PDT) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma015674; Tue, 19 Sep 2000 10:05:53 -0700 Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.3) id KAA03955; Tue, 19 Sep 2000 10:05:53 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200009191705.KAA03955@bubba.whistle.com> Subject: Re: vmnet, bridging and netgraph In-Reply-To: "from Nick Sayer at Sep 19, 2000 09:51:41 am" To: Nick Sayer Date: Tue, 19 Sep 2000 10:05:53 -0700 (PDT) Cc: freebsd-emulation@FreeBSD.ORG, julian@elischer.org X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Nick Sayer writes: > > The ng_bridge(4) node treats all links as the same, whether they are > > pointing "up" or "down", so it wouldn't know how to do that. I guess > > it could contain logic to probe each peer to see if it's an ng_ether > > node, and if so, remember it. That's probably worth looking in to.. > > The change to ng_ether committed last night fixes this. Using ng_bridge > now works at least as well as the traditional bridge stuff. I still think Ah, great.. thanks Julian. > > You'd need ng_ether.ko and ng_bridge.ko, both of which depend on > > netgraph.ko... ? > > Doing that, I end up with _two_ copies of ng_bridge installed, but if > I don't, then I get no copies. But if I try other combinations it just > flat doesn't work. Perhaps it's because I am kldloading netgraph.ko > instead of using 'options NETGRAPH' in my kernel? This sounds like some kind of module dependency problem not specific to netgraph.. Maybe this happens because ng_bridge.ko depends on both ng_ether.ko and netgraph.ko, while ng_ether.ko also depends on netgraph.ko.. ? -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 20 18:46: 0 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from megadodo.segNET.COM (megadodo.segNET.COM [206.34.181.3]) by hub.freebsd.org (Postfix) with ESMTP id C668437B423 for ; Wed, 20 Sep 2000 18:45:58 -0700 (PDT) Received: from segnet.com (tech-03.segNET.COM [208.169.201.192]) by megadodo.segNET.COM (8.9.1a/8.8.5a) with ESMTP id VAA06507 for ; Wed, 20 Sep 2000 21:45:57 -0400 (EDT) Message-ID: <39C96855.DC8D5658@segnet.com> Date: Wed, 20 Sep 2000 21:45:57 -0400 From: Ethan Pierce X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: vmware and bridged networking Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Ive just jumped into the dialog of this whole bit that Nick is working on. Has anyone put together any documentation? Does bridged networking in vmware need to include the netgraph modules? Please advise. Desperatly seeking the manual :) Thanks, Ethan Pierce System Operations segNET Technologies Shaker Meeting House Lower Shaker Village, Enfield, NH 03748 Ethan@segNET.COM http://www.segNET.COM voice@603.643.5883 x 126 fax@603.643.9854 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 20 19: 5:55 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id 6CC3137B422 for ; Wed, 20 Sep 2000 19:05:52 -0700 (PDT) Received: from morpheus.kfu.com (morpheus.kfu.com [205.178.90.230]) by quack.kfu.com (8.11.0/8.9.3) with ESMTP id e8L25qe52588; Wed, 20 Sep 2000 19:05:52 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com by morpheus.kfu.com with ESMTP (8.11.0//ident-1.0) id e8L25qn16712; Wed, 20 Sep 2000 19:05:52 -0700 (PDT) Message-ID: <39C96D00.88FE94E1@quack.kfu.com> Date: Wed, 20 Sep 2000 19:05:52 -0700 From: Nick Sayer X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en-GB, en-US, en MIME-Version: 1.0 To: Ethan Pierce Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: vmware and bridged networking References: <39C96855.DC8D5658@segnet.com> Content-Type: multipart/mixed; boundary="------------9A5C1B957B466AD4C6A48425" Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------9A5C1B957B466AD4C6A48425 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ethan Pierce wrote: > > Ive just jumped into the dialog of this whole bit that Nick is working > on. Has anyone put together any documentation? Does bridged networking > in vmware need to include the netgraph modules? Please advise. > Desperatly seeking the manual :) Thanks, Here's a vmware.sh script I've gotten to work. It requires the very latest version of ng_ether.c (in RELENG_4, probably in -current, but I don't know). --------------9A5C1B957B466AD4C6A48425 Content-Type: application/x-sh; name="vmware.sh" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vmware.sh" #!/bin/sh # # Start or stop vmware # # $FreeBSD: ports/emulators/vmware2/files/vmware.sh,v 1.6 2000/07/31 21:56:37 knu Exp $ vmware_dir=/usr/local/lib/vmware networking=1 host_ip=192.168.254.1 netmask=255.255.255.0 interface=fxp0 [ -x $vmware_dir/bin/vmware ] || exit if [ `sysctl -n hw.ncpu` -eq 1 ]; then suffix=up else suffix=smp fi exec >/dev/null case $1 in start) kldload ${vmware_dir}/lib/modules/vmmon_${suffix}.ko if [ $networking -eq 1 ]; then # sysctl net.link.ether.bridge_refresh && bridge="_bridge" kldload if_tap.ko echo -n >/compat/linux/dev/vmnet1 ifconfig vmnet1 $host_ip netmask $netmask kldload ng_ether.ko kldload ng_bridge.ko ngctl mkpeer vmnet1: bridge lower link0 ngctl name vmnet1:lower vmnet_bridge ngctl connect vmnet_bridge: ${interface}: link1 lower ngctl connect vmnet_bridge: ${interface}: link2 upper ngctl msg ${interface}: setautosrc 0 ngctl msg ${interface}: setpromisc 1 ngctl msg vmnet1: setautosrc 0 ngctl msg vmnet1: setpromisc 1 # if [ _$bridge != _ ]; then # sysctl -w net.link.ether.bridge_refresh=1 # sysctl -w net.link.ether.bridge=1 # fi fi echo -n " VMware${bridge}" >&2 ;; stop) kldunload vmmon_${suffix} if [ $networking -eq 1 ]; then ifconfig vmnet1 down ifconfig vmnet1 delete $host_ip ngctl shutdown vmnet_bridge: ngctl msg ${interface}: setautosrc 1 ngctl msg ${interface}: setpromisc 0 # sysctl net.link.ether.bridge_refresh && bridge="_bridge" # [ _$bridge != _ ] && sysctl -w net.link.ether.bridge_refresh=1 fi ;; *) echo "usage: `basename $0` {start|stop}" >&2 exit 64 ;; esac --------------9A5C1B957B466AD4C6A48425-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Sep 21 7: 2:34 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from wilson.acpub.duke.edu (wilson.acpub.duke.edu [152.3.233.69]) by hub.freebsd.org (Postfix) with ESMTP id 55EEE37B422; Thu, 21 Sep 2000 07:02:29 -0700 (PDT) Received: from bobzilla.adsl.duke.edu (bobzilla.adsl.duke.edu [152.16.67.15]) by wilson.acpub.duke.edu (8.9.3/8.9.3/Duke-5.0.0) with ESMTP id VAA17891; Wed, 20 Sep 2000 21:01:21 -0400 (EDT) Received: (from sto@localhost) by bobzilla.adsl.duke.edu (8.11.0/8.11.0) id e8L11IF04034; Wed, 20 Sep 2000 21:01:18 -0400 (EDT) (envelope-from sto) Date: Wed, 20 Sep 2000 21:01:18 -0400 From: "Sean O'Connell" To: FreeBSD emulation , freebsd-java@FreeBSD.ORG Subject: FreeBSD 4.1-STABLE patch for IBM JDK 1.3 Message-ID: <20000920210118.B3934@stat.Duke.EDU> Reply-To: "Sean O'Connell" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Organization: House of Schmutzli X-Kitties: Bitty Maya CJ Keisha Jacob Hopey X-Hound: Bob X-OS-of-Choice: FreeBSD Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Folks- Some people have asked Drew about the -stable version of patch the patches he put together to the Linux IBM JDK 1.3 to work under the linuxulator. I have cleaned my version up a bit and have made it available from http://www.stat.duke.edu/~sto/FreeBSD/linuxjava.patch The patch is relative to /usr/src and patches sys/i386/linux/linux.h sys/i386/linux/linux_dummy.c sys/i386/linux/linux_genassym.c sys/i386/linux/linux_locore.s sys/i386/linux/linux_misc.c sys/i386/linux/linux_proto.h sys/i386/linux/linux_signal.c sys/i386/linux/linux_sysent.c sys/i386/linux/linux_sysvec.c sys/i386/linux/syscalls.master and sys/sys/signal.h All patches are were done against -stable cvsup'd on September 1st. To fully install it, you will need to rebuild the linux.ko and your kernel. I get a single error/warning message to the effect of "sigaltstack: Cannot allocate memory", but the applets do seem to run using the appletviewer and some of the demo applets. I hope that this is useful. S -- 1--------01---------01--------01--------01--------01--------01--------0 Sean O'Connell sean@stat.Duke.EDU To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Sep 21 7: 5:46 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from waterblue.imgsrc.co.jp (waterblue.imgsrc.co.jp [210.226.20.160]) by hub.freebsd.org (Postfix) with ESMTP id 21BB337B43C for ; Thu, 21 Sep 2000 07:05:43 -0700 (PDT) Received: from waterblue.imgsrc.co.jp (localhost [127.0.0.1]) by waterblue.imgsrc.co.jp (8.11.0/8.11.0) with ESMTP id e8LE4GY81616; Thu, 21 Sep 2000 23:04:17 +0900 (JST) Date: Thu, 21 Sep 2000 23:04:16 +0900 Message-ID: <7mitrpq1sv.wl@waterblue.imgsrc.co.jp> From: Jun Kuriyama To: marcel@cup.hp.com Cc: emulation@FreeBSD.ORG Subject: Re: Strange phenomen accessing a CDROM contents under linuxerator In-Reply-To: In your message of "11 Apr 2000 22:58:14 GMT" <38F3ADEC.71BE5EE4@cup.hp.com> References: <38F3ADEC.71BE5EE4@cup.hp.com> User-Agent: Wanderlust/1.1.1 (Purple Rain) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 12) (Channel Islands) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 11 Apr 2000 22:58:14 GMT, Marcel Moolenaar wrote: > > FreeBSD is -current, Linux is linux_base and linux_devel from ports. > > Do you see this on other filesystems as well? > > BTW: How old are your linux_base and linux_devtools ports? I got this behavior with Oracle8 CD-ROM. Can I help with this problem? transparent: {168} ls -la /cdrom total 80 drwxr-xr-x 20 500 wheel 4096 Sep 30 1998 . drwxr-xr-x 20 root wheel 512 Sep 21 22:37 .. -r--r--r-- 1 root wheel 926 Sep 30 1998 00_TRANS.TBL -rw-r--r-- 1 500 wheel 1257 Sep 30 1998 DST.LST -rw-r--r-- 1 500 wheel 32 Sep 30 1998 RELDESC.TXT drwxr-xr-x 2 500 wheel 10240 Sep 30 1998 bin drwxr-xr-x 6 500 wheel 2048 Sep 30 1998 jdbc drwxr-xr-x 2 500 wheel 8192 Sep 30 1998 lib drwxr-xr-x 8 500 wheel 2048 Sep 30 1998 network drwxr-xr-x 4 500 wheel 2048 Sep 30 1998 nlsrtl drwxr-xr-x 4 500 wheel 2048 Sep 30 1998 ocommon drwxr-xr-x 6 500 wheel 2048 Sep 30 1998 oemagent drwxr-xr-x 4 500 wheel 2048 Sep 30 1998 oracore drwxr-xr-x 4 500 wheel 14336 Sep 30 1998 orainst drwxr-xr-x 3 500 wheel 2048 Sep 30 1998 ord drwxr-xr-x 8 500 wheel 2048 Sep 30 1998 otrace drwxr-xr-x 9 500 wheel 2048 Sep 30 1998 plsql drwxr-xr-x 9 500 wheel 2048 Sep 30 1998 precomp drwxr-xr-x 10 500 wheel 2048 Sep 30 1998 rdbms drwxr-xr-x 4 500 wheel 2048 Sep 30 1998 slax drwxr-xr-x 8 500 wheel 2048 Sep 30 1998 sqlplus drwxr-xr-x 6 500 wheel 2048 Sep 30 1998 svrmgr -rw-r--r-- 1 500 wheel 11484 Sep 30 1998 unix.prd drwxr-xr-x 4 500 wheel 2048 Sep 30 1998 unixdoc transparent: {169} /compat/linux/bin/bash bash$ ls -la /cdrom total 32 drwxr-xr-x 20 500 wheel 4096 Sep 30 1998 . drwxr-xr-x 20 root wheel 512 Sep 21 22:37 .. -r--r--r-- 1 root wheel 926 Sep 30 1998 00_TRANS.TBL -rw-r--r-- 1 500 wheel 1257 Sep 30 1998 DST.LST drwxr-xr-x 2 500 wheel 10240 Sep 30 1998 bin drwxr-xr-x 6 500 wheel 2048 Sep 30 1998 jdbc drwxr-xr-x 2 500 wheel 8192 Sep 30 1998 lib drwxr-xr-x 8 500 wheel 2048 Sep 30 1998 network drwxr-xr-x 4 500 wheel 2048 Sep 30 1998 nlsrtl drwxr-xr-x 4 500 wheel 2048 Sep 30 1998 ocommon -- Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Sep 21 9:15:56 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from isds.duke.edu (davinci.isds.duke.edu [152.3.22.1]) by hub.freebsd.org (Postfix) with ESMTP id D731737B42C; Thu, 21 Sep 2000 09:15:47 -0700 (PDT) Received: from feta.isds.duke.edu (feta.isds.duke.edu [152.3.22.76]) by isds.duke.edu (8.8.8/8.8.8) with ESMTP id MAA01020; Thu, 21 Sep 2000 12:15:45 -0400 (EDT) Received: (from sto@localhost) by feta.isds.duke.edu (8.11.0/8.9.3) id e8LGFhw18675; Thu, 21 Sep 2000 12:15:43 -0400 (EDT) (envelope-from sto) Date: Thu, 21 Sep 2000 12:15:43 -0400 From: "Sean O'Connell" To: FreeBSD emulation Cc: freebsd-java@FreeBSD.ORG Subject: Patch for Linux IBM JDK 1.3 (-STABLE) Message-ID: <20000921121543.F18574@stat.Duke.EDU> Reply-To: "Sean O'Connell" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Organization: Institute of Statistics and Decision Sciences Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi All- I have made the -STABLE version of Andrew Gallatin's signal patches for the linuxulator available at http://www.stat.duke.edu/~sto/FreeBSD/linuxjava.patch This was made relative to -STABLE cvsup'd on 01 September 2000. The following files are touched by this patch sys/i386/linux/linux.h sys/i386/linux/linux_dummy.c sys/i386/linux/linux_genassym.c sys/i386/linux/linux_locore.s sys/i386/linux/linux_misc.c sys/i386/linux/linux_proto.h sys/i386/linux/linux_signal.c sys/i386/linux/linux_sysent.c sys/i386/linux/linux_sysvec.c sys/i386/linux/syscalls.master sys/sys/signal.h This will require a kernel rebuild and a rebuild of the linux.ko. This seems to work pretty well despite giving a warning message about sigaltstack (read: I could run some of the demo applets via the appletviewer). S PS. I sent a slightly different version of this to both -emulation and -java, but it has not made it to the lists. Of course, I haven't gotten any of my freebsd mail in over 12hours ... sigh, this seems to be a new and disturbing trend of late. ----------------------------------------------------------------------- Sean O'Connell Email: sean@stat.Duke.EDU Institute of Statistics and Decision Sciences Phone: (919) 684-5419 Duke University Fax: (919) 684-8594 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Sep 21 9:57: 0 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from drawbridge.ctc.com (drawbridge.ctc.com [147.160.99.35]) by hub.freebsd.org (Postfix) with ESMTP id 1FBC537B424 for ; Thu, 21 Sep 2000 09:56:58 -0700 (PDT) Received: from server2.ctc.com (server2.ctc.com [147.160.1.4]) by drawbridge.ctc.com (8.10.1/8.10.1) with ESMTP id e8LGur329227 for ; Thu, 21 Sep 2000 12:56:57 -0400 (EDT) Received: from ctcjst-mail1.ctc.com (ctcjst-mail1.ctc.com [147.160.34.14]) by server2.ctc.com (8.9.3/8.9.3) with ESMTP id MAA12877 for ; Thu, 21 Sep 2000 12:56:47 -0400 (EDT) Received: by ctcjst-mail1.ctc.com with Internet Mail Service (5.5.2650.21) id ; Thu, 21 Sep 2000 12:59:11 -0400 Message-ID: From: "Cameron, Frank" To: "'emulation@freebsd.org'" Subject: RE: Strange phenomen accessing a CDROM contents under linuxerator Date: Thu, 21 Sep 2000 12:59:03 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I saw this last week for the Terminus CD. I'm at work so I don't know exact versions but am running 4.0-STABLE, I believe from July. -----Original Message----- From: Jun Kuriyama [mailto:kuriyama@imgsrc.co.jp] Sent: Thursday, September 21, 2000 10:04 AM To: marcel@cup.hp.com Cc: emulation@FreeBSD.ORG Subject: Re: Strange phenomen accessing a CDROM contents under linuxerator At 11 Apr 2000 22:58:14 GMT, Marcel Moolenaar wrote: > > FreeBSD is -current, Linux is linux_base and linux_devel from ports. > > Do you see this on other filesystems as well? > > BTW: How old are your linux_base and linux_devtools ports? I got this behavior with Oracle8 CD-ROM. Can I help with this problem? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Sep 21 10:32:19 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id E334337B43C for ; Thu, 21 Sep 2000 10:32:04 -0700 (PDT) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel1.hp.com (Postfix) with ESMTP id BFE4C1975; Thu, 21 Sep 2000 10:31:59 -0700 (PDT) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id KAA05530; Thu, 21 Sep 2000 10:31:58 -0700 (PDT) Message-ID: <39CA460E.F60EE07A@cup.hp.com> Date: Thu, 21 Sep 2000 13:31:58 -0400 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Jun Kuriyama Cc: emulation@FreeBSD.ORG Subject: Re: Strange phenomen accessing a CDROM contents under linuxerator References: <38F3ADEC.71BE5EE4@cup.hp.com> <7mitrpq1sv.wl@waterblue.imgsrc.co.jp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Jun Kuriyama wrote: > > At 11 Apr 2000 22:58:14 GMT, > Marcel Moolenaar wrote: > > > FreeBSD is -current, Linux is linux_base and linux_devel from ports. > > > > Do you see this on other filesystems as well? > > > > BTW: How old are your linux_base and linux_devtools ports? > > I got this behavior with Oracle8 CD-ROM. Can I help with this > problem? If you have a bit more time than I, sure! At this time I know that the linux_getdents syscall is broken; it's not related to versions of Linux libraries. My first hunch is that there maybe something wrong with the cookies; either the use of the cookies is wrong, or the lack of cookies may be causing problems. I base this on the fact that the syscall works ok for FFS, but fails for any other FS (AFAICT, of course). If you find anything new or can acknowledge or counter the above, then you make a lot of people happy (including me :-) -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Sep 21 20:24: 9 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from waterblue.imgsrc.co.jp (waterblue.imgsrc.co.jp [210.226.20.160]) by hub.freebsd.org (Postfix) with ESMTP id 4BBB137B422 for ; Thu, 21 Sep 2000 20:24:07 -0700 (PDT) Received: from waterblue.imgsrc.co.jp (localhost [127.0.0.1]) by waterblue.imgsrc.co.jp (8.11.0/8.11.0) with ESMTP id e8M3NQY67779; Fri, 22 Sep 2000 12:23:26 +0900 (JST) Date: Fri, 22 Sep 2000 12:23:26 +0900 Message-ID: <7md7hxp0sx.wl@waterblue.imgsrc.co.jp> From: Jun Kuriyama To: marcel@cup.hp.com Cc: emulation@FreeBSD.ORG Subject: Re: Strange phenomen accessing a CDROM contents under linuxerator In-Reply-To: In your message of "Thu, 21 Sep 2000 13:31:58 -0400" <39CA460E.F60EE07A@cup.hp.com> References: <38F3ADEC.71BE5EE4@cup.hp.com> <7mitrpq1sv.wl@waterblue.imgsrc.co.jp> <39CA460E.F60EE07A@cup.hp.com> User-Agent: Wanderlust/1.1.1 (Purple Rain) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 12) (Channel Islands) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 21 Sep 2000 17:32:23 GMT, Marcel Moolenaar wrote: > At this time I know that the linux_getdents syscall is broken; it's not > related to versions of Linux libraries. My first hunch is that there > maybe something wrong with the cookies; either the use of the cookies is > wrong, or the lack of cookies may be causing problems. I base this on > the fact that the syscall works ok for FFS, but fails for any other FS > (AFAICT, of course). Ah, I didn't know this problem is related to getdents (I've ignored that thread on this ML). I'll try to read getdents thread... -- Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Sep 22 8:48:23 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from antholoma.wanadoo.fr (smtp-abo-4.wanadoo.fr [193.252.19.153]) by hub.freebsd.org (Postfix) with ESMTP id 14FDF37B422 for ; Fri, 22 Sep 2000 08:48:19 -0700 (PDT) Received: from localhost.dockes.com (164.138.107.149) by antholoma.wanadoo.fr; 22 Sep 2000 17:48:10 +0200 Received: (from dockes@localhost) by localhost.dockes.com (8.9.3/8.9.3) id RAA00748; Fri, 22 Sep 2000 17:48:07 +0200 (MEST) From: Jean-Francois Dockes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14795.32562.275420.908985@localhost.dockes.com> Date: Fri, 22 Sep 2000 17:48:02 +0200 (MEST) To: freebsd-emulation@freebsd.org Subject: vmware 2.0 port busy-loops under 4.1 stable X-Mailer: VM 6.75 under 20.4 "Emerald" XEmacs Lucid Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, I am running 4.1-STABLE from around August 31. I installed the vmware2.0 port: PORTNAME= vmware2 PORTVERSION= 2.0.2.621 PORTREVISION= 1 I'm running win98 inside vmware. As soon as the guest is running, vmware takes 100 % cpu. I ktraced it and it loops on the follwing: 665 vmware CALL mincore(0xbfbff300,0) 665 vmware RET mincore 0 665 vmware CALL old.gethostid(0x13,0xbfbff28c,0,0,0xbfbff280) 665 vmware RET old.gethostid 0 665 vmware CALL ioctl(0xa,0xcb ,0xbfbff354) 665 vmware RET ioctl 312/0x138 665 vmware CALL ioctl(0xa,0xcb ,0xbfbff354) 665 vmware RET ioctl 312/0x138 665 vmware CALL ioctl(0xa,0xcb ,0xbfbff354) 665 vmware RET ioctl 311/0x137 665 vmware CALL mincore(0xbfbff300,0) 665 vmware RET mincore 0 665 vmware CALL old.gethostid(0x13,0xbfbff28c,0,0,0xbfbff280) 665 vmware RET old.gethostid 0 665 vmware CALL ioctl(0xa,0xcb ,0xbfbff354) 665 vmware RET ioctl 312/0x138 665 vmware CALL ioctl(0xa,0xcb ,0xbfbff354) 665 vmware RET ioctl 311/0x137 etc... If someone is interested by more, please ask... Descriptor 0xa is from the vmmon device (a few thousand lines before): 665 vmware CALL open(0x81cb06a,0x2,0) 665 vmware NAMI "/compat/linux/dev/vmmon" 665 vmware NAMI "/compat/linux" 665 vmware NAMI "/compat/linux/dev/vmmon" 665 vmware RET open 10/0xa In addition to loading the system, the app itself is very slow for repainting the screen etc... I tried to simplify the situation as much as possible by disconnecting networking and floppy, no change. I'd be glad if anybody had an idea for something to try. Please Cc me, I'm not on the list. JF -- Jean-Francois Dockes jean-francois.dockes@wanadoo.fr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Sep 22 16:47:32 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by hub.freebsd.org (Postfix) with ESMTP id 06F7437B424 for ; Fri, 22 Sep 2000 16:47:29 -0700 (PDT) Received: from jupiter.delta.ny.us (nyf-ny6-06.ix.netcom.com [198.211.17.70]) by smtp10.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id TAA20291; Fri, 22 Sep 2000 19:47:25 -0400 (EDT) Received: (from vsilyaev@localhost) by jupiter.delta.ny.us (8.9.3/8.9.3) id TAA00532; Fri, 22 Sep 2000 19:47:22 -0400 (EDT) (envelope-from vsilyaev) Date: Fri, 22 Sep 2000 19:47:22 -0400 (EDT) From: "Vladimir N. Silyaev" Message-Id: <200009222347.TAA00532@jupiter.delta.ny.us> To: jean-francois.dockes@wanadoo.fr Cc: emulation@freebsd.org Subject: Re: vmware 2.0 port busy-loops under 4.1 stable In-Reply-To: <14795.32562.275420.908985@localhost.dockes.com> References: <14795.32562.275420.908985@localhost.dockes.com> Reply-To: vns@delta.odessa.ua Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org If you don't like that vmware takes 100% cpu, you have to deinstall emulation/rtc port. For purpose of improve speed of screen redrawing you have to install vmware-tools on the guest, and switch host to full screen mode. To improve overall perfomance you should consider as option to switch from Win98 guest to WinNT4 guest. Vladimir In muc.lists.freebsd.emulation, you wrote: > >Hello, > > >I am running 4.1-STABLE from around August 31. I installed the >vmware2.0 port: > >PORTNAME= vmware2 >PORTVERSION= 2.0.2.621 >PORTREVISION= 1 > >I'm running win98 inside vmware. As soon as the guest is running, >vmware takes 100 % cpu. I ktraced it and it loops on the follwing: > > 665 vmware CALL mincore(0xbfbff300,0) > 665 vmware RET mincore 0 > 665 vmware CALL old.gethostid(0x13,0xbfbff28c,0,0,0xbfbff280) > 665 vmware RET old.gethostid 0 > 665 vmware CALL ioctl(0xa,0xcb ,0xbfbff354) > 665 vmware RET ioctl 312/0x138 > 665 vmware CALL ioctl(0xa,0xcb ,0xbfbff354) > 665 vmware RET ioctl 312/0x138 > 665 vmware CALL ioctl(0xa,0xcb ,0xbfbff354) > 665 vmware RET ioctl 311/0x137 > 665 vmware CALL mincore(0xbfbff300,0) > 665 vmware RET mincore 0 > 665 vmware CALL old.gethostid(0x13,0xbfbff28c,0,0,0xbfbff280) > 665 vmware RET old.gethostid 0 > 665 vmware CALL ioctl(0xa,0xcb ,0xbfbff354) > 665 vmware RET ioctl 312/0x138 > 665 vmware CALL ioctl(0xa,0xcb ,0xbfbff354) > 665 vmware RET ioctl 311/0x137 > > etc... If someone is interested by more, please ask... > >Descriptor 0xa is from the vmmon device (a few thousand lines before): > > 665 vmware CALL open(0x81cb06a,0x2,0) > 665 vmware NAMI "/compat/linux/dev/vmmon" > 665 vmware NAMI "/compat/linux" > 665 vmware NAMI "/compat/linux/dev/vmmon" > 665 vmware RET open 10/0xa > >In addition to loading the system, the app itself is very slow for >repainting the screen etc... > >I tried to simplify the situation as much as possible by disconnecting >networking and floppy, no change. > >I'd be glad if anybody had an idea for something to try. Please Cc me, >I'm not on the list. > >JF > >-- >Jean-Francois Dockes jean-francois.dockes@wanadoo.fr > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-emulation" in the body of the message > -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Sep 23 6:11:46 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id AC23C37B422 for ; Sat, 23 Sep 2000 06:11:44 -0700 (PDT) Received: from morpheus.kfu.com (morpheus.kfu.com [205.178.90.230]) by quack.kfu.com (8.11.0/8.9.3) with ESMTP id e8NDBce79847 for ; Sat, 23 Sep 2000 06:11:38 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com by morpheus.kfu.com with ESMTP (8.11.0//ident-1.0) id e8NDBcK08536; Sat, 23 Sep 2000 06:11:38 -0700 (PDT) Message-ID: <39CCAC0A.ABCB738D@quack.kfu.com> Date: Sat, 23 Sep 2000 06:11:38 -0700 From: Nick Sayer X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en-GB, en-US, en MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: Bridging fix Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This doesn't really have anything to do with emulation, except that lots of vmware users hang out here. :-) I have figured out that the upper protocol layers are not yet completely read-only with regards to mbufs coming in from downstream. What this means is that the bridge code must use m_dup rather than m_copypacket (the latter only bumps up refcounts to make it LOOK like you copied the packet). So if you are having trouble getting a vmware guest to be a DHCP client or otherwise participate correctly with broad- or multi-cast services, change all instances of m_copypacket in /sys/net/bridge.c and /sys/netgraph/ng_bridge.c to m_dup. That should fix it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Sep 23 7: 6:26 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from blount.mail.mindspring.net (blount.mail.mindspring.net [207.69.200.226]) by hub.freebsd.org (Postfix) with ESMTP id 715B537B422; Sat, 23 Sep 2000 07:06:21 -0700 (PDT) Received: from jupiter.delta.ny.us (nyf-ny7-20.ix.netcom.com [198.211.17.148]) by blount.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id KAA04499; Sat, 23 Sep 2000 10:06:18 -0400 (EDT) Received: (from vsilyaev@localhost) by jupiter.delta.ny.us (8.9.3/8.9.3) id KAA00417; Sat, 23 Sep 2000 10:06:14 -0400 (EDT) (envelope-from vsilyaev) Date: Sat, 23 Sep 2000 10:06:14 -0400 (EDT) From: "Vladimir N. Silyaev" Message-Id: <200009231406.KAA00417@jupiter.delta.ny.us> To: nsayer@quack.kfu.com Cc: emulation@freebsd.org, net@freebsd.org Subject: Re: Bridging fix In-Reply-To: <39CCAC0A.ABCB738D@quack.kfu.com> References: <39CCAC0A.ABCB738D@quack.kfu.com> Reply-To: vns@delta.odessa.ua Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Oh, great. Do you know, does that fixed problem with bridging code in the case when active more than two network interfaces? And probably that fix should significantly reduce perfomance for the case when bridging are used not for VMware needs ;-(. Vladimir In muc.lists.freebsd.emulation, you wrote: >This doesn't really have anything to do with emulation, except that lots >of vmware users hang out here. :-) > >I have figured out that the upper protocol layers are not yet completely >read-only with regards to mbufs coming in from downstream. What this >means is that the bridge code must use m_dup rather than m_copypacket >(the latter only bumps up refcounts to make it LOOK like you copied the >packet). > >So if you are having trouble getting a vmware guest to be a DHCP client >or otherwise participate correctly with broad- or multi-cast services, >change all instances of m_copypacket in /sys/net/bridge.c and >/sys/netgraph/ng_bridge.c to m_dup. That should fix it. > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-emulation" in the body of the message > -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Sep 23 12:21: 6 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id 9240137B422; Sat, 23 Sep 2000 12:21:00 -0700 (PDT) Received: from morpheus.kfu.com (morpheus.kfu.com [205.178.90.230]) by quack.kfu.com (8.11.0/8.9.3) with ESMTP id e8NJKwe89812; Sat, 23 Sep 2000 12:20:58 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com by morpheus.kfu.com with ESMTP (8.11.0//ident-1.0) id e8NJKwK09352; Sat, 23 Sep 2000 12:20:58 -0700 (PDT) Message-ID: <39CD029A.ACCBF4A6@quack.kfu.com> Date: Sat, 23 Sep 2000 12:20:58 -0700 From: Nick Sayer X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en-GB, en-US, en MIME-Version: 1.0 To: vns@delta.odessa.ua Cc: emulation@freebsd.org, net@freebsd.org Subject: Re: Bridging fix References: <39CCAC0A.ABCB738D@quack.kfu.com> <200009231406.KAA00417@jupiter.delta.ny.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Vladimir N. Silyaev" wrote: > > Oh, great. > Do you know, does that fixed problem with bridging code in the case > when active more than two network interfaces? Packets that are for hosts not in the bridging table could be affected by the same corruption, but packets sent to only one destination would not be. Broadcast and multicast packets certainly would be. The best solution to problems of bridging two interfaces together you don't want bridged when running vmware is the ng_bridge solution. With the ng_bridge, you specifically attach vmware to a single Ethernet interface. None of the others are fiddled in any way. It's the cleanest solution. But it too suffers from broad/multicast UDP corruption, thus the need for this fix. > And probably that fix should significantly reduce perfomance for the > case when bridging are used not for VMware needs ;-(. I don't know if I'd use the word "significantly". Only packets that are sent to multiple destinations (that is, hosts not yet in the bridge table or broad/multicasts) would need to be copied. It's not as bad as it sounds. > > Vladimir > > In muc.lists.freebsd.emulation, you wrote: > >This doesn't really have anything to do with emulation, except that lots > >of vmware users hang out here. :-) > > > >I have figured out that the upper protocol layers are not yet completely > >read-only with regards to mbufs coming in from downstream. What this > >means is that the bridge code must use m_dup rather than m_copypacket > >(the latter only bumps up refcounts to make it LOOK like you copied the > >packet). > > > >So if you are having trouble getting a vmware guest to be a DHCP client > >or otherwise participate correctly with broad- or multi-cast services, > >change all instances of m_copypacket in /sys/net/bridge.c and > >/sys/netgraph/ng_bridge.c to m_dup. That should fix it. > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > >with "unsubscribe freebsd-emulation" in the body of the message > > > > -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Sep 23 13: 4:43 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from io.dreamscape.com (io.dreamscape.com [206.64.128.6]) by hub.freebsd.org (Postfix) with ESMTP id 28AB337B424 for ; Sat, 23 Sep 2000 13:04:41 -0700 (PDT) Received: from dreamscape.com (sA9-p41.dreamscape.com [207.198.13.233]) by io.dreamscape.com (8.9.3/8.8.4) with ESMTP id QAA25827; Sat, 23 Sep 2000 16:01:36 -0400 (EDT) X-Dreamscape-Track-A: sA9-p41.dreamscape.com [207.198.13.233] X-Dreamscape-Track-B: Sat, 23 Sep 2000 16:01:36 -0400 (EDT) Received: (from krentel@localhost) by dreamscape.com (8.9.3/8.9.3) id QAA37726; Sat, 23 Sep 2000 16:02:49 -0400 (EDT) (envelope-from krentel) Date: Sat, 23 Sep 2000 16:02:49 -0400 (EDT) From: "Mark W. Krentel" Message-Id: <200009232002.QAA37726@dreamscape.com> To: kuriyama@imgsrc.co.jp, marcel@cup.hp.com Subject: Re: Strange phenomen accessing a CDROM contents under linuxerator Cc: freebsd-emulation@FreeBSD.ORG Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > At this time I know that the linux_getdents syscall is broken; it's not > related to versions of Linux libraries. My first hunch is that there > maybe something wrong with the cookies; either the use of the cookies is > wrong, or the lack of cookies may be causing problems. I can confirm that something is wrong with listing a directory's contents on non-UFS partitions in the Linuxulator. I opened PR kern/19407 on this in June, but it appears there were actually two unrelated problems. Bruce Evans fixed one problem in ext2fs. The remaining problem is exactly this readdir/getdents issue. I can exhibit the bug with just a loop of readdir(3). This works on FFS, but on ext2fs and cdrom, readdir prematurely returns NULL. So, I tried calling getdents(2) directly, and that works. I tried various buffer sizes from 200 to 20,000 bytes, and they all worked. I even verified that it wasn't overrunning the buffer. So, Marcel, how confident are you that the bug is in linux_getdents? I can't find anything wrong in what getdents(2) returns. I don't know how filesystem cookies work. Is it possible that misuse of cookies could corrupt something behind the scenes but still have getdents return a correct buffer? Since getdents(2) works and readdir(3) doesn't, you'd suspect the readdir library. But I looked at the source and couldn't find anything. And /compat/linux/lib and Linux's /lib have identical libc-2.1.2.so (both based on RH 6.1), and the programs work inside Linux. So, I'm really perplexed about where to look. Any suggestions? --Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Sep 23 13:37:25 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id 6A31537B424 for ; Sat, 23 Sep 2000 13:37:23 -0700 (PDT) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel3.hp.com (Postfix) with ESMTP id 0EA17AC8; Sat, 23 Sep 2000 13:37:23 -0700 (PDT) Received: from cup.hp.com (p1000180.nsr.hp.com [15.109.0.180]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id NAA03182; Sat, 23 Sep 2000 13:37:22 -0700 (PDT) Message-ID: <39CD1481.993009D2@cup.hp.com> Date: Sat, 23 Sep 2000 13:37:21 -0700 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Mark W. Krentel" Cc: kuriyama@imgsrc.co.jp, freebsd-emulation@FreeBSD.ORG Subject: Re: Strange phenomen accessing a CDROM contents under linuxerator References: <200009232002.QAA37726@dreamscape.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Mark W. Krentel" wrote: > > I can exhibit the bug with just a loop of readdir(3). This works on > FFS, but on ext2fs and cdrom, readdir prematurely returns NULL. So, I > tried calling getdents(2) directly, and that works. I tried various > buffer sizes from 200 to 20,000 bytes, and they all worked. I even > verified that it wasn't overrunning the buffer. readdir(3) ultimately uses getdents. readdir(2) uses getdents as well. There's some tricky logic in glibc2 WRT readdir(3) that works around incompatibilies in the getdents syscall (IIRC) > So, Marcel, how confident are you that the bug is in linux_getdents? Not. I was still in the "hunch" phase. > I can't find anything wrong in what getdents(2) returns. I think you need to look at the glibc sources. > I don't know > how filesystem cookies work. Is it possible that misuse of cookies > could corrupt something behind the scenes but still have getdents > return a correct buffer? I don't think so. I believe getdents is a read-only operation on the various datastructures. > Since getdents(2) works and readdir(3) doesn't, you'd suspect the > readdir library. But I looked at the source and couldn't find > anything. And /compat/linux/lib and Linux's /lib have identical > libc-2.1.2.so (both based on RH 6.1), and the programs work inside > Linux. It all works on Linux. If it doesn't work for us, we have a problem. > So, I'm really perplexed about where to look. Any suggestions? Try debugging the glibc sources (ie copy the readdir(3) code to some test program and step through it. It will show you where it's returning the NULL prematurely and also why. This will automaticly tell you what the Linuxulator is setting (or resetting) differently than expected. -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message