From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 13 13:13:40 2011 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C013106566C; Sun, 13 Mar 2011 13:13:40 +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 B401C8FC0A; Sun, 13 Mar 2011 13:13:39 +0000 (UTC) Received: from outgoing.leidinger.net (p5B1539CA.dip.t-dialin.net [91.21.57.202]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 271F284400E; Sun, 13 Mar 2011 14:13:35 +0100 (CET) Received: from unknown (IO.Leidinger.net [192.168.2.110]) by outgoing.leidinger.net (Postfix) with ESMTP id DFF9F2AA9; Sun, 13 Mar 2011 14:13:31 +0100 (CET) Date: Sun, 13 Mar 2011 14:13:30 +0100 From: Alexander Leidinger To: Andriy Gapon Message-ID: <20110313141330.000016a2@unknown> In-Reply-To: <4D7C6DFC.8020504@freebsd.org> References: <201103120909.p2C99P2j010783@svn.freebsd.org> <20110312211423.00000f34@unknown> <4D7C6DFC.8020504@freebsd.org> 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: 271F284400E.A1663 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=0.317, required 6, autolearn=disabled, ALL_TRUSTED -1.00, SARE_LWSHORTT 1.24, TW_SV 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1300626816.35631@8w0DlGD8BuxBvSkhLNwqfA X-EBL-Spam-Status: No Cc: emulation@freebsd.org, arch@freebsd.org, Artem Belevich Subject: linux or linux32 on i386 (was: Re: svn commit: r219561 - in head/sys: cddl/dev/systrace modules/dtrace modules/dtrace/dtraceall modules/dtrace/systrace_freebsd32 modules/dtrace/systrace_linux32) 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, 13 Mar 2011 13:13:40 -0000 On Sun, 13 Mar 2011 09:10:52 +0200 Andriy Gapon wrote: > on 13/03/2011 08:35 Artem Belevich said the following: > > On Sat, Mar 12, 2011 at 12:14 PM, Alexander Leidinger > > wrote: > >> But this looks like it will be named linux32 in any case. In the > >> short term I would prefer: > >> ---snip--- > >> #if defined(__amd64__) > >> #define MODNAME "linux32" > >> #elif defined(__i386__) > >> #define MODNAME "linux" > >> #endif > >> ---snip--- > > > > Makes sense. It's what's done with freebsd syscalls -- 'freebsd' for > > native syscalls, freebsd32 for 32-bit compat. > > BTW, in my opinion, it might not make a lot of sense. > That is, we can have native and compat FreeBSD system calls, but > Linux system calls are always compat and never native, whether the > emulation is for the same arch or not. Explicit suffix makes things > clearer. But that's just my opinion. So far we use sys/i386/linux and sys/amd64/linux32 as the directory structure. When the native linux code for amd64 arrives I would expect it is named linux and not linux64. On i386 we also do not refer to linux32 anywhere. It may not be the native ABI, but it is the native code size. I also doubt anyone would expect to see a linux64 on i386. IMO it is too late for a explicit suffix (this would be the onl place which is using it, all other places use plain linux and it would be a lot of changes necessary to change this) and it would be more consistent to use linux instead of linux32 on i386. > A public mailing list may be a better place to discuss this further. I switched to arch and emulation. Bye, Alexander. From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 14 11:06:58 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 E6F9C106564A for ; Mon, 14 Mar 2011 11:06:58 +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 BB6728FC14 for ; Mon, 14 Mar 2011 11:06:58 +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 p2EB6wt1002533 for ; Mon, 14 Mar 2011 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2EB6whE002531 for freebsd-emulation@FreeBSD.org; Mon, 14 Mar 2011 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 14 Mar 2011 11:06:58 GMT Message-Id: <201103141106.p2EB6whE002531@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, 14 Mar 2011 11:06:59 -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/155238 emulation 20 minute time jumps in VirtualBox o kern/155040 emulation [linux] [patch] Linux recvfrom doesn't handle proto fa o kern/153990 emulation [hyper-v]: Will not install into Hyper-V on Server 200 o kern/153887 emulation [linux] Linux emulator not understand STB_GNU_UNIQUE b 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 bin/150262 emulation [patch] truss(1) -f doesn't follow descendants of the 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 f kern/144763 emulation [linux] [panic] Kernel panic when start linux binaries p kern/144584 emulation [linprocfs][patch] bogus values in linprocfs 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 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 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 31 problems total. From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 17 14:01:18 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 0E8D4106564A; Thu, 17 Mar 2011 14:01:18 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id A8F6A8FC12; Thu, 17 Mar 2011 14:01:17 +0000 (UTC) Received: from home.bluelife.at (93.104.210.95) by groupware.itac.at (Axigen) with (AES256-SHA encrypted) ESMTPSA id 299920; Thu, 17 Mar 2011 15:01:57 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Thu, 17 Mar 2011 15:01:17 +0100 From: Bernhard Froehlich To: Brandon Gooch In-Reply-To: References: <86oc77heqk.fsf@kopusha.home.net> <4D3D2DE9.2060004@freebsd.org> <86tygwy9p0.fsf@kopusha.home.net> <4D3F8357.2070005@freebsd.org> "<62fcd16074e526547c3417a8f259174e@bluelife.at>" <8662tbkahz.fsf@zhuzha.ua1> <4c9ee35c7798936a1e35259d72af781c@bluelife.at> <8b39481bb24314e2d543b7544f12a447@bluelife.at> Message-ID: <693ef9e6a28dc6da96e2294f0f1d0c95@bluelife.at> X-Sender: decke@bluelife.at User-Agent: Roundcube Webmail/0.5.1 X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B0205.4D82142C.0193,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: freebsd-emulation@freebsd.org, Julian Elischer , freebsd-virtualization@freebsd.org Subject: Re: VirtualBox + VIMAGE 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, 17 Mar 2011 14:01:18 -0000 On Wed, 2 Mar 2011 15:09:21 -0600, Brandon Gooch wrote: > On Wed, Mar 2, 2011 at 2:52 PM, Bernhard Froehlich wrote: >> On Wed, 02 Mar 2011 21:31:45 +0100, Bernhard Froehlich wrote: >>> On Wed, 2 Mar 2011 08:30:01 -0600, Brandon Gooch wrote: >>>> On Wed, Jan 26, 2011 at 5:19 PM, Bernhard Froehlich >>>> wrote: >>>>> On Wed, 26 Jan 2011 16:25:28 +0200, Mikolaj Golub wrote: >>>>>> On Wed, 26 Jan 2011 10:22:40 +0100 Bernhard Froehlich wrote: >>>>>> >>>>>>  BF> Sounds like it's my turn now. Which FreeBSD version is required to be >>>>>>  BF> able to use it? >>>>>> >>>>>> As Bjoern noted it is for __FreeBSD_version >= 800500. >>>>>> >>>>>>  BF> Is VIMAGE enabled per default and what happens if VIMAGE is disabled - >>>>>>  BF> does it at least build fine with that patch? >>>>>> >>>>>> We have VIMAGE disabled by default. >>>>>> >>>>>> I have added to src/VBox/HostDrivers/VBoxNetFlt/freebsd/Makefile: >>>>>> >>>>>> .if defined(VIMAGE) >>>>>>  CFLAGS += -DVIMAGE >>>>>> .endif >>>>>> >>>>>> So to build the driver for VIMAGE enabled kernel one should run >>>>>> >>>>>> VIMAGE=1 make >>>>>> >>>>>> If VIMAGE variable is not defined the module for VIMAGE disabled kernel will >>>>>> be built. >>>>> >>>>> http://home.bluelife.at/patches/virtualbox-ose-kmod-devel-VIMAGE.diff >>>>> >>>>> I've integrated it a bit better into the VirtualBox build system, added >>>>> the ports stuff and updated the patch for VirtualBox 4.0.2. >>>>> >>>>> It is currently unclear to me why you add VIMAGE to CFLAGS but nowhere >>>>> check for VIMAGE in VBoxNetFlt-freebsd.c. Shouldn't we add a check for >>>>> VIMAGE in the #if defined line or is this already done somewhere deep in >>>>> the included headers? >>>>> >>>>> -- >>>>> Bernhard Froehlich >>>>> http://www.bluelife.at/ >>>> >>>> I managed to completely miss your patch posted this thread, so I just >>>> gave it a try on bluelife's virtualbox-ose-kmod svn r1239; it's >>>> working well. I've started each of my guests with bridged networking >>>> to be sure, and I see no panic (or any other anomaly) during boot or >>>> normal operation. >>>> >>>> Do you have plans on merging the patch soon? >>> >>> It's not committed because it doesn't work. What i have tested so far >>> is with stock 8.2-REL so without VIMAGE. >>> >>> enabled VIMAGE option on stock 8.2-REL: bridging works fine >>> disabled VIMAGE option on stock 8.2-REL: crashes vm with an assert >>> >>> Expression: !pPatchToGuestRec >>> Location  : >>> /usr/home/decke/blueports/emulators/virtualbox-ose/work/VirtualBox-4.0.4_OSE/src/VBox/VMM/VMMR3/PATM.cpp(116 >>> 6) void patmr3AddP2GLookupRecord(VM*, _PATCHINFO*, uint8_t*, RTRCPTR, >>> PATM_LOOKUP_TYPE, bool) >> >> It looks like that assert is not related to the VIMAGE patch. Works >> fine now since half an hour. >> >>> Could someone with an VIMAGE kernel please test the patch? Just >>> configure a VM with bridging and let it transfer a few bytes. Once with >>> the option enabled and once disabled. > > I've had a machine running a linux guest for almost a day, bridging > with a VIMAGE kernel, while capturing traffic on the virtual interface > (and performing a few other tasks) -- so far, so good. No panics, and > no anomalies. > > I surely don't know what the above mentioned assert is about; I > haven't seen such a panic myself. Thanks to everyone involved! I have committed it now to our blueports repository and the patch will come together with the next major VirtualBox update to 4.0.x. http://svn.bluelife.at/index.cgi/blueports/revision/?rev=1264 It got also reviewed from upstream and it looks fine so far. Will hopefully be committed soon. -- Bernhard Fröhlich http://www.bluelife.at/ From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 17 14:52:14 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 A9B9C106566B; Thu, 17 Mar 2011 14:52:14 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0D3BF8FC19; Thu, 17 Mar 2011 14:52:13 +0000 (UTC) Received: by wyf23 with SMTP id 23so3040164wyf.13 for ; Thu, 17 Mar 2011 07:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=uRST5iMYdxqkTuT7LRN9fzxwxZFxm2gGHdqQW2Te2jU=; b=x+vL5KJmRQ/Ls31NjvGAhjiK/4GPCZmYCYo3ZaJpTdrjZ90VpVG03AejyiDkQ+X6C8 IvCibAkfPs0HYPNwQpoWzOYwPmRWbFrrH7ELWdCxRrmH6rnJjPUM/1TS2B+dzUww2pPI SgUq5DViMU7JwpuonKOR0gQFSNipaWCQA/j8g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=KqypWWSS5x0VwYMsVmmOGcxGcJx86dQ99PoHaLsEPxGV1YLG79iooEOYb1q8J6EHts K+Va0JDyDKrViaIsEX1l4MFVxfOUgdTymPP6Wqs7Tl9feLmffILfempT162GGY/5GCh2 WHn4Pq4MEH97YTIEhxPPzmqFU8l8DHT97JZm4= Received: by 10.216.142.85 with SMTP id h63mr1388116wej.84.1300372055213; Thu, 17 Mar 2011 07:27:35 -0700 (PDT) Received: from localhost ([94.27.39.186]) by mx.google.com with ESMTPS id n2sm1122190wej.46.2011.03.17.07.27.33 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 Mar 2011 07:27:34 -0700 (PDT) From: Mikolaj Golub To: Bernhard Froehlich Organization: TOA Ukraine References: <86oc77heqk.fsf@kopusha.home.net> <4D3D2DE9.2060004@freebsd.org> <86tygwy9p0.fsf@kopusha.home.net> <4D3F8357.2070005@freebsd.org> <62fcd16074e526547c3417a8f259174e@bluelife.at> <8662tbkahz.fsf@zhuzha.ua1> <4c9ee35c7798936a1e35259d72af781c@bluelife.at> <8b39481bb24314e2d543b7544f12a447@bluelife.at> <693ef9e6a28dc6da96e2294f0f1d0c95@bluelife.at> Date: Thu, 17 Mar 2011 16:27:32 +0200 In-Reply-To: <693ef9e6a28dc6da96e2294f0f1d0c95@bluelife.at> (Bernhard Froehlich's message of "Thu, 17 Mar 2011 15:01:17 +0100") Message-ID: <86wrjxom97.fsf@in138.ua3> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-emulation@freebsd.org, Julian Elischer , freebsd-virtualization@freebsd.org Subject: Re: VirtualBox + VIMAGE 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, 17 Mar 2011 14:52:14 -0000 On Thu, 17 Mar 2011 15:01:17 +0100 Bernhard Froehlich wrote: BF> Thanks to everyone involved! I have committed it now to our blueports BF> repository and the patch will come together with the next major BF> VirtualBox update to 4.0.x. BF> http://svn.bluelife.at/index.cgi/blueports/revision/?rev=1264 BF> It got also reviewed from upstream and it looks fine so far. Will BF> hopefully be committed soon. Thank you! -- Mikolaj Golub