From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 25 02:30:03 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A9F1CAEF for ; Mon, 25 Feb 2013 02:30:03 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.208.146]) by mx1.freebsd.org (Postfix) with ESMTP id 76A926C1 for ; Mon, 25 Feb 2013 02:30:03 +0000 (UTC) Received: from maia.hub.org (unknown [200.46.151.189]) by hub.org (Postfix) with ESMTP id 8BFB2697637 for ; Sun, 24 Feb 2013 22:30:01 -0400 (AST) Received: from hub.org ([200.46.208.146]) by maia.hub.org (mx1.hub.org [200.46.151.189]) (amavisd-maia, port 10024) with ESMTP id 60051-04 for ; Mon, 25 Feb 2013 02:30:00 +0000 (UTC) Received: from [192.168.0.52] (S01067cb21b2ff4ca.gv.shawcable.net [24.108.26.71]) by hub.org (Postfix) with ESMTPA id 13B8F697636 for ; Sun, 24 Feb 2013 22:29:59 -0400 (AST) From: Marc Fournier Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: virtualbox-ose + 9-STABLE fails to compile ... Message-Id: Date: Sun, 24 Feb 2013 18:29:58 -0800 To: freebsd-emulation@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 25 Feb 2013 02:30:03 -0000 Odd thing is, I tried the same thing on a different box, same state of = 9.x and virtualbox-ose, and seemed to go fine, so not sure why this box = is breaking =85 mean anything to someone =85 ? kBuild: Installing tstVMStructRC =3D> = /vm/shared/jupiter.hub.org/vm/shared/ports/emulators/virtualbox-ose/work/V= irtualBox-4.2.6/out/freebsd.amd64/release/bin/tstVMStructRC kBuild: Generating tstVMStructSize - = /vm/shared/jupiter.hub.org/vm/shared/ports/emulators/virtualbox-ose/work/V= irtualBox-4.2.6/out/freebsd.amd64/release/obj/VMM/tstVMStructRC.h = /vm/shared/jupiter.hub.org/vm/shared/ports/emulators/virtualbox-ose/work/V= irtualBox-4.2.6/out/freebsd.amd64/release/bin/tstVMStructRC: 1: Syntax = error: "(" unexpected kmk: *** = [/vm/shared/jupiter.hub.org/vm/shared/ports/emulators/virtualbox-ose/work/= VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VMM/tstVMStructRC.h] = Error 2 kmk: *** Deleting file = `/vm/shared/jupiter.hub.org/vm/shared/ports/emulators/virtualbox-ose/work/= VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VMM/tstVMStructRC.h' From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 25 11:06:45 2013 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D3A01110 for ; Mon, 25 Feb 2013 11:06:45 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B8ECBE68 for ; Mon, 25 Feb 2013 11:06:45 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1PB6je5066556 for ; Mon, 25 Feb 2013 11:06:45 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1PB6j2J066554 for freebsd-emulation@FreeBSD.org; Mon, 25 Feb 2013 11:06:45 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 25 Feb 2013 11:06:45 GMT Message-Id: <201302251106.r1PB6j2J066554@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 Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 25 Feb 2013 11:06:45 -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/174933 emulation [linux] if_nameindex fail in linuxulator enviroment o ports/169988 emulation [PATCH] Update sysutils/linux-procps to 3.2.7; also up o ports/169896 emulation [patch] audio/linux-f10-alsa-lib: use OSS plugin by de o kern/169814 emulation [linux] ptrace is broken in Linux emulation o kern/169805 emulation [linux] utime() syscall does not work in linuxulator o kern/159646 emulation [linux] [patch] bump Linux version in linuxulator f kern/156691 emulation [vmware] [panic] panic when using hard disks as RAW de o kern/156353 emulation [ibcs2] ibcs2 binaries that execute on 4.x not working o kern/155577 emulation [boot] BTX halted after install. Reboot during install 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 kern/151714 emulation [linux] print/acroread9 not usable due to lack of supp 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 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 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 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/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 so 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/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 34 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 25 11:27:17 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CF735323 for ; Mon, 25 Feb 2013 11:27:17 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by mx1.freebsd.org (Postfix) with ESMTP id 3DE601E6 for ; Mon, 25 Feb 2013 11:27:16 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id m4so2164826lbo.14 for ; Mon, 25 Feb 2013 03:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=X9X4d7MwgMWrqZZObEBpAl8tcZMmPJpl4R29fRJC4PU=; b=zmRavUrQuoB8DgBtO7yD5sQzyU2CkiD7GMrUNPd/INRSdGPIEz6d8XSwYyj7bJaC2g yRpDbpHNfEi4qbKKTv3J4qxqkH3MPEvbBy3wbkt1VqF7m/TvFlLSOJ3QyzTEeMJ8GKcv uJT+OB8VU1M3WAv3RB00kSCRU+nizptSy/jmpiq/QV2eQyUBUzlqnvzuKPsg5ba3GSFV B+zM1u6LE+D6ziNzlyQ6QTeCSGKhBgwbaiVDDaTnfcCO+gFC3AbSOTgmTSgoLC36Qs9D eFeM+sOMIHnvvF7NaLXMRwAyab+HogY55LusKHsyjshMhbDa/zDQbPHDR+sywnVdUWkc o9KQ== X-Received: by 10.112.49.99 with SMTP id t3mr4348627lbn.108.1361791635873; Mon, 25 Feb 2013 03:27:15 -0800 (PST) Received: from dchagin.static.corbina.net (dchagin.static.corbina.ru. [78.107.232.239]) by mx.google.com with ESMTPS id ng6sm6697459lab.2.2013.02.25.03.27.14 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Feb 2013 03:27:14 -0800 (PST) Sender: Dmitry Chagin Received: from dchagin.static.corbina.net (localhost [127.0.0.1]) by dchagin.static.corbina.net (8.14.6/8.14.6) with ESMTP id r1PBRCEZ002881 for ; Mon, 25 Feb 2013 15:27:12 +0400 (MSK) (envelope-from dchagin@dchagin.static.corbina.net) Received: (from dchagin@localhost) by dchagin.static.corbina.net (8.14.6/8.14.6/Submit) id r1PBRCsc002880 for freebsd-emulation@freebsd.org; Mon, 25 Feb 2013 15:27:12 +0400 (MSK) (envelope-from dchagin) Date: Mon, 25 Feb 2013 15:27:12 +0400 From: Chagin Dmitry To: freebsd-emulation@freebsd.org Subject: Linuxulator patches,request for test && review Message-ID: <20130225112712.GA2870@dchagin.static.corbina.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 25 Feb 2013 11:27:17 -0000 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all! I have created a new Linuxulator branch: svn://svn.freebsd.org/base/user/dchagin/lemul where I plan to switch it to use the native 1:1 threads, implement vdso for nptl cleanup support and amd64 layer. Currently I have committed the patchset which switched Linuxulator to 1:1 threading model. Any review and test would be greatly appreciated. Thanks. --=20 Have fun! chd --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlErSpAACgkQ0t2Tb3OO/O0TCQCeM+ONoyh+KIxPdB9fSoxD2F/6 CAYAn3vciKCnwEt7qvNUW/zBrVHhcQM4 =fBIK -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e-- From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 26 20:52:43 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 59768C5D; Tue, 26 Feb 2013 20:52:43 +0000 (UTC) (envelope-from damjan.jov@gmail.com) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id B2C371EEE; Tue, 26 Feb 2013 20:52:42 +0000 (UTC) Received: by mail-lb0-f176.google.com with SMTP id s4so3389420lbc.7 for ; Tue, 26 Feb 2013 12:52:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=E5cHE9QK6vU7Mk/y/md6C5PLkNxsD9U8RLWGNRdUD0U=; b=csQ4k6m1EJZ2MEiQxVu220b2bCBY6bbZPnO8AUW1YF6E1KYg9WlqrJXx6RipqWzn8H hvnZb2vv/qKKuvfnva7c4gn8ZbuOwRu3dKpEUg4QnGd0Z2tjjOblDgw3ueHuw6uwcFVs Okbt668EVCiXZq3pMG2MZBO31Y6IWXoRdzI9goQBRMe24HyalqlXI1a42a6FZt0y26Ml NElz6sdP6z33LwX79IxhFeUBo3dn1d57rRuuESyQyukm3sEObtfOsB6X2AqV3CZuKZQ7 SnSx/P6BtC5YjEcaczvzdyM/ku9QVoXiV+fGH0qOLLXsr5/0PLcAaXCPiCyKIdmIZctR LdTg== X-Received: by 10.112.49.99 with SMTP id t3mr1132732lbn.108.1361911955946; Tue, 26 Feb 2013 12:52:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.20.138 with HTTP; Tue, 26 Feb 2013 12:52:15 -0800 (PST) In-Reply-To: References: <20130220154855.GF2598@kib.kiev.ua> <51253759.70508@coosemans.org> <20130221154433.GY2598@kib.kiev.ua> From: Damjan Jovanovic Date: Tue, 26 Feb 2013 22:52:15 +0200 Message-ID: Subject: Re: [patch] Wine DLL base address patches To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, Tijl Coosemans X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 26 Feb 2013 20:52:43 -0000 On Fri, Feb 22, 2013 at 5:19 AM, Damjan Jovanovic wrote: > On Thu, Feb 21, 2013 at 5:44 PM, Konstantin Belousov > wrote: >> On Thu, Feb 21, 2013 at 12:57:45AM +0200, Damjan Jovanovic wrote: >>> On Wed, Feb 20, 2013 at 10:51 PM, Tijl Coosemans wrote: >>> > On 20-02-2013 16:48, Konstantin Belousov wrote: >>> >> On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: >>> >>> Hi >>> >>> >>> >>> Wine needs some of its libraries to be loaded at specific base >>> >>> addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently >>> >>> lacks. >>> >>> >>> >>> I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that >>> >>> loads libraries at their preferred base addresses >>> >>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=176216), as well as a port >>> >>> of Prelink to FreeBSD which Wine uses to set base addresses >>> >>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=176283). Both work :-), >>> >>> the changed dynamic loader doesn't show any problems in a few days of >>> >>> testing, and prelink works with the --reloc-only option as used by >>> >>> Wine. >>> >>> >>> >>> Please review/test/comment/commit. >>> >> >>> >> Unfortunately, it is not safe. MAP_FIXED overrides any previous mappings >>> >> which could exist at the specified address. >>> > >>> > I've simplified the rtld patch to a single line. The second patch makes >>> > Wine use -Ttext-segment linker flag instead of prelink. This requires >>> > binutils from ports, but it's easier than porting prelink. >>> > >>> >>> All of that occurred to me as well. >>> >>> The problem with that one-line rtld patch is that loading an >>> application will now fail if any of its libraries cannot be loaded at >>> their requested address. >> But this is intended behaviour. Also, the default virtaddr base for the >> shared libraries is 0, so the existing binaries should be not affected. > > In that case, and since failing to load a library only causes the > process to exit when starting up and not when it calls dlopen(), I > approve. > >>> >>> The problem with -Ttext-segment (and isn't it just -Ttext?) is that it >>> doesn't seem to work: the base_vaddr seen by rtld will remain 0, and >>> the address listed in /proc/.../map is different from what it should >>> be. Also run "readelf -l" on a library compiled that way and compare >>> with the output of one run through "prelink --reloc-only", you'll see >>> the lowest VirtAddr and PhysAddr in LOAD headers change only with >>> prelink. I really ported prelink because there was no other choice. >> The -Ttext-segment does work. As indicated by Tijl, you need recent >> binutils. I just verified that ld 2.32.1 obeys -Ttext-segment. >> >> You can also take a look at the default linker script to see how >> -Ttext-segment is used, look for SEGMENT_START("text-segment"). >> > > My apologies: I confused -Ttext which is documented but doesn't work, > with -Ttext-segment which is undocumented in FreeBSD 9.1 and might > work. I would test it further, but -CURRENT doesn't installworld > (ERROR: Required auditdistd user is missing, see /usr/src/UPDATING.) > and I am away until next week. > > Prelink is now in Ports. What I'd recommend is checking if the > binaries are the same, and if not, doing a diff between "readelf -a" > outputs of the prelinked binary vs -Ttext-segmented binary. Also run > this a few times and make sure the address is what's expected: > > #include > #include > int main(int argc, char **argv) > { > printf("%p\n", LoadLibrary("KERNEL32")); > return 0; > } > > mingw32-gcc hello.c -o hello.exe > wine hello.exe With binutils 2.23.1 (in ports), comparing the output of "ld -Ttext-segment=0x7b800000" and "prelink --reloc-only 0x7b800000" using diffs of "readelf -a" outputs gives this: - 11: 000000007b800000 0 OBJECT LOCAL DEFAULT 6 _GLOBAL_OFFSET_TABLE_ + 11: 0000000000000000 0 OBJECT LOCAL DEFAULT 6 _GLOBAL_OFFSET_TABLE_ in other words, prelink also shifts the global offset table to the requested base address, ld does not. I don't think this matters since it's only ELF segments that get loaded - sections are irrelevant. "objdump -s" finds no differences. So I am happy with all of Tijl's patches, please commit them. From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 26 21:04:29 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 81CAE79; Tue, 26 Feb 2013 21:04:29 +0000 (UTC) (envelope-from damjan.jov@gmail.com) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id B46E11FED; Tue, 26 Feb 2013 21:04:28 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id ek20so4412639lab.30 for ; Tue, 26 Feb 2013 13:04:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=S1fp+DhwxGD3yGlw5/SqvdzS7+Np6kgwtMH1VixTGWY=; b=Ei8eSb9GUoRBqYo90dyt6qVaIyUiFFdca4LQlsJ889oSYu/bZWPX4sFVfzMSM5wE3p ohHA2Cale/nEzWt1FsRE1wpyicEbsWKIrJdIgQmjjivwIr8IQ8uBpO7AL9RvF9AENQ0H t2rHuEOZh70nBnduIlDUim4IlMiIWLJMhwMqQwYQziGcmow+aXqvL8zkUsvH+YM2YOuE 3/jn6XcA21ht6PvciOJ1WWLyyyTCmRW68iiEKFSz94/pkcYrn9JUA47AlbR7vaUK532n i48sNyCNd3HBg1A6BNzt3+WQPv7kExuY6EGJovxbPOeWX28HJXAplKArZzRGcDRTpwQK qShQ== X-Received: by 10.112.37.194 with SMTP id a2mr1162947lbk.40.1361912667364; Tue, 26 Feb 2013 13:04:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.20.138 with HTTP; Tue, 26 Feb 2013 13:04:07 -0800 (PST) In-Reply-To: <20130221213528.GD92116@felucia.tataz.chchile.org> References: <20130221213528.GD92116@felucia.tataz.chchile.org> From: Damjan Jovanovic Date: Tue, 26 Feb 2013 23:04:07 +0200 Message-ID: Subject: Re: [patch] Wine DLL base address patches To: Damjan Jovanovic , freebsd-emulation@freebsd.org, freebsd-hackers@freebsd.org, tijl@coosemans.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 26 Feb 2013 21:04:29 -0000 On Thu, Feb 21, 2013 at 11:35 PM, Jeremie Le Hen wrote: > Hi Damjan, > > On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: >> >> Wine needs some of its libraries to be loaded at specific base >> addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently >> lacks. >> >> I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that >> loads libraries at their preferred base addresses >> (http://www.freebsd.org/cgi/query-pr.cgi?pr=176216), as well as a port >> of Prelink to FreeBSD which Wine uses to set base addresses >> (http://www.freebsd.org/cgi/query-pr.cgi?pr=176283). Both work :-), >> the changed dynamic loader doesn't show any problems in a few days of >> testing, and prelink works with the --reloc-only option as used by >> Wine. > > Thanks for this work. > > Out of curiosity, did you try to run prelink on the whole base system? > If yes, did you make any measurement of the performance improvement? > > Thank you! > -- > Jeremie Le Hen > > Scientists say the world is made up of Protons, Neutrons and Electrons. > They forgot to mention Morons. I didn't, please let us know if you do. IMO it would be a lot better to add -Bdirect support like Solaris has (http://sourceware.org/ml/binutils/2005-10/msg00436.html), both for better performance and because it works around ELF's moronic idea of resolving symbols by searching for them in all libraries in the order they were loaded, which easily causes memory corruption and crashes if eg. 2 versions of a library are loaded into the same process. From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 27 06:24:58 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CA284556; Wed, 27 Feb 2013 06:24:58 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 26F08C03; Wed, 27 Feb 2013 06:24:57 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r1R6Op64009944; Wed, 27 Feb 2013 08:24:51 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.4 kib.kiev.ua r1R6Op64009944 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r1R6OoK8009943; Wed, 27 Feb 2013 08:24:50 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 27 Feb 2013 08:24:50 +0200 From: Konstantin Belousov To: Damjan Jovanovic Subject: Re: [patch] Wine DLL base address patches Message-ID: <20130227062450.GX2454@kib.kiev.ua> References: <20130220154855.GF2598@kib.kiev.ua> <51253759.70508@coosemans.org> <20130221154433.GY2598@kib.kiev.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pui5YDBJbCQuJ1A1" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, Tijl Coosemans X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 27 Feb 2013 06:24:58 -0000 --Pui5YDBJbCQuJ1A1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 26, 2013 at 10:52:15PM +0200, Damjan Jovanovic wrote: > On Fri, Feb 22, 2013 at 5:19 AM, Damjan Jovanovic = wrote: > > On Thu, Feb 21, 2013 at 5:44 PM, Konstantin Belousov > > wrote: > >> On Thu, Feb 21, 2013 at 12:57:45AM +0200, Damjan Jovanovic wrote: > >>> On Wed, Feb 20, 2013 at 10:51 PM, Tijl Coosemans = wrote: > >>> > On 20-02-2013 16:48, Konstantin Belousov wrote: > >>> >> On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: > >>> >>> Hi > >>> >>> > >>> >>> Wine needs some of its libraries to be loaded at specific base > >>> >>> addresses (https://wiki.freebsd.org/Wine), something FreeBSD curr= ently > >>> >>> lacks. > >>> >>> > >>> >>> I've written a patch to the dynamic loader (/libexec/ld-elf.so.1)= that > >>> >>> loads libraries at their preferred base addresses > >>> >>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176216), as well as= a port > >>> >>> of Prelink to FreeBSD which Wine uses to set base addresses > >>> >>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176283). Both work = :-), > >>> >>> the changed dynamic loader doesn't show any problems in a few day= s of > >>> >>> testing, and prelink works with the --reloc-only option as used by > >>> >>> Wine. > >>> >>> > >>> >>> Please review/test/comment/commit. > >>> >> > >>> >> Unfortunately, it is not safe. MAP_FIXED overrides any previous ma= ppings > >>> >> which could exist at the specified address. > >>> > > >>> > I've simplified the rtld patch to a single line. The second patch m= akes > >>> > Wine use -Ttext-segment linker flag instead of prelink. This requir= es > >>> > binutils from ports, but it's easier than porting prelink. > >>> > > >>> > >>> All of that occurred to me as well. > >>> > >>> The problem with that one-line rtld patch is that loading an > >>> application will now fail if any of its libraries cannot be loaded at > >>> their requested address. > >> But this is intended behaviour. Also, the default virtaddr base for the > >> shared libraries is 0, so the existing binaries should be not affected. > > > > In that case, and since failing to load a library only causes the > > process to exit when starting up and not when it calls dlopen(), I > > approve. > > > >>> > >>> The problem with -Ttext-segment (and isn't it just -Ttext?) is that it > >>> doesn't seem to work: the base_vaddr seen by rtld will remain 0, and > >>> the address listed in /proc/.../map is different from what it should > >>> be. Also run "readelf -l" on a library compiled that way and compare > >>> with the output of one run through "prelink --reloc-only", you'll see > >>> the lowest VirtAddr and PhysAddr in LOAD headers change only with > >>> prelink. I really ported prelink because there was no other choice. > >> The -Ttext-segment does work. As indicated by Tijl, you need recent > >> binutils. I just verified that ld 2.32.1 obeys -Ttext-segment. > >> > >> You can also take a look at the default linker script to see how > >> -Ttext-segment is used, look for SEGMENT_START("text-segment"). > >> > > > > My apologies: I confused -Ttext which is documented but doesn't work, > > with -Ttext-segment which is undocumented in FreeBSD 9.1 and might > > work. I would test it further, but -CURRENT doesn't installworld > > (ERROR: Required auditdistd user is missing, see /usr/src/UPDATING.) > > and I am away until next week. > > > > Prelink is now in Ports. What I'd recommend is checking if the > > binaries are the same, and if not, doing a diff between "readelf -a" > > outputs of the prelinked binary vs -Ttext-segmented binary. Also run > > this a few times and make sure the address is what's expected: > > > > #include > > #include > > int main(int argc, char **argv) > > { > > printf("%p\n", LoadLibrary("KERNEL32")); > > return 0; > > } > > > > mingw32-gcc hello.c -o hello.exe > > wine hello.exe >=20 >=20 > With binutils 2.23.1 (in ports), comparing the output of "ld > -Ttext-segment=3D0x7b800000" and "prelink --reloc-only 0x7b800000" using > diffs of "readelf -a" outputs gives this: > - 11: 000000007b800000 0 OBJECT LOCAL DEFAULT 6 > _GLOBAL_OFFSET_TABLE_ > + 11: 0000000000000000 0 OBJECT LOCAL DEFAULT 6 > _GLOBAL_OFFSET_TABLE_ > in other words, prelink also shifts the global offset table to the > requested base address, ld does not. I don't think this matters since > it's only ELF segments that get loaded - sections are irrelevant. I suspect that it is sort of bug in ld. On the other hand, _G_O_T_ symbol should be not used for real relocations, because both i386 and amd64 define specific relocations which allow to reference the begining of the GOT. The symbol is mostly a symbolic way to generate the relocations. So indeed, this should be fine. >=20 > "objdump -s" finds no differences. >=20 > So I am happy with all of Tijl's patches, please commit them. I expect Tijl to do it himself. --Pui5YDBJbCQuJ1A1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRLaayAAoJEJDCuSvBvK1ByIgP/i4ZOBfVNJmTgruq/BUTrUs9 QnK1Xy0AnX7U1QupTnnbm6ehK0PKCDix2FPvRdLHZnLkwtJwVs4hbVHpqyyqVkU3 tujfI8IC2gVOpDQdNz/BzTTmZs2M7hjifty+lXQorJs1msGrYjmf6xyPNoZq7+X0 uWmkwIEW7PQQrGBrxyON2sagThasn/GFEEPzRQc3VApDp/XHPzO3eoKButvoaWR4 EtcpkuacpENcpyjASpzttogTCFIrrH6+2l7wod0ZF2g8yDo6Zx+d7U2tkhCaaNXW /fiBSTrErElNMJ5Z1m4V5nuARjZJg4jO0Q+ln+u7S9ncOAqb3WD6q/+VHXOs+5Mj 5Bi/CqgOBWka2LRI1vJc/Q+ao1ZxogWc3pX2TOZcPn46aDcDKuZiqfj/fdgLDBZA 3u6ueEv2pO1bEBvVCzy2UjB7moKADZFw4Rw9dRZZ4Mv+NFju7KMwSojc4GqXL0/0 xohx0/nlfYC/hGZK8hJJYWcyphmXi4420k1eLPRp8g33GpiMO1yvH4rlV603rWt5 oF5+eYFmIDr8712CEupoOGdkNCA5kooPiHd0Bx8ZxkVqiQzgtwV3wWdFt3iattm6 +a3dFNDb6GxJ+xbvGlBpjqo7zUnuAazytijwoI/gXt6em0I9rBQgfsDD7/p73Fp1 yt3AVTXjNyAUwOZ0xwGx =hCIn -----END PGP SIGNATURE----- --Pui5YDBJbCQuJ1A1-- From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 27 06:33:57 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8BF63737; Wed, 27 Feb 2013 06:33:57 +0000 (UTC) (envelope-from sales@hub.org) Received: from hub.org (hub.org [200.46.208.146]) by mx1.freebsd.org (Postfix) with ESMTP id 5A4B8CD9; Wed, 27 Feb 2013 06:33:57 +0000 (UTC) Received: from maia.hub.org (unknown [200.46.151.189]) by hub.org (Postfix) with ESMTP id C1C081BCD87; Wed, 27 Feb 2013 02:33:49 -0400 (AST) Received: from hub.org ([200.46.208.146]) by maia.hub.org (mx1.hub.org [200.46.151.189]) (amavisd-maia, port 10024) with ESMTP id 83205-05; Wed, 27 Feb 2013 06:33:49 +0000 (UTC) Received: from [192.168.0.52] (S01067cb21b2ff4ca.gv.shawcable.net [24.108.26.71]) by hub.org (Postfix) with ESMTPA id CE9CC1BCD86; Wed, 27 Feb 2013 02:33:48 -0400 (AST) From: Sales Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Odd issue with VirtualBox+9-STABLE+bce ... Date: Tue, 26 Feb 2013 22:33:47 -0800 Message-Id: <2A0FD48D-6CEF-4A70-B915-724315C48674@hub.org> To: "freebsd-net@freebsd.org" Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) Cc: "freebsd-emulation@freebsd.org" , "freebsd-stable@freebsd.org" X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 27 Feb 2013 06:33:57 -0000 I'm experiencing some odd issues with Virtualbox running on 9-STABLE. = where my network periodically disappears =85 sometimes, it comes back = again after a few minutes, other times I have to reboot the server =85 This last time, the error on the screen states: bce1: bce_pulse(): Warning: boot code thinks driver is absent! (bc_state = =3D 0x00004006) I had 20 regular 'jail' VPSs running on it before I tried VirtualBox on = it,and never had this problem, so figure it has to be something with = VirtualBox / kmod =85 ? Anyone experiencing any odd issues with VirtualBox and 9-STABLE? = Pointers / ideas? Thx =85 From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 27 15:04:30 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BBE3121C for ; Wed, 27 Feb 2013 15:04:30 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com [IPv6:2a00:1450:4010:c03::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 4D52A88B for ; Wed, 27 Feb 2013 15:04:30 +0000 (UTC) Received: by mail-la0-f46.google.com with SMTP id fq12so659178lab.5 for ; Wed, 27 Feb 2013 07:04:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=3OLnDwYn2Y3XDJJag58PiZ6feXDhZtsUSa2R5jUBNGI=; b=R0N4snWksbn4OXugyBC5YhJ11vHJfpJCkBuqk+p71sLKSo00nZs4rJMupwn3P1RTiQ RHTbuHSVcyzgSUQ3OxJ7IPA/YkNNtrDGWAouXJ+qjg8R9teFYGPT3QgtZN4jkN8C+bJQ gyCIYXzmx9qqREcd4/xkDw3kIxfkuIjJWYWd8DOWDqf3xmmfBuNBmvcCV7rvAlsHy3x8 Cv6kGI3jRCftfSg8eLIPsOBDDmeVbjiNr+l66RtdfknUyJhV8EEHgjrEWTuu9HxIitP5 qS3SuTndt8pBOgJaczMYtopFaK+UANGYHjwMLWk21us6f4564YUcZMr0QqNAXKtHvC4S gjHA== X-Received: by 10.152.133.130 with SMTP id pc2mr2242893lab.51.1361977468668; Wed, 27 Feb 2013 07:04:28 -0800 (PST) Received: from [192.168.1.128] (mau.donbass.com. [92.242.127.250]) by mx.google.com with ESMTPS id gm20sm2867032lab.7.2013.02.27.07.04.26 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Feb 2013 07:04:27 -0800 (PST) Message-ID: <512E2078.6010704@gmail.com> Date: Wed, 27 Feb 2013 17:04:24 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:19.0) Gecko/20100101 Firefox/19.0 SeaMonkey/2.16 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: one more glitch with vboxnet: wrong rcorder Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 27 Feb 2013 15:04:30 -0000 Hi all. Can we also add "BEFORE: DAEMON" to /usr/local/etc/rc.d/vboxnet? I'm working with isc-dhcpd and isc-dhcpd seem to prefer starting earlier then vboxnet omitting vboxnet0 from processing: rcorder /etc/rc.d/* /usr/local/etc/rc.d/* /etc/rc.d/rtadvd /etc/rc.d/rwho /etc/rc.d/timed /etc/rc.d/ugidfw /etc/rc.d/yppasswdd /usr/local/etc/rc.d/isc-dhcpd /usr/local/etc/rc.d/isc-dhcpd6 /usr/local/etc/rc.d/samba /usr/local/etc/rc.d/svnserve /etc/rc.d/LOGIN /usr/local/etc/rc.d/wiki /usr/local/etc/rc.d/viewvc /usr/local/etc/rc.d/vboxnet /usr/local/etc/rc.d/vboxheadless /usr/local/etc/rc.d/dbus -- Sphinx of black quartz, judge my vow. From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 27 18:37:02 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 37318C0D for ; Wed, 27 Feb 2013 18:37:02 +0000 (UTC) (envelope-from peter.o.mueller@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by mx1.freebsd.org (Postfix) with ESMTP id C21936FB for ; Wed, 27 Feb 2013 18:37:01 +0000 (UTC) Received: from mailout-de.gmx.net ([10.1.76.33]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MGUOc-1U6OAR1dVQ-00DGBt for ; Wed, 27 Feb 2013 19:36:55 +0100 Received: (qmail invoked by alias); 27 Feb 2013 18:36:55 -0000 Received: from p5B120C13.dip0.t-ipconnect.de (EHLO imacdg.fritz.box) [91.18.12.19] by mail.gmx.net (mp033) with SMTP; 27 Feb 2013 19:36:55 +0100 X-Authenticated: #5094812 X-Provags-ID: V01U2FsdGVkX1/bIUF7EnjbvbZhjOmjovghOAnsujenFUyPtXbdRP HT2raNjc3wFJTx From: Peter Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: qemu-devel @ FreeBSD Message-Id: Date: Wed, 27 Feb 2013 19:36:55 +0100 To: freebsd-emulation@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-Y-GMX-Trusted: 0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 27 Feb 2013 18:37:02 -0000 Hello, not sure if sending this mail to this address is correct =85 I installed qemu following https://wiki.freebsd.org/qemu Finally it worked and I can boot an existing image containing an = Debian/i383 system. The problem is that it is really really slow. On the same hardware when running Debian as host and this mentioned = Debian/i386 guest=20 is really fast. What could be the problem that the image on FreeBSD is so slow? Do you have any hints where I can start looking? Thanks, Peter --- Peter Mueller peter.o.mueller@gmx.de From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 1 11:11:47 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2B667FD4 for ; Fri, 1 Mar 2013 11:11:47 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-qe0-f41.google.com (mail-qe0-f41.google.com [209.85.128.41]) by mx1.freebsd.org (Postfix) with ESMTP id D1B1D7CB for ; Fri, 1 Mar 2013 11:11:46 +0000 (UTC) Received: by mail-qe0-f41.google.com with SMTP id 6so2217545qeb.14 for ; Fri, 01 Mar 2013 03:11:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=0lsH6eopV69wQEIGfF3UeHjWjUPzIZvNx47M7KfpHjg=; b=cSSiu2+825l/9DrYmhAPp4TiOVqWpINf1qmDoRT2DdPWgdqe2OHmGFcBqeypjrxyGF K2gQtwY0Us5yzi4hM8KiSaS95IRHfZsILJBOhrS8DjUWrOaLukJsmQWWyi0JHgzPQUhQ pxjFM6OAcLfqUl8hjrb9hT0zH/HCQlcHGFJgGp5p6QR/NqnysbpSGD6m4lsk6gDkFUr+ puy+vY4V5J75bHDrN42P9A86aqbQhOa5VyKiYFy2oz1DceGK7zxh6u1cmWJhrVOSsiR3 nDxH4N9ogrQK6bioFWC4GS/BeWzhjABb3zv2TDVTTYmJ6gHfLdoSooRH0wdstGEclBYZ hB4Q== MIME-Version: 1.0 X-Received: by 10.224.186.81 with SMTP id cr17mr18638388qab.99.1362136305740; Fri, 01 Mar 2013 03:11:45 -0800 (PST) Sender: tomek.cedro@gmail.com Received: by 10.49.51.40 with HTTP; Fri, 1 Mar 2013 03:11:45 -0800 (PST) Date: Fri, 1 Mar 2013 12:11:45 +0100 X-Google-Sender-Auth: xv0xSO_0JWLEqXaOGqKGQNGy8SA Message-ID: Subject: VirtualBox machine shutdown lasts increasingly long From: CeDeROM To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 01 Mar 2013 11:11:47 -0000 Hello :-) I have noted that with VBox 4.2.6 and FreeBSD 9.1-RELEASE AMD64 closing VirtualBox takes very long time, this time sometimes gets incresingly long, very often I am forced to kill the process. With previous versions when I wanted to shutdown the machine it did the shutdown momentairly. What is wrong with my VBox? :-) Best regards :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 1 23:08:35 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 35C1C35A for ; Fri, 1 Mar 2013 23:08:35 +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 EBDC71BF8 for ; Fri, 1 Mar 2013 23:08:34 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id B3F291E00079; Sat, 2 Mar 2013 00:08:33 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.5/8.14.4) with ESMTP id r21N7t8F067647; Sat, 2 Mar 2013 00:07:55 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.5/8.14.3/Submit) id r21N7srp067646; Sat, 2 Mar 2013 00:07:54 +0100 (CET) (envelope-from nox) Date: Sat, 2 Mar 2013 00:07:54 +0100 (CET) From: Juergen Lock Message-Id: <201303012307.r21N7srp067646@triton8.kn-bremen.de> To: peter.o.mueller@gmx.de Subject: Re: qemu-devel @ FreeBSD X-Newsgroups: local.list.freebsd.emulation In-Reply-To: Organization: Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 01 Mar 2013 23:08:35 -0000 In article you write: >Hello, Hi! > >not sure if sending this mail to this address is correct … > >I installed qemu following https://wiki.freebsd.org/qemu > >Finally it worked and I can boot an existing image containing an Debian/i383 system. > >The problem is that it is really really slow. > >On the same hardware when running Debian as host and this mentioned Debian/i386 guest >is really fast. > >What could be the problem that the image on FreeBSD is so slow? > >Do you have any hints where I can start looking? The kvm port was never finished so you are most likely using jit which is slow. If you are looking for reasonably fast x86-on-x86 virtualization you are better off using emulators/virtualbox-ose: https://wiki.freebsd.org/VirtualBox HTH, Juergen PS: Or bhyve but that so far is only in -current and can't run other guests than FreeBSD yet: http://bhyve.org/