From owner-freebsd-emulation@FreeBSD.ORG Sun Jan 2 10:50:38 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AA64106566B for ; Sun, 2 Jan 2011 10:50:38 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id E767E8FC0C for ; Sun, 2 Jan 2011 10:50:36 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3BA8D.dip.t-dialin.net [87.179.186.141]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id B6CC7844013; Sun, 2 Jan 2011 11:50:32 +0100 (CET) Received: from unknown (IO.Leidinger.net [192.168.2.110]) by outgoing.leidinger.net (Postfix) with ESMTP id C2B9116E2; Sun, 2 Jan 2011 11:50:25 +0100 (CET) Date: Sun, 2 Jan 2011 11:50:21 +0100 From: Alexander Leidinger To: Andre Albsmeier Message-ID: <20110102115021.00000c8b@unknown> In-Reply-To: <20110101224629.GA30540@curry.mchp.siemens.de> References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: B6CC7844013.A60FF X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1, required 6, autolearn=disabled, ALL_TRUSTED -1.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1294570233.13823@K0wurh4Gh2j91bmxAv1Lhg X-EBL-Spam-Status: No Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2011 10:50:38 -0000 On Sat, 1 Jan 2011 23:46:29 +0100 Andre Albsmeier wrote: > On Fri, 31-Dec-2010 at 14:48:00 +0100, Alexander Leidinger wrote: > > On Thu, 30 Dec 2010 08:51:24 +0100 Andre Albsmeier > > wrote: > > > > > I try to get the Linux version of SIMetrix (a very nice circuit > > > simulator) running. Everything looks fine: It starts, the GUI > > > comes up, you can draw schematics and so on. But when it comes > > > to simulation, the (SIMetrix-)console says: > > > > > > *** Fatal error, out of memory *** > > > Could not allocate shared heap > > > Exception occurred while executing script command Run > > > > Is there something in the dmesg output? In case it tries to execute > > an unsupported ioctl/syscall it should show up there. If not I > > suggest to give 8.x a try, it has an improved linuxulator. > > Bad luck. I just started the PC-BSD 8.1 live system and > the error there is exactly the same... Then there is only ktrace + linux_kdump (use the package) or dtrace left. Bye, Alexander. From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 3 11:07:02 2011 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A4B61065718 for ; Mon, 3 Jan 2011 11:07:02 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3EF1D8FC28 for ; Mon, 3 Jan 2011 11:07:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p03B72bd046467 for ; Mon, 3 Jan 2011 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p03B71ji046465 for freebsd-emulation@FreeBSD.org; Mon, 3 Jan 2011 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 Jan 2011 11:07:01 GMT Message-Id: <201101031107.p03B71ji046465@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2011 11:07:02 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/153243 emulation [ibcs2] Seg fault whne running COFF binary using iBCS2 o ports/151714 emulation print/acroread9 not usable due to lack of support in t a kern/150186 emulation [parallels] [panic] Parallels Desktop: CDROM disconnec o kern/149168 emulation [linux] [patch] Linux sendmsg / recvmsg / etc fixes fo o ports/148097 emulation [patch] suggested addition to linux_base-* packages to o ports/148096 emulation emulators/linux_base-* can not be built from ports on o kern/147793 emulation [vmware] [panic] cdrom handling, panic, possible race o kern/146237 emulation [linux] Linux binaries not reading directories mounted o kern/145024 emulation [linux] [panic] kernel crash by linux.ko module with n f kern/144763 emulation [linux] [panic] Kernel panic when start linux binaries o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o kern/140156 emulation [linux] cdparanoia fails to read drive data f kern/138944 emulation [parallels] [regression] Parallels no longer works in o kern/138880 emulation [linux] munmap segfaults after linux_mmap2 stresstest f ports/137332 emulation add caution messages to some adobe products s ports/136321 emulation x11-toolkits/linux-pango: please update linux based po o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage s kern/133144 emulation [linux] linuxulator 2.6 crashes with nvidias libGL.so. o kern/129169 emulation [linux] [patch] Linux Emulation ENOTCONN error using n o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails f kern/99068 emulation [linux] [patch] Linux emulator crashed by java, when c o kern/86619 emulation [linux] linux emulator interacts oddly with cp a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/36952 emulation [patch] [linux] ldd(1) command of linux does not work o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 28 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 3 14:26:26 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6B86106566C for ; Mon, 3 Jan 2011 14:26:26 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4DD6A8FC0C for ; Mon, 3 Jan 2011 14:26:25 +0000 (UTC) Received: from mail1.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id p03EQOfS011104; Mon, 3 Jan 2011 15:26:24 +0100 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id p03EQOeG024687; Mon, 3 Jan 2011 15:26:24 +0100 Received: (from localhost) by curry.mchp.siemens.de (8.14.4/8.14.4) id p03EQOl1081031; Date: Mon, 3 Jan 2011 15:26:24 +0100 From: Andre Albsmeier To: Alexander Leidinger Message-ID: <20110103142624.GA51543@curry.mchp.siemens.de> References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> <20110102115021.00000c8b@unknown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110102115021.00000c8b@unknown> X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2011 14:26:26 -0000 On Sun, 02-Jan-2011 at 11:50:21 +0100, Alexander Leidinger wrote: > On Sat, 1 Jan 2011 23:46:29 +0100 Andre Albsmeier > wrote: > > > On Fri, 31-Dec-2010 at 14:48:00 +0100, Alexander Leidinger wrote: > > > On Thu, 30 Dec 2010 08:51:24 +0100 Andre Albsmeier > > > wrote: > > > > > > > I try to get the Linux version of SIMetrix (a very nice circuit > > > > simulator) running. Everything looks fine: It starts, the GUI > > > > comes up, you can draw schematics and so on. But when it comes > > > > to simulation, the (SIMetrix-)console says: > > > > > > > > *** Fatal error, out of memory *** > > > > Could not allocate shared heap > > > > Exception occurred while executing script command Run > > > > > > Is there something in the dmesg output? In case it tries to execute > > > an unsupported ioctl/syscall it should show up there. If not I > > > suggest to give 8.x a try, it has an improved linuxulator. > > > > Bad luck. I just started the PC-BSD 8.1 live system and > > the error there is exactly the same... > > Then there is only ktrace + linux_kdump (use the package) or dtrace > left. OK, that's what I found out so far: SIMetrix calls shm_open() (people over there are really helpful as I explained to them what I tried to do).. I can find this: 40654 SimIntro 1294053922.366978 CALL compat.accept(0x48eecee7,0xbfbf8830) 40654 SimIntro 1294053922.366983 NAMI "/compat/linux/dev/shm/" 40654 SimIntro 1294053922.366993 NAMI "/dev/shm/" 40654 SimIntro 1294053922.367017 RET compat.accept JUSTRETURN 40654 SimIntro 1294053922.367025 CALL open(0x48eecec9,O_RDONLY,0x1b6) 40654 SimIntro 1294053922.367029 NAMI "/compat/linux/proc/mounts" 40654 SimIntro 1294053922.367048 NAMI "/compat/linux" 40654 SimIntro 1294053922.367059 NAMI "/compat/linux/proc/mounts" ... reading in mounts ... Judging from a comment in Linux' shm_open.c: /* Open shared memory object. This implementation assumes the shmfs implementation introduced in the late 2.3.x kernel series to be available. Normally the filesystem will be mounted at /dev/shm but we fall back on searching for the actual mount point should opening such a file fail. */ the mount stuff found in kdump's output is where the code tries to find the shmfs which fails of course. Now I have to sit back and think what to do... -Andre -- Linux is no OS. It's a core dump which boots by accident. From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 4 02:00:03 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92EB8106564A for ; Tue, 4 Jan 2011 02:00:03 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 10E7A8FC0C for ; Tue, 4 Jan 2011 02:00:02 +0000 (UTC) Received: by fxm16 with SMTP id 16so13564141fxm.13 for ; Mon, 03 Jan 2011 18:00:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=rPQSsKPln6Z2i7ka7lU8eJJ0PGUjmRbKvJCGGL5bJ6k=; b=D3xP0P8PjO4T7WAzaraeemFP2YTb0cXnfaXEM7od2KQdvBnkoz5ouV6INw+UZ8LNBl 8PhZl2NtmlAHySu7jB/NhgqPjYPBBGBg8XOc+NtFiStNy8PM2msjORDwR1Lp9/yMLkIu l9y4C63WsF7KroGJeJyU6A4CkLrdkXRu5IX2c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=CHcBYFkPKcElwSho2OE2YbNGBaA29taBcSuuC2tALZK4hYGcdY/6IaeKFBAikY0Qfc eIuxQk+SdKNMFjgIyDNhe7VFXYlfxA96GyvKfRZJs3EdGUwiCkKLmkiXKAQZBD7pANTL XE6VhSdv1irKc31f2RPRIke3hrndJM8DnFwjA= MIME-Version: 1.0 Received: by 10.223.85.203 with SMTP id p11mr5943807fal.108.1294106401975; Mon, 03 Jan 2011 18:00:01 -0800 (PST) Received: by 10.223.114.4 with HTTP; Mon, 3 Jan 2011 18:00:01 -0800 (PST) In-Reply-To: References: <20100418191752.GA72730@triton8.kn-bremen.de> Date: Mon, 3 Jan 2011 20:00:01 -0600 Message-ID: From: Adam Vande More To: Xiaodong Yi Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-emulation@freebsd.org, Juergen Lock Subject: Re: Testing Luvalley with FreeBSD as dom0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2011 02:00:03 -0000 On Sun, Apr 18, 2010 at 5:54 PM, Xiaodong Yi wrote: > I am very glad that Juergen introduced Luvalley to the FreeBSD > society. We hope you like the idea of it. And we will be much more > pleased for the feedbacks. Luvally now is only experimental and may be > not stable or low performance. But I will continue working to improve > it. > Just wondering if there's been any progress here? Is it still under development on FreeBSD? Thanks, -- Adam Vande More From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 4 21:56:44 2011 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 178421065672 for ; Tue, 4 Jan 2011 21:56:44 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 03B098FC1A for ; Tue, 4 Jan 2011 21:56:44 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id p04LTf3A029294 for ; Tue, 4 Jan 2011 13:29:42 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <4D2391A0.7010002@rawbw.com> Date: Tue, 04 Jan 2011 13:31:12 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101211 Thunderbird/3.0.11 MIME-Version: 1.0 To: freebsd-emulation@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Is Linux emulator not up-to-date and doesn't understand STB_GNU_UNIQUE binding? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2011 21:56:44 -0000 I have the working app in Ubuntu. When I copy it to FreeBSD with all shared libs I get such message: app.linux: symbol lookup error: ../lib/libstdc++.so.6: undefined symbol: _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE, version GLIBCXX_3.4 ../lib/libstdc++.so.6 has been taken from Ubuntu (gcc-4.5.1) Upon closer inspection I see that on FreeBSD: > readelf -aW ../lib/libstdc++.so.6 | grep _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE 1426: 000f30dc 4 OBJECT : 10 DEFAULT 26 _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE@@GLIBCXX_3.4 3380: 000f30dc 4 OBJECT : 10 DEFAULT 26 _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE But on Ubuntu the word 10 is replaced with UNIQUE. It refers to the relatively newly introduced extension STB_GNU_UNIQUE, see here: http://osdir.com/ml/general/2009-08/msg09809.html Should Linux emulator be updated? Yuri From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 5 19:19:17 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1021C106566C for ; Wed, 5 Jan 2011 19:19:17 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9870E8FC1D for ; Wed, 5 Jan 2011 19:19:16 +0000 (UTC) Received: from mail3.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id p05JJF1B002548; Wed, 5 Jan 2011 20:19:15 +0100 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail3.siemens.de (8.13.6/8.13.6) with ESMTP id p05JJFP4012222; Wed, 5 Jan 2011 20:19:15 +0100 Received: (from localhost) by curry.mchp.siemens.de (8.14.4/8.14.4) id p05JJFet090557; Date: Wed, 5 Jan 2011 20:19:15 +0100 From: Andre Albsmeier To: Alexander Leidinger Message-ID: <20110105191915.GA43997@curry.mchp.siemens.de> References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> <20110102115021.00000c8b@unknown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110102115021.00000c8b@unknown> X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2011 19:19:17 -0000 On Sun, 02-Jan-2011 at 11:50:21 +0100, Alexander Leidinger wrote: > On Sat, 1 Jan 2011 23:46:29 +0100 Andre Albsmeier > wrote: > > > On Fri, 31-Dec-2010 at 14:48:00 +0100, Alexander Leidinger wrote: > > > On Thu, 30 Dec 2010 08:51:24 +0100 Andre Albsmeier > > > wrote: > > > > > > > I try to get the Linux version of SIMetrix (a very nice circuit > > > > simulator) running. Everything looks fine: It starts, the GUI > > > > comes up, you can draw schematics and so on. But when it comes > > > > to simulation, the (SIMetrix-)console says: > > > > > > > > *** Fatal error, out of memory *** > > > > Could not allocate shared heap > > > > Exception occurred while executing script command Run > > > > > > Is there something in the dmesg output? In case it tries to execute > > > an unsupported ioctl/syscall it should show up there. If not I > > > suggest to give 8.x a try, it has an improved linuxulator. > > > > Bad luck. I just started the PC-BSD 8.1 live system and > > the error there is exactly the same... > > Then there is only ktrace + linux_kdump (use the package) or dtrace > left. Got it running... A short explanation: Linux' shm_open() fails because it wants to find some funky shmfs to construct the full pathname. It starts to search at the default mountpoint which is /dev/shm. If this fails it runs through fstab and searches for shmfs and tmpfs. Whatever it finds will be statfs()'ed to be checked for Linux' fs magic for shmfs (0x01021994). My solution is eerie but it works. This is what I did: 1. cd /compat/linux 2. mkdir dev 3. cd dev 4. ln -s /tmp shm This is not enough since statfs() won't return the proper magic because it's no shmfs. So let's fix this ;-): --- sys/compat/linux/linux_stats.c.ORI 2008-01-10 20:11:51.000000000 +0100 +++ sys/compat/linux/linux_stats.c 2011-01-05 20:04:18.000000000 +0100 @@ -379,6 +379,8 @@ struct statfs bsd_statfs; char *path; int error; + char* cp; + unsigned char shm = 0; LCONVPATHEXIST(td, args->path, &path); @@ -387,10 +389,15 @@ printf(ARGS(statfs, "%s, *"), path); #endif error = kern_statfs(td, path, UIO_SYSSPACE, &bsd_statfs); + if( (cp = strstr( path, "/dev/shm" )) != NULL ) + shm = ( cp[8] == '\0' || (cp[8] == '/' && cp[9] == '\0') ); + LFREEPATH(path); if (error) return (error); bsd_to_linux_statfs(&bsd_statfs, &linux_statfs); + if( shm ) + linux_statfs.f_type = 0x01021994; return copyout(&linux_statfs, args->buf, sizeof(linux_statfs)); } -Andre > > Bye, > Alexander. -- Amateurs like Linux, but professionals prefer FreeBSD. From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 6 07:58:17 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5EA5106566B for ; Thu, 6 Jan 2011 07:58:17 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 7DA698FC0A for ; Thu, 6 Jan 2011 07:58:17 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3A550.dip.t-dialin.net [87.179.165.80]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 9CF68844102; Thu, 6 Jan 2011 08:58:11 +0100 (CET) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 85464243D; Thu, 6 Jan 2011 08:58:08 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id p067vrFU064967; Thu, 6 Jan 2011 08:57:53 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Thu, 06 Jan 2011 08:57:53 +0100 Message-ID: <20110106085753.21096d6vr5bqpq1w@webmail.leidinger.net> Date: Thu, 06 Jan 2011 08:57:53 +0100 From: Alexander Leidinger To: Andre Albsmeier References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> <20110102115021.00000c8b@unknown> <20110105191915.GA43997@curry.mchp.siemens.de> In-Reply-To: <20110105191915.GA43997@curry.mchp.siemens.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 9CF68844102.A4020 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=2.674, required 6, autolearn=disabled, RDNS_NONE 1.27, ZMIde_GENERICSPAM1 1.40) X-EBL-MailScanner-SpamScore: ss X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1294905492.78677@9yeWMxqK9iXenmb4LyGe2g X-EBL-Spam-Status: No Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2011 07:58:17 -0000 Quoting Andre Albsmeier (from Wed, 5 Jan 2011 20:19:15 +0100): > On Sun, 02-Jan-2011 at 11:50:21 +0100, Alexander Leidinger wrote: >> On Sat, 1 Jan 2011 23:46:29 +0100 Andre Albsmeier >> wrote: >> >> > On Fri, 31-Dec-2010 at 14:48:00 +0100, Alexander Leidinger wrote: >> > > On Thu, 30 Dec 2010 08:51:24 +0100 Andre Albsmeier >> > > wrote: >> > > >> > > > I try to get the Linux version of SIMetrix (a very nice circuit >> > > > simulator) running. Everything looks fine: It starts, the GUI >> > > > comes up, you can draw schematics and so on. But when it comes >> > > > to simulation, the (SIMetrix-)console says: >> > > > >> > > > *** Fatal error, out of memory *** >> > > > Could not allocate shared heap >> > > > Exception occurred while executing script command Run >> > > >> > > Is there something in the dmesg output? In case it tries to execute >> > > an unsupported ioctl/syscall it should show up there. If not I >> > > suggest to give 8.x a try, it has an improved linuxulator. >> > >> > Bad luck. I just started the PC-BSD 8.1 live system and >> > the error there is exactly the same... >> >> Then there is only ktrace + linux_kdump (use the package) or dtrace >> left. > > Got it running... A short explanation: > > Linux' shm_open() fails because it wants to find some funky shmfs > to construct the full pathname. It starts to search at the default > mountpoint which is /dev/shm. If this fails it runs through fstab > and searches for shmfs and tmpfs. Whatever it finds will be > statfs()'ed to be checked for Linux' fs magic for shmfs (0x01021994). > > My solution is eerie but it works. This is what I did: > > 1. cd /compat/linux > 2. mkdir dev > 3. cd dev > 4. ln -s /tmp shm As long as you do not need to access something from dev (FreeBSD one), this works. As soon as you need to access something from there it depends upon the software. If the software is doing a readdir, the user experience will be worse. And if it does not allow to enter a name by hand, you are lost. So this is a solution for your situation, but not a generic solution which we can use in the ports. Can you please try a solution with devfs.conf (I never tried if it allows to link outside of dev)? > This is not enough since statfs() won't return the proper magic > because it's no shmfs. So let's fix this ;-): > > --- sys/compat/linux/linux_stats.c.ORI 2008-01-10 20:11:51.000000000 +0100 > +++ sys/compat/linux/linux_stats.c 2011-01-05 20:04:18.000000000 +0100 > @@ -379,6 +379,8 @@ > struct statfs bsd_statfs; > char *path; > int error; > + char* cp; > + unsigned char shm = 0; > > LCONVPATHEXIST(td, args->path, &path); > > @@ -387,10 +389,15 @@ > printf(ARGS(statfs, "%s, *"), path); > #endif > error = kern_statfs(td, path, UIO_SYSSPACE, &bsd_statfs); > + if( (cp = strstr( path, "/dev/shm" )) != NULL ) > + shm = ( cp[8] == '\0' || (cp[8] == '/' && cp[9] == '\0') ); > + > LFREEPATH(path); > if (error) > return (error); > bsd_to_linux_statfs(&bsd_statfs, &linux_statfs); > + if( shm ) > + linux_statfs.f_type = 0x01021994; > return copyout(&linux_statfs, args->buf, sizeof(linux_statfs)); > } This is something we could do (with a little bit of cleanup), when we find a nice solution for the dev-part. Bye, Alexander. -- And do you think (fop that I am) that I could be the Scarlet Pumpernickel? http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 6 08:01:38 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBC0D1065673 for ; Thu, 6 Jan 2011 08:01:38 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 6E9768FC16 for ; Thu, 6 Jan 2011 08:01:37 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3A550.dip.t-dialin.net [87.179.165.80]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 36524844102; Thu, 6 Jan 2011 09:01:34 +0100 (CET) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 0F022243F; Thu, 6 Jan 2011 09:01:31 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id p0681U0j065943; Thu, 6 Jan 2011 09:01:30 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Thu, 06 Jan 2011 09:01:30 +0100 Message-ID: <20110106090130.20784sf1w9verdic@webmail.leidinger.net> Date: Thu, 06 Jan 2011 09:01:30 +0100 From: Alexander Leidinger To: Andre Albsmeier References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> <20110102115021.00000c8b@unknown> <20110105191915.GA43997@curry.mchp.siemens.de> In-Reply-To: <20110105191915.GA43997@curry.mchp.siemens.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 36524844102.A4E1C X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=1.274, required 6, autolearn=disabled, RDNS_NONE 1.27) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1294905694.71498@haGipiYMkWu9ZoM81eI7uw X-EBL-Spam-Status: No Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2011 08:01:38 -0000 Quoting Andre Albsmeier (from Wed, 5 Jan 2011 20:19:15 +0100): > Got it running... A short explanation: > > Linux' shm_open() fails because it wants to find some funky shmfs > to construct the full pathname. It starts to search at the default > mountpoint which is /dev/shm. If this fails it runs through fstab > and searches for shmfs and tmpfs. Whatever it finds will be > statfs()'ed to be checked for Linux' fs magic for shmfs (0x01021994). What does it expect as a filesystem type if it does not find shmfs in fstab but tmpfs? If it does not find tmpfs, will it try /tmp anyway (but check for some fstype magic)? Bye, Alexander. -- Money cannot buy love, nor even friendship. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 6 10:32:28 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF2F91065674 for ; Thu, 6 Jan 2011 10:32:28 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by mx1.freebsd.org (Postfix) with ESMTP id 34C5A8FC14 for ; Thu, 6 Jan 2011 10:32:27 +0000 (UTC) Received: from mail1.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id p06AWQHp016586; Thu, 6 Jan 2011 11:32:27 +0100 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id p06AWQUw016896; Thu, 6 Jan 2011 11:32:26 +0100 Received: (from localhost) by curry.mchp.siemens.de (8.14.4/8.14.4) id p06AWQZB093644; Date: Thu, 6 Jan 2011 11:32:26 +0100 From: Andre Albsmeier To: Alexander Leidinger Message-ID: <20110106103226.GA59969@curry.mchp.siemens.de> References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> <20110102115021.00000c8b@unknown> <20110105191915.GA43997@curry.mchp.siemens.de> <20110106085753.21096d6vr5bqpq1w@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110106085753.21096d6vr5bqpq1w@webmail.leidinger.net> X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2011 10:32:28 -0000 On Thu, 06-Jan-2011 at 08:57:53 +0100, Alexander Leidinger wrote: > Quoting Andre Albsmeier (from Wed, 5 Jan > 2011 20:19:15 +0100): > > > On Sun, 02-Jan-2011 at 11:50:21 +0100, Alexander Leidinger wrote: > >> On Sat, 1 Jan 2011 23:46:29 +0100 Andre Albsmeier > >> wrote: > >> > >> > On Fri, 31-Dec-2010 at 14:48:00 +0100, Alexander Leidinger wrote: > >> > > On Thu, 30 Dec 2010 08:51:24 +0100 Andre Albsmeier > >> > > wrote: > >> > > > >> > > > I try to get the Linux version of SIMetrix (a very nice circuit > >> > > > simulator) running. Everything looks fine: It starts, the GUI > >> > > > comes up, you can draw schematics and so on. But when it comes > >> > > > to simulation, the (SIMetrix-)console says: > >> > > > > >> > > > *** Fatal error, out of memory *** > >> > > > Could not allocate shared heap > >> > > > Exception occurred while executing script command Run > >> > > > >> > > Is there something in the dmesg output? In case it tries to execute > >> > > an unsupported ioctl/syscall it should show up there. If not I > >> > > suggest to give 8.x a try, it has an improved linuxulator. > >> > > >> > Bad luck. I just started the PC-BSD 8.1 live system and > >> > the error there is exactly the same... > >> > >> Then there is only ktrace + linux_kdump (use the package) or dtrace > >> left. > > > > Got it running... A short explanation: > > > > Linux' shm_open() fails because it wants to find some funky shmfs > > to construct the full pathname. It starts to search at the default > > mountpoint which is /dev/shm. If this fails it runs through fstab > > and searches for shmfs and tmpfs. Whatever it finds will be > > statfs()'ed to be checked for Linux' fs magic for shmfs (0x01021994). > > > > My solution is eerie but it works. This is what I did: > > > > 1. cd /compat/linux > > 2. mkdir dev > > 3. cd dev > > 4. ln -s /tmp shm > > As long as you do not need to access something from dev (FreeBSD one), > this works. As soon as you need to access something from there it > depends upon the software. If the software is doing a readdir, the > user experience will be worse. And if it does not allow to enter a Let me see if I got this: Now I have a /compat/linux/dev directory which means that if some Linux programme wants to look into /dev it will see just the shm entry. If there wasn't my dev directory it would have continued to FreeBSD's /dev... > name by hand, you are lost. So this is a solution for your situation, > but not a generic solution which we can use in the ports. Of course not. I was just happy that it works and that that's all what has been missing. But you are right, it is not very generic now that I understand the impact. > > Can you please try a solution with devfs.conf (I never tried if it > allows to link outside of dev)? I added the following line to devfs.conf link /tmp shm and removed my dev stuff under /compat/linux. And it still works ;-). > > > This is not enough since statfs() won't return the proper magic > > because it's no shmfs. So let's fix this ;-): > > > > --- sys/compat/linux/linux_stats.c.ORI 2008-01-10 20:11:51.000000000 +0100 > > +++ sys/compat/linux/linux_stats.c 2011-01-05 20:04:18.000000000 +0100 > > @@ -379,6 +379,8 @@ > > struct statfs bsd_statfs; > > char *path; > > int error; > > + char* cp; > > + unsigned char shm = 0; > > > > LCONVPATHEXIST(td, args->path, &path); > > > > @@ -387,10 +389,15 @@ > > printf(ARGS(statfs, "%s, *"), path); > > #endif > > error = kern_statfs(td, path, UIO_SYSSPACE, &bsd_statfs); > > + if( (cp = strstr( path, "/dev/shm" )) != NULL ) > > + shm = ( cp[8] == '\0' || (cp[8] == '/' && cp[9] == '\0') ); > > + > > LFREEPATH(path); > > if (error) > > return (error); > > bsd_to_linux_statfs(&bsd_statfs, &linux_statfs); > > + if( shm ) > > + linux_statfs.f_type = 0x01021994; > > return copyout(&linux_statfs, args->buf, sizeof(linux_statfs)); > > } > > This is something we could do (with a little bit of cleanup), when we > find a nice solution for the dev-part. The devfs.conf thing makes it possible to simplify the (ugly) patch a bit: --- /sys/compat/linux/linux_stats.c.ORI 2008-01-10 20:11:51.000000000 +0100 +++ /sys/compat/linux/linux_stats.c 2011-01-06 11:26:53.000000000 +0100 @@ -379,6 +379,7 @@ struct statfs bsd_statfs; char *path; int error; + unsigned char shm = 0; LCONVPATHEXIST(td, args->path, &path); @@ -387,10 +388,14 @@ printf(ARGS(statfs, "%s, *"), path); #endif error = kern_statfs(td, path, UIO_SYSSPACE, &bsd_statfs); + if( strncmp( path, "/dev/shm", 8 ) == 0 ) + shm = ( path[8] == '\0' || (path[8] == '/' && path[9] == '\0') ); LFREEPATH(path); if (error) return (error); bsd_to_linux_statfs(&bsd_statfs, &linux_statfs); + if( shm ) + linux_statfs.f_type = 0x01021994; return copyout(&linux_statfs, args->buf, sizeof(linux_statfs)); } Thanks for the hint with devfs.conf, that's a lot better! -Andre > > Bye, > Alexander. > > -- > And do you think (fop that I am) that I could be the Scarlet Pumpernickel? > > http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 > http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 > -- Windows NT Multitasking: Messing up several things at once. From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 6 10:40:59 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C13AA106564A for ; Thu, 6 Jan 2011 10:40:59 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from goliath.siemens.de (goliath.siemens.de [192.35.17.28]) by mx1.freebsd.org (Postfix) with ESMTP id 5680B8FC18 for ; Thu, 6 Jan 2011 10:40:59 +0000 (UTC) Received: from mail2.siemens.de (localhost [127.0.0.1]) by goliath.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id p06AewPL009934; Thu, 6 Jan 2011 11:40:58 +0100 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail2.siemens.de (8.13.6/8.13.6) with ESMTP id p06Aev6X031673; Thu, 6 Jan 2011 11:40:58 +0100 Received: (from localhost) by curry.mchp.siemens.de (8.14.4/8.14.4) id p06Aev2K093680; Date: Thu, 6 Jan 2011 11:40:57 +0100 From: Andre Albsmeier To: Alexander Leidinger Message-ID: <20110106104057.GB59969@curry.mchp.siemens.de> References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> <20110102115021.00000c8b@unknown> <20110105191915.GA43997@curry.mchp.siemens.de> <20110106090130.20784sf1w9verdic@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110106090130.20784sf1w9verdic@webmail.leidinger.net> X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2011 10:40:59 -0000 On Thu, 06-Jan-2011 at 09:01:30 +0100, Alexander Leidinger wrote: > Quoting Andre Albsmeier (from Wed, 5 Jan > 2011 20:19:15 +0100): > > > Got it running... A short explanation: > > > > Linux' shm_open() fails because it wants to find some funky shmfs > > to construct the full pathname. It starts to search at the default > > mountpoint which is /dev/shm. If this fails it runs through fstab > > and searches for shmfs and tmpfs. Whatever it finds will be > > statfs()'ed to be checked for Linux' fs magic for shmfs (0x01021994). > > What does it expect as a filesystem type if it does not find shmfs in > fstab but tmpfs? If it does not find tmpfs, will it try /tmp anyway > (but check for some fstype magic)? It searches for every mount which is of type tmpfs or shm. Whatever it finds must have the fs magic SHMFS_SUPER_MAGIC (0x01021994). It's in sysdeps/unix/sysv/linux/shm_open.c: ------------------------- snip ------------------- /* Now read the entries. */ while ((mp = __getmntent_r (fp, &resmem, buf, sizeof buf)) != NULL) /* The original name is "shm" but this got changed in early Linux 2.4.x to "tmpfs". */ if (strcmp (mp->mnt_type, "tmpfs") == 0 #ifndef __ASSUME_TMPFS_NAME || strcmp (mp->mnt_type, "shm") == 0 #endif ) { /* Found it. There might be more than one place where the filesystem is mounted but one is enough for us. */ size_t namelen; /* First make sure this really is the correct entry. At least some versions of the kernel give wrong information because of the implicit mount of the shmfs for SysV IPC. */ if (__statfs (mp->mnt_dir, &f) != 0 || f.f_type != SHMFS_SUPER_MAGIC) continue; ------------------------- snap ------------------- -Andre > > Bye, > Alexander. > > -- > Money cannot buy love, nor even friendship. > > http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 > http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 > -- FreeBSD: We eat penguins for breakfast From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 6 12:25:20 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38A281065672 for ; Thu, 6 Jan 2011 12:25:20 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id BD3008FC15 for ; Thu, 6 Jan 2011 12:25:19 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3A550.dip.t-dialin.net [87.179.165.80]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 1F3BB844012; Thu, 6 Jan 2011 13:25:12 +0100 (CET) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id D990F245A; Thu, 6 Jan 2011 13:25:08 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id p06COrpT025488; Thu, 6 Jan 2011 13:24:53 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Thu, 06 Jan 2011 13:24:53 +0100 Message-ID: <20110106132453.15152nbxllwpqu80@webmail.leidinger.net> Date: Thu, 06 Jan 2011 13:24:53 +0100 From: Alexander Leidinger To: Andre Albsmeier References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> <20110102115021.00000c8b@unknown> <20110105191915.GA43997@curry.mchp.siemens.de> <20110106085753.21096d6vr5bqpq1w@webmail.leidinger.net> <20110106103226.GA59969@curry.mchp.siemens.de> In-Reply-To: <20110106103226.GA59969@curry.mchp.siemens.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 1F3BB844012.A38E8 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=1.274, required 6, autolearn=disabled, RDNS_NONE 1.27) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1294921515.72307@i+ARbIJn98r7A5yNDwveAA X-EBL-Spam-Status: No Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2011 12:25:20 -0000 Quoting Andre Albsmeier (from Thu, 6 Jan 2011 11:32:26 +0100): > On Thu, 06-Jan-2011 at 08:57:53 +0100, Alexander Leidinger wrote: >> Quoting Andre Albsmeier (from Wed, 5 Jan >> 2011 20:19:15 +0100): >> > My solution is eerie but it works. This is what I did: >> > >> > 1. cd /compat/linux >> > 2. mkdir dev >> > 3. cd dev >> > 4. ln -s /tmp shm >> >> As long as you do not need to access something from dev (FreeBSD one), >> this works. As soon as you need to access something from there it >> depends upon the software. If the software is doing a readdir, the >> user experience will be worse. And if it does not allow to enter a > > Let me see if I got this: Now I have a /compat/linux/dev directory > which means that if some Linux programme wants to look into /dev it > will see just the shm entry. If there wasn't my dev directory it > would have continued to FreeBSD's /dev... Correct. >> Can you please try a solution with devfs.conf (I never tried if it >> allows to link outside of dev)? > > I added the following line to devfs.conf > > link /tmp shm > > and removed my dev stuff under /compat/linux. And it still works ;-). That's great. > The devfs.conf thing makes it possible to simplify the (ugly) > patch a bit: > > --- /sys/compat/linux/linux_stats.c.ORI 2008-01-10 20:11:51.000000000 +0100 > +++ /sys/compat/linux/linux_stats.c 2011-01-06 11:26:53.000000000 +0100 > @@ -379,6 +379,7 @@ > struct statfs bsd_statfs; > char *path; > int error; > + unsigned char shm = 0; > > LCONVPATHEXIST(td, args->path, &path); > > @@ -387,10 +388,14 @@ > printf(ARGS(statfs, "%s, *"), path); > #endif > error = kern_statfs(td, path, UIO_SYSSPACE, &bsd_statfs); > + if( strncmp( path, "/dev/shm", 8 ) == 0 ) > + shm = ( path[8] == '\0' || (path[8] == '/' && path[9] == '\0') ); > LFREEPATH(path); > if (error) > return (error); > bsd_to_linux_statfs(&bsd_statfs, &linux_statfs); > + if( shm ) > + linux_statfs.f_type = 0x01021994; > return copyout(&linux_statfs, args->buf, sizeof(linux_statfs)); > } > > Thanks for the hint with devfs.conf, that's a lot better! Thanks for the patch. Bye, Alexander. -- Freedom begins when you tell Mrs. Grundy to go fly a kite. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 6 12:29:11 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E45AF106564A for ; Thu, 6 Jan 2011 12:29:10 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 8BDBC8FC0C for ; Thu, 6 Jan 2011 12:29:10 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3A550.dip.t-dialin.net [87.179.165.80]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id B09B2844012; Thu, 6 Jan 2011 13:29:05 +0100 (CET) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 7A2FC245B; Thu, 6 Jan 2011 13:29:02 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id p06CSv5q026339; Thu, 6 Jan 2011 13:28:57 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Thu, 06 Jan 2011 13:28:57 +0100 Message-ID: <20110106132857.11513i1k24thhwug@webmail.leidinger.net> Date: Thu, 06 Jan 2011 13:28:57 +0100 From: Alexander Leidinger To: Andre Albsmeier References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> <20110102115021.00000c8b@unknown> <20110105191915.GA43997@curry.mchp.siemens.de> <20110106090130.20784sf1w9verdic@webmail.leidinger.net> <20110106104057.GB59969@curry.mchp.siemens.de> In-Reply-To: <20110106104057.GB59969@curry.mchp.siemens.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: B09B2844012.A53FC X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=1.351, required 6, autolearn=disabled, RDNS_NONE 1.27, TW_TM 0.08) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1294921746.92484@sJMY/2T+1XO2bWGUdXMB5A X-EBL-Spam-Status: No Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2011 12:29:11 -0000 Quoting Andre Albsmeier (from Thu, 6 Jan 2011 11:40:57 +0100): > On Thu, 06-Jan-2011 at 09:01:30 +0100, Alexander Leidinger wrote: >> Quoting Andre Albsmeier (from Wed, 5 Jan >> 2011 20:19:15 +0100): >> >> > Got it running... A short explanation: >> > >> > Linux' shm_open() fails because it wants to find some funky shmfs >> > to construct the full pathname. It starts to search at the default >> > mountpoint which is /dev/shm. If this fails it runs through fstab >> > and searches for shmfs and tmpfs. Whatever it finds will be >> > statfs()'ed to be checked for Linux' fs magic for shmfs (0x01021994). >> >> What does it expect as a filesystem type if it does not find shmfs in >> fstab but tmpfs? If it does not find tmpfs, will it try /tmp anyway >> (but check for some fstype magic)? > > It searches for every mount which is of type tmpfs or shm. > Whatever it finds must have the fs magic SHMFS_SUPER_MAGIC > (0x01021994). It's in sysdeps/unix/sysv/linux/shm_open.c: > > ------------------------- snip ------------------- > > /* Now read the entries. */ > while ((mp = __getmntent_r (fp, &resmem, buf, sizeof buf)) != NULL) > /* The original name is "shm" but this got changed in early Linux > 2.4.x to "tmpfs". */ This looks like it is creating real files there, and the tmpfs thing shall make sure it is empty after a reboot. That's just an assumption... Do you have some temporary files in the location your /dev/shm points to during running the linux application which needs it (I do not expect that our implementation creates them, but as I haven't looked at the code yet, this is something to be verified)? Bye, Alexander. -- Is death legally binding? http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 7 07:20:13 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9350F106566C for ; Fri, 7 Jan 2011 07:20:13 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from goliath.siemens.de (goliath.siemens.de [192.35.17.28]) by mx1.freebsd.org (Postfix) with ESMTP id 277C48FC08 for ; Fri, 7 Jan 2011 07:20:12 +0000 (UTC) Received: from mail2.siemens.de (localhost [127.0.0.1]) by goliath.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id p077KBZB016677; Fri, 7 Jan 2011 08:20:12 +0100 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail2.siemens.de (8.13.6/8.13.6) with ESMTP id p077KBfx003933; Fri, 7 Jan 2011 08:20:11 +0100 Received: (from localhost) by curry.mchp.siemens.de (8.14.4/8.14.4) id p077KBQd001630; Date: Fri, 7 Jan 2011 08:20:11 +0100 From: Andre Albsmeier To: Alexander Leidinger Message-ID: <20110107072011.GA3905@curry.mchp.siemens.de> References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> <20110102115021.00000c8b@unknown> <20110105191915.GA43997@curry.mchp.siemens.de> <20110106090130.20784sf1w9verdic@webmail.leidinger.net> <20110106104057.GB59969@curry.mchp.siemens.de> <20110106132857.11513i1k24thhwug@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110106132857.11513i1k24thhwug@webmail.leidinger.net> X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2011 07:20:13 -0000 On Thu, 06-Jan-2011 at 13:28:57 +0100, Alexander Leidinger wrote: > Quoting Andre Albsmeier (from Thu, 6 Jan > 2011 11:40:57 +0100): > > > On Thu, 06-Jan-2011 at 09:01:30 +0100, Alexander Leidinger wrote: > >> Quoting Andre Albsmeier (from Wed, 5 Jan > >> 2011 20:19:15 +0100): > >> > >> > Got it running... A short explanation: > >> > > >> > Linux' shm_open() fails because it wants to find some funky shmfs > >> > to construct the full pathname. It starts to search at the default > >> > mountpoint which is /dev/shm. If this fails it runs through fstab > >> > and searches for shmfs and tmpfs. Whatever it finds will be > >> > statfs()'ed to be checked for Linux' fs magic for shmfs (0x01021994). > >> > >> What does it expect as a filesystem type if it does not find shmfs in > >> fstab but tmpfs? If it does not find tmpfs, will it try /tmp anyway > >> (but check for some fstype magic)? > > > > It searches for every mount which is of type tmpfs or shm. > > Whatever it finds must have the fs magic SHMFS_SUPER_MAGIC > > (0x01021994). It's in sysdeps/unix/sysv/linux/shm_open.c: > > > > ------------------------- snip ------------------- > > > > /* Now read the entries. */ > > while ((mp = __getmntent_r (fp, &resmem, buf, sizeof buf)) != NULL) > > /* The original name is "shm" but this got changed in early Linux > > 2.4.x to "tmpfs". */ > > This looks like it is creating real files there, and the tmpfs thing Yes, that's true. > shall make sure it is empty after a reboot. That's just an assumption... Possibly. I have also seen statements in mailing lists where they talk about that fs being some kind of memory based fs to increase speed. > > Do you have some temporary files in the location your /dev/shm points > to during running the linux application which needs it (I do not > expect that our implementation creates them, but as I haven't looked > at the code yet, this is something to be verified)? Yes. In the case of my application (SIMetrix) files with a size of approx. 1,3 MB are created and then removed. -Andre > > Bye, > Alexander. > > -- > Is death legally binding? > > http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 > http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 > -- Micro$oft: Which virus will you get today? From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 7 19:47:17 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5396106566B for ; Fri, 7 Jan 2011 19:47:17 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 73FE48FC0C for ; Fri, 7 Jan 2011 19:47:17 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id CBEA51E000E8; Fri, 7 Jan 2011 20:47:15 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p07JjGL2028917; Fri, 7 Jan 2011 20:45:16 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p07JjGJh028916; Fri, 7 Jan 2011 20:45:16 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Fri, 7 Jan 2011 20:45:16 +0100 To: Adam Vande More Message-ID: <20110107194516.GA28544@triton8.kn-bremen.de> References: <20100418191752.GA72730@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-emulation@freebsd.org, Xiaodong Yi , Juergen Lock Subject: Re: Testing Luvalley with FreeBSD as dom0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2011 19:47:17 -0000 On Mon, Jan 03, 2011 at 08:00:01PM -0600, Adam Vande More wrote: > On Sun, Apr 18, 2010 at 5:54 PM, Xiaodong Yi wrote: > > > I am very glad that Juergen introduced Luvalley to the FreeBSD > > society. We hope you like the idea of it. And we will be much more > > pleased for the feedbacks. Luvally now is only experimental and may be > > not stable or low performance. But I will continue working to improve > > it. > > > > Just wondering if there's been any progress here? Is it still under > development on FreeBSD? I probably should have posted here when Xiaodong Yi told me a while ago that he no longer has time for Luvalley. (That mail was some time after I asked him about his last sourceforge release which I couldn't get to run on my hw.) So I guess you can say this project is now looking for new `volunteers'... :/ Juergen From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 7 20:33:33 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA7A11065673 for ; Fri, 7 Jan 2011 20:33:33 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 6AD6B8FC14 for ; Fri, 7 Jan 2011 20:33:33 +0000 (UTC) Received: by wwf26 with SMTP id 26so17548359wwf.31 for ; Fri, 07 Jan 2011 12:33:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Ott/X+ls372hiEy0sekD1P1xZ7Rpu5H7GHdEQepZmow=; b=goWfYVMq45uIcnP6Nsb92IdmVyv6I3LK76g2JMaxThRnhodkCA8OFgUSo8nNDDu80Y 2msTZpeH+8usrg3yxNQQ+MU8b22jKwExV2H7+4L01Q6LJ/rVZSmjIAMHLdQ/cMKWHYSd Oka308FhsqoIBAKEVBj0pTKfxuglz4qo3JpTc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=emKX/BUQKnC2CPlof2i6tNaCJoFz8IS1RNTZ06oaBshuApg2W7J8VKwrMQAyJ7QezF Xy06diXuwc7hRRqt9UsLUK7oIURp0g0hgQ9XAqSkoFHXspiT4MGsuM7ZnpYjGwN23h+F IlJ1XarLyltPJbg03ysOy+WDpUbgRRi9diq+s= MIME-Version: 1.0 Received: by 10.227.147.5 with SMTP id j5mr2625373wbv.61.1294430577976; Fri, 07 Jan 2011 12:02:57 -0800 (PST) Received: by 10.216.36.71 with HTTP; Fri, 7 Jan 2011 12:02:57 -0800 (PST) In-Reply-To: <20110107194516.GA28544@triton8.kn-bremen.de> References: <20100418191752.GA72730@triton8.kn-bremen.de> <20110107194516.GA28544@triton8.kn-bremen.de> Date: Fri, 7 Jan 2011 14:02:57 -0600 Message-ID: From: Brandon Gooch To: Juergen Lock Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-emulation@freebsd.org, Xiaodong Yi Subject: Re: Testing Luvalley with FreeBSD as dom0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2011 20:33:33 -0000 On Fri, Jan 7, 2011 at 1:45 PM, Juergen Lock wrote= : > On Mon, Jan 03, 2011 at 08:00:01PM -0600, Adam Vande More wrote: >> On Sun, Apr 18, 2010 at 5:54 PM, Xiaodong Yi wrote: >> >> > I am very glad that Juergen introduced Luvalley to the FreeBSD >> > society. We hope you like the idea of it. And we will be much more >> > pleased for the feedbacks. Luvally now is only experimental and may be >> > not stable or low performance. But I will continue working to improve >> > it. >> > >> >> Just wondering if there's been any progress here? =A0Is it still under >> development on FreeBSD? > > I probably should have posted here when Xiaodong Yi told me a while > ago that he no longer has time for Luvalley. =A0(That mail was some > time after I asked him about his last sourceforge release which I > couldn't get to run on my hw.) > > =A0So I guess you can say this project is now looking for new > `volunteers'... > > =A0:/ > =A0 =A0 =A0 =A0Juergen Could Luvalley become BSD licensed? -Brandon From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 7 21:39:12 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96BD010656DB for ; Fri, 7 Jan 2011 21:39:12 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 50AA58FC08 for ; Fri, 7 Jan 2011 21:39:12 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 8B3A51E00846; Fri, 7 Jan 2011 22:39:11 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p07LahAt033216; Fri, 7 Jan 2011 22:36:43 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p07LahSQ033215; Fri, 7 Jan 2011 22:36:43 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Fri, 7 Jan 2011 22:36:43 +0100 To: Brandon Gooch Message-ID: <20110107213643.GA32645@triton8.kn-bremen.de> References: <20100418191752.GA72730@triton8.kn-bremen.de> <20110107194516.GA28544@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-emulation@freebsd.org, Xiaodong Yi , Juergen Lock Subject: Re: Testing Luvalley with FreeBSD as dom0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2011 21:39:12 -0000 On Fri, Jan 07, 2011 at 02:02:57PM -0600, Brandon Gooch wrote: > On Fri, Jan 7, 2011 at 1:45 PM, Juergen Lock wrote: > > On Mon, Jan 03, 2011 at 08:00:01PM -0600, Adam Vande More wrote: > >> On Sun, Apr 18, 2010 at 5:54 PM, Xiaodong Yi wrote: > >> > >> > I am very glad that Juergen introduced Luvalley to the FreeBSD > >> > society. We hope you like the idea of it. And we will be much more > >> > pleased for the feedbacks. Luvally now is only experimental and may be > >> > not stable or low performance. But I will continue working to improve > >> > it. > >> > > >> > >> Just wondering if there's been any progress here?  Is it still under > >> development on FreeBSD? > > > > I probably should have posted here when Xiaodong Yi told me a while > > ago that he no longer has time for Luvalley.  (That mail was some > > time after I asked him about his last sourceforge release which I > > couldn't get to run on my hw.) > > > >  So I guess you can say this project is now looking for new > > `volunteers'... > > > >  :/ > >        Juergen > > Could Luvalley become BSD licensed? I think parts of its code are based on the Linux kvm kernel bits so I guess those authors would have to agree too besides the Luvalley author... (The linux kernel is only gplv2 tho not gplv3 and it seems Linus wants it to stay that way.) Oh and also IANAL but since the Luvalley `kernel' (hypervisor) runs on bare metal and boots any dom0 kernel/os (i.e. Linux or FreeBSD) pretty much the same way how a pc bios boots them I somehow doubt it would `taint' the FreeBSD kernel. (And the dom0 kernel also doesn't need any patches, you only then run the Luvalley version of qemu-kvm in the dom0's userland.) HTH, Juergen