From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 28 00:36:25 2010 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 CABB9106566B for ; Sun, 28 Mar 2010 00:36:25 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-relay3.uni-muenster.de (ZIVM-RELAY3.UNI-MUENSTER.DE [128.176.192.19]) by mx1.freebsd.org (Postfix) with ESMTP id 609C98FC0A for ; Sun, 28 Mar 2010 00:36:24 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.51,320,1267398000"; d="scan'208";a="29528479" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER04.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay3.uni-muenster.de with ESMTP; 28 Mar 2010 01:36:16 +0100 Received: by ZIVMAILUSER04.UNI-MUENSTER.DE (Postfix, from userid 149459) id 8A5A91B07C1; Sun, 28 Mar 2010 01:36:16 +0100 (CET) Date: Sun, 28 Mar 2010 01:36:16 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Jimmie James Subject: Re: linux-f10-pango 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, 28 Mar 2010 00:36:25 -0000 the last version built as rpm for fedora 10 is 1.22.3. more recent versions of pango are available as rpms, however only for fedora > 10. [1] they cannot be used however since there's no emulators/linux_base-f[11|12] port. there's no such port yet, because the linux emulation layer isn't mature enough to offer complete linux 2.6.16 compatibility. it's still missing quite a few syscalls, ipcs, etc. [2] [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/136321 [2] http://wiki.freebsd.org/linux-kernel -- Alexander Best From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 28 01:10:50 2010 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 F3D3A1065675 for ; Sun, 28 Mar 2010 01:10:49 +0000 (UTC) (envelope-from rnejdl@ringofsaturn.com) Received: from tethys.ringofsaturn.com (tethys.ringofsaturn.com [71.252.219.43]) by mx1.freebsd.org (Postfix) with ESMTP id AA9248FC21 for ; Sun, 28 Mar 2010 01:10:49 +0000 (UTC) Received: from ASSP.nospam (tethys.ringofsaturn.com [71.252.219.43]) (authenticated bits=0) by tethys.ringofsaturn.com (8.14.4/8.14.4) with ESMTP id o2S1Ad45036086; Sat, 27 Mar 2010 20:10:40 -0500 (CDT) (envelope-from rnejdl@ringofsaturn.com) Received: from mail.ringofsaturn.com ([71.252.219.43] helo=mail.ringofsaturn.com) with IPv4:25 by ASSP.nospam; 27 Mar 2010 20:10:34 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Sat, 27 Mar 2010 20:10:34 -0500 From: Rusty Nejdl To: Bernhard Froehlich In-Reply-To: <9eef43b1f473e1b6c10fee14ac3f4733@bluelife.at> References: <9eef43b1f473e1b6c10fee14ac3f4733@bluelife.at> Message-ID: X-Sender: rnejdl@ringofsaturn.com User-Agent: RoundCube Webmail/0.3-trunk Cc: freebsd-emulation@freebsd.org Subject: Re: Call for testers: VirtualBox 3.1.4 update 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, 28 Mar 2010 01:10:50 -0000 On Fri, 26 Mar 2010 09:53:05 +0100, Bernhard Froehlich wrote: > On Sat, 13 Mar 2010 21:02:43 -0600, Rusty Nejdl > wrote: >> On Fri, 12 Mar 2010 11:21:14 +0100, Bernhard Froehlich > >> wrote: >>> Grias di, >>> >>> we are preparing the VirtualBox 3.1.4 update to fix the vtophys > problems >>> with the current port on 9-CURRENT and STABLE kernels and need some >>> feedback for this. Many thanks to all developers and testers that > helped >>> to track this issue down and Alexander Eichner for all the work and >>> fixing it. >>> >> >> Bernhard, >> >> As with the previous version and this version, I continue to have > complete >> system freezes when using these machines. The freezes seem to occur > during >> heavy disk usage (for example updating packages on Ubuntu). I am > running: >> >> FreeBSD tethys.ringofsaturn.com 8.0-STABLE FreeBSD 8.0-STABLE #0: Fri > Mar >> 12 10:39:31 CST 2010 >> root@tethys.ringofsaturn.com:/usr/obj/usr/src/sys/SATURN amd64 >> >> Kernel is from 2 days ago. I am using the NVIDIA Video driver. >> >> There is absolutely nothing in the logs anywhere when the freeze happens >> and I have to hit the power button. >> >> Is anyone else seeing this and any suggestions on how to debug? > > Sorry for the long delay. > > Could you try to use the nv driver? Because there are some known > instabilities with the nvidia driver and vbox. Bernard, I tested today with the latest NVIDIA for x64 and it ran for a couple of hours without a freeze. But, it still froze. I'm running 4 VM's now for a couple of hours with NV driver without issue. It sounds like I need to report this up to Zander with Nvidia unless you have any other suggestions. Sincerely, Rusty Nejdl From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 28 01:35:28 2010 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 17080106566C for ; Sun, 28 Mar 2010 01:35:28 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-yw0-f171.google.com (mail-yw0-f171.google.com [209.85.211.171]) by mx1.freebsd.org (Postfix) with ESMTP id BB45D8FC13 for ; Sun, 28 Mar 2010 01:35:27 +0000 (UTC) Received: by ywh1 with SMTP id 1so4619671ywh.3 for ; Sat, 27 Mar 2010 18:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=pyb2fs99Ul6y66tXlMQKCB3aotybmjVMEmuL2nHhPns=; b=vzy5VN3DEZUdz+YFzL5tEb6xMcOvK5vtjm1L2kCobu3q5hvz14T1gxNJguruvwWvk5 B8TgaOpiJJnvtJPp044on1rnG4IUvOjZzLFpkQLGDX1Av11ywsR3vsKxw3tGnC17EmNX 4CbwFGa4w/xtUhwwT9osI8YDAujjl8IY1ra8Y= 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=vuvOvbajg9rsJ98xY3Tchy9yWCaIsy6wn3j/weLFNobTa16b0kwcA9gzGQTzDfm0lu gmmGd8mW22Vq8tw7UHakYend7UM7TdM75UmmFFtNtymA5b9SBcYjj85MgQQulE6RccNo SY0pOgvVeUqnyB3T+KrhRtzNtf3akVkRSJ1ko= MIME-Version: 1.0 Received: by 10.231.178.224 with HTTP; Sat, 27 Mar 2010 18:35:26 -0700 (PDT) In-Reply-To: References: <9eef43b1f473e1b6c10fee14ac3f4733@bluelife.at> Date: Sun, 28 Mar 2010 01:35:26 +0000 Received: by 10.150.80.4 with SMTP id d4mr3235305ybb.127.1269740126750; Sat, 27 Mar 2010 18:35:26 -0700 (PDT) Message-ID: <179b97fb1003271835i2f41b7e8yaa7ba337e5c662db@mail.gmail.com> From: Brandon Gooch To: Rusty Nejdl Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-emulation@freebsd.org Subject: Re: Call for testers: VirtualBox 3.1.4 update 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, 28 Mar 2010 01:35:28 -0000 On Sun, Mar 28, 2010 at 1:10 AM, Rusty Nejdl wrot= e: > On Fri, 26 Mar 2010 09:53:05 +0100, Bernhard Froehlich > wrote: >> On Sat, 13 Mar 2010 21:02:43 -0600, Rusty Nejdl > >> wrote: >>> On Fri, 12 Mar 2010 11:21:14 +0100, Bernhard Froehlich >> >>> wrote: >>>> Grias di, >>>> >>>> we are preparing the VirtualBox 3.1.4 update to fix the vtophys >> problems >>>> with the current port on 9-CURRENT and STABLE kernels and need some >>>> feedback for this. Many thanks to all developers and testers that >> helped >>>> to track this issue down and Alexander Eichner for all the work and >>>> fixing it. >>>> >>> >>> Bernhard, >>> >>> As with the previous version and this version, I continue to have >> complete >>> system freezes when using these machines. =A0The freezes seem to occur >> during >>> heavy disk usage (for example updating packages on Ubuntu). =A0I am >> running: >>> >>> FreeBSD tethys.ringofsaturn.com 8.0-STABLE FreeBSD 8.0-STABLE #0: Fri >> Mar >>> 12 10:39:31 CST 2010 >>> root@tethys.ringofsaturn.com:/usr/obj/usr/src/sys/SATURN =A0amd64 >>> >>> Kernel is from 2 days ago. =A0I am using the NVIDIA Video driver. >>> >>> There is absolutely nothing in the logs anywhere when the freeze > happens >>> and I have to hit the power button. >>> >>> Is anyone else seeing this and any suggestions on how to debug? >> >> Sorry for the long delay. >> >> Could you try to use the nv driver? Because there are some known >> instabilities with the nvidia driver and vbox. > > Bernard, > > I tested today with the latest NVIDIA for x64 and it ran for a couple of > hours without a freeze. =A0But, it still froze. =A0 I'm running 4 VM's no= w for > a couple of hours with NV driver without issue. =A0It sounds like I need = to > report this up to Zander with Nvidia unless you have any other suggestion= s. > > Sincerely, > Rusty Nejdl > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.o= rg" > Hey man, would it be possible for you to enable debugging options on your machine, start your VMs running, then switch to ttyv0, and let it run for while? This is the only way I can get a clean crash dump and generate any data -- I've never been able to "cleanly" crash my system running Xorg (it usually freezes). FYI, I'm running multiple VMs (Windows XP, 7), and I've experienced "freezes" running multiple VMs since using VirtualBox (which despite the lockups, I'm SOOOOO thankful to have on FreeBSD -- thanks again to all the VBox devs!!!!)... -Brandon From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 29 11:06:53 2010 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 76CA61065702 for ; Mon, 29 Mar 2010 11:06:53 +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 4A1E38FC1E for ; Mon, 29 Mar 2010 11:06:53 +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 o2TB6rWR057950 for ; Mon, 29 Mar 2010 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2TB6qnH057948 for freebsd-emulation@FreeBSD.org; Mon, 29 Mar 2010 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Mar 2010 11:06:52 GMT Message-Id: <201003291106.o2TB6qnH057948@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, 29 Mar 2010 11:06:53 -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/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 kern/144194 emulation [linux] [patch] linuxulator: 2 exec bug fixes o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o kern/142082 emulation [patch] [panic] linuxulator: getppid: use after free o kern/141439 emulation [linux] [patch] linux_exit_group kills group leader o kern/140156 emulation [linux] cdparanoia fails to read drive data o kern/139423 emulation [parallels] Networking does not work on amd64 guest on o 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/136229 emulation [linux] emulators/linux_base-f10: certain linux apps l o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage o 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/73777 emulation [linux] [patch] linux emulation: root dir special hand 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/29698 emulation [linux] [patch] linux ipcs doesn'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 24 problems total. From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 11:02:25 2010 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 DA3CE106566B for ; Tue, 30 Mar 2010 11:02:25 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail.itac.at (mail.itac.at [91.205.172.9]) by mx1.freebsd.org (Postfix) with ESMTP id 5DF1D8FC22 for ; Tue, 30 Mar 2010 11:02:25 +0000 (UTC) Received: from [91.205.172.21] (helo=webmail.bluelife.at) by mail.itac.at with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1NwZDD-00042n-H7; Tue, 30 Mar 2010 13:02:23 +0200 MIME-Version: 1.0 Date: Tue, 30 Mar 2010 13:02:24 +0200 From: Bernhard Froehlich To: Mario Lobo In-Reply-To: <201003271749.05978.lobo@bsd.com.br> References: <201003271749.05978.lobo@bsd.com.br> Message-ID: <942485ff13f3062b58f7cdb3103e6536@bluelife.at> X-Sender: decke@bluelife.at User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "mail.itac.at", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Sat, 27 Mar 2010 17:49:05 +0000, Mario Lobo wrote: > Hi; > > The port compiles without errors but when run, it issues: > > VirtualBox: supR3HardenedMainGetTrustedMain: > dlopen("/usr/local/lib/virtualbox/VirtualBox.so", ) failed: > /usr/local/lib/virtualbox/VirtualBox.so: Undefined symbol > "XineramaIsActive" > > LibXinerama is present on the system since always. > > This started happening when moved from 3.1.51r27187 to 3.1.51r27657 [...] Content analysis details: (2.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP 3.4 FH_DATE_PAST_20XX The date is grossly in the future. 2.4 DNS_FROM_OPENWHOIS RBL: Envelope sender listed in bl.open-whois.org. -1.9 AWL AWL: From: address is in the auto white-list Cc: freebsd-emulation@freebsd.org Subject: Re: virtualbox-ose-devel port problem 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, 30 Mar 2010 11:02:25 -0000 On Sat, 27 Mar 2010 17:49:05 +0000, Mario Lobo wrote: > Hi; > > The port compiles without errors but when run, it issues: > > VirtualBox: supR3HardenedMainGetTrustedMain: > dlopen("/usr/local/lib/virtualbox/VirtualBox.so",) failed: > /usr/local/lib/virtualbox/VirtualBox.so: Undefined symbol > "XineramaIsActive" > > LibXinerama is present on the system since always. > > This started happening when moved from 3.1.51r27187 to 3.1.51r27657 That very much looks like a breakage in upstream code because they recently added a few xinerama specific changes and a configure check for xinerama. We will as usually update the virtualbox-ose-devel ports and then it will probably already be fixed. > virtualbox-ose 3.1.6 does not have this problem. Why don't I stick to it? > because my MacOSx doesn't run on it. Which brigsup one question: > > Why the 3.1.5 devel version has the Mac OS option and 3.1.6 doesn't? You probably meant 3.1.51 vs 3.1.6. I cannot give you any details on this because MacOSX is not supported as a Guest in VirtualBox at all. It's not even mentioned on the wiki page because you cannot install any non modified MacOSX in VirtualBox. So if you found a way to make it work that is great but don't expect any support for it. -- Bernhard Fröhlich http://www.bluelife.at/ From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 18:04:29 2010 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 84A6B1065670 for ; Tue, 30 Mar 2010 18:04:29 +0000 (UTC) (envelope-from blauwirbel@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 59A078FC18 for ; Tue, 30 Mar 2010 18:04:29 +0000 (UTC) Received: by pvc7 with SMTP id 7so5247680pvc.13 for ; Tue, 30 Mar 2010 11:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=uGAm+Y31zrTkQoBcyiAOS1zB7G6IpAlnTZJD6xFBcUE=; b=vFq6fLitlgNg2cWN2x1UvCpnNLveVxuRBvXskYvsN5rLO2+A8yscb5tJgxMMcuRpJQ 2SDmOAhOE+JFdUpSNKLfzl3IIM8wa+zKBHhkNdNa8+50jQZwstm4Uk9DVigCOi18D/el OW2oPjH2ybJC1ks4QqxGX3TxPdBQ9CwqgicLE= 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=c7EnhawF+FxjCm4dwizcx6KKeXuBmCLhPs0OGb9OXdaHtAWJGXNA0BreG1eOD4/ENM S9eyiPD51EVZocy02aL9iB2VJO/YDVz6IYaN65wbKsJbU5SSdO7vMISSexOOtR5Rggpi w4hq27CM5ruvus/Ky5b/0uAYiAiZYKLYt6/HE= MIME-Version: 1.0 Received: by 10.140.178.12 with HTTP; Tue, 30 Mar 2010 11:04:28 -0700 (PDT) In-Reply-To: <20100325204423.GA46954@triton8.kn-bremen.de> References: <20100325204423.GA46954@triton8.kn-bremen.de> Date: Tue, 30 Mar 2010 21:04:28 +0300 Received: by 10.141.213.39 with SMTP id p39mr2608401rvq.19.1269972268727; Tue, 30 Mar 2010 11:04:28 -0700 (PDT) Message-ID: From: Blue Swirl To: Juergen Lock Content-Type: text/plain; charset=UTF-8 Cc: freebsd-emulation@freebsd.org, Toni , qemu-devel@nongnu.org, Andreas Tobler Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 30 Mar 2010 18:04:29 -0000 On 3/25/10, Juergen Lock wrote: > Hi! > > Now that qemu git head works again (thanx Aurelien! :) I've finished > the FreeBSD qemu-devel port update patch/shar that made me uncover > the bug: > http://people.freebsd.org/~nox/qemu/qemu-devel-20100323.patch > resp. > http://people.freebsd.org/~nox/qemu/qemu-devel-20100323.shar > > This also adds a few misc fixes (that I'll submit on the qemu list > seperately), I have... > > . Fixed the FreeBSD executable path detection to work without /proc > mounted (it usually isn't on FreeBSD), so you now no longer have to > pass the path to the pc-bios dir with -L if you run qemu out of the > build dir when another version is installed, like, > work/qemu-snapshot-20100323_20/i386-softmmu/qemu ... > > (files/patch-vl.c in the shar/patch) > > . Fixed some more bsd-user bugs so all of i386-bsd-user, x86_64-bsd-user, > and sparc64-bsd-user now run for me again on FreeBSD stable/8 amd64. > (I didn't test sparc-bsd-user as I only tried -bsd freebsd and FreeBSD > doesn't run on 32bit sparc.) - Yes bsd-user still needs more work but > at least simple exectuables run. > > (files/patch-bsd-user-mmap.c, files/patch-exec.c) > > . Fixed the bsd-user host page protection code for FreeBSD hosts > (using kinfo_getvmmap(3) on FeeBSD >= 7.x and /compat/linux/proc > on older FreeBSD.) > > (files/patch-bsd-user-linproc) > > . Fixed some compilation warnings and a missing #include. > > (files/patch-qemu-char.c, files/patch-qemu-timer.c) > Thanks, applied all except exec.c one. From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 19:23:57 2010 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 D8B2D106566C for ; Tue, 30 Mar 2010 19:23:57 +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 641748FC0C for ; Tue, 30 Mar 2010 19:23:57 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 9E5021E00172; Tue, 30 Mar 2010 21:23:55 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o2UJGU7N096148; Tue, 30 Mar 2010 21:16:30 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o2UJGTTS096147; Tue, 30 Mar 2010 21:16:30 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 30 Mar 2010 21:16:29 +0200 To: Blue Swirl Message-ID: <20100330191629.GA95521@triton8.kn-bremen.de> References: <20100325204423.GA46954@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.20 (2009-06-14) Cc: qemu-devel@nongnu.org, freebsd-emulation@freebsd.org, Toni , Juergen Lock , Andreas Tobler Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 30 Mar 2010 19:23:58 -0000 On Tue, Mar 30, 2010 at 09:04:28PM +0300, Blue Swirl wrote: > On 3/25/10, Juergen Lock wrote: > > Hi! > > > > Now that qemu git head works again (thanx Aurelien! :) I've finished > > the FreeBSD qemu-devel port update patch/shar that made me uncover > > the bug: > > http://people.freebsd.org/~nox/qemu/qemu-devel-20100323.patch > > resp. > > http://people.freebsd.org/~nox/qemu/qemu-devel-20100323.shar > > > > This also adds a few misc fixes (that I'll submit on the qemu list > > seperately), I have... > > > > . Fixed the FreeBSD executable path detection to work without /proc > > mounted (it usually isn't on FreeBSD), so you now no longer have to > > pass the path to the pc-bios dir with -L if you run qemu out of the > > build dir when another version is installed, like, > > work/qemu-snapshot-20100323_20/i386-softmmu/qemu ... > > > > (files/patch-vl.c in the shar/patch) > > > > . Fixed some more bsd-user bugs so all of i386-bsd-user, x86_64-bsd-user, > > and sparc64-bsd-user now run for me again on FreeBSD stable/8 amd64. > > (I didn't test sparc-bsd-user as I only tried -bsd freebsd and FreeBSD > > doesn't run on 32bit sparc.) - Yes bsd-user still needs more work but > > at least simple exectuables run. > > > > (files/patch-bsd-user-mmap.c, files/patch-exec.c) > > > > . Fixed the bsd-user host page protection code for FreeBSD hosts > > (using kinfo_getvmmap(3) on FeeBSD >= 7.x and /compat/linux/proc > > on older FreeBSD.) > > > > (files/patch-bsd-user-linproc) > > > > . Fixed some compilation warnings and a missing #include. > > > > (files/patch-qemu-char.c, files/patch-qemu-timer.c) > > > > Thanks, applied all except exec.c one. Oh, is there something wrong with it? You mean this one, right? Subject: [PATCH] Avoid page_set_flags() assert in qemu-user host page protection code Message-ID: <20100325211421.GA52572@triton8.kn-bremen.de> [...] --- a/exec.c +++ b/exec.c @@ -293,10 +293,13 @@ static void page_init(void) if (h2g_valid(endaddr)) { endaddr = h2g(endaddr); + page_set_flags(startaddr, endaddr, PAGE_RESERVED); } else { +#if TARGET_ABI_BITS <= L1_MAP_ADDR_SPACE_BITS endaddr = ~0ul; + page_set_flags(startaddr, endaddr, PAGE_RESERVED); +#endif } - page_set_flags(startaddr, endaddr, PAGE_RESERVED); } } while (!feof(f)); I first tried to replace the endaddr in the !h2g_valid(endaddr) case with ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 if TARGET_ABI_BITS > L1_MAP_ADDR_SPACE_BITS (which comes from the condition of the assert in page_set_flags() that was triggered on the ~0ul value), but that caused the qemu process to grow into swap and made the box usuable when that code was reached and I had to kill qemu. (The box has 8 GB RAM.) And so I thought just leaving that page range unprotected if only the start address is valid was the lesser evil... ..and thanx for committing the other ones, :) Juergen From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 19:54:04 2010 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 150FE106566B for ; Tue, 30 Mar 2010 19:54:04 +0000 (UTC) (envelope-from blauwirbel@gmail.com) Received: from mail-pz0-f180.google.com (mail-pz0-f180.google.com [209.85.222.180]) by mx1.freebsd.org (Postfix) with ESMTP id DB1548FC0A for ; Tue, 30 Mar 2010 19:54:03 +0000 (UTC) Received: by pzk10 with SMTP id 10so940388pzk.28 for ; Tue, 30 Mar 2010 12:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=IlxS9ZG6++kf8hxA6Sm/4a1hUxGOvs3pUkVZyxo2zoU=; b=Th01Zu/SN7l+NLkN/Mgpl8t6GxdBOgeTwJ149XfGCuaBjXJhzjZ1vKitW5jyQZeY54 BtG9OItU6b/CdKHJnqwqncLz6FzWJaSDP/eeNPij33eWKMuadAzGuM86fG58K0OTjGnb ONIIm1ofkcvo7kG1t3v96qIxYPYNZY20o4Xwo= 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=xvtW/77H3JCucXLY0v2ciJoE3fRCC54w2IVPPryOPph1ZJsIRDdve+oMUKs8+laY+J kqBtYyPj6IdmN+pczB92opL3ij88OBa0ReH/RIU+WJyqvYzhV/siQiHxIFz4fpxZyvWa 0nDw6UsyvMMNAQWByw5Q8IXo36trCIUFdJA+c= MIME-Version: 1.0 Received: by 10.140.178.12 with HTTP; Tue, 30 Mar 2010 12:54:03 -0700 (PDT) In-Reply-To: <20100330191629.GA95521@triton8.kn-bremen.de> References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330191629.GA95521@triton8.kn-bremen.de> Date: Tue, 30 Mar 2010 22:54:03 +0300 Received: by 10.141.108.2 with SMTP id k2mr1785222rvm.125.1269978843215; Tue, 30 Mar 2010 12:54:03 -0700 (PDT) Message-ID: From: Blue Swirl To: Juergen Lock Content-Type: text/plain; charset=UTF-8 Cc: freebsd-emulation@freebsd.org, Toni , qemu-devel@nongnu.org, Andreas Tobler Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 30 Mar 2010 19:54:04 -0000 On 3/30/10, Juergen Lock wrote: > On Tue, Mar 30, 2010 at 09:04:28PM +0300, Blue Swirl wrote: > > On 3/25/10, Juergen Lock wrote: > > > Hi! > > > > > > Now that qemu git head works again (thanx Aurelien! :) I've finished > > > the FreeBSD qemu-devel port update patch/shar that made me uncover > > > the bug: > > > http://people.freebsd.org/~nox/qemu/qemu-devel-20100323.patch > > > resp. > > > http://people.freebsd.org/~nox/qemu/qemu-devel-20100323.shar > > > > > > This also adds a few misc fixes (that I'll submit on the qemu list > > > seperately), I have... > > > > > > . Fixed the FreeBSD executable path detection to work without /proc > > > mounted (it usually isn't on FreeBSD), so you now no longer have to > > > pass the path to the pc-bios dir with -L if you run qemu out of the > > > build dir when another version is installed, like, > > > work/qemu-snapshot-20100323_20/i386-softmmu/qemu ... > > > > > > (files/patch-vl.c in the shar/patch) > > > > > > . Fixed some more bsd-user bugs so all of i386-bsd-user, x86_64-bsd-user, > > > and sparc64-bsd-user now run for me again on FreeBSD stable/8 amd64. > > > (I didn't test sparc-bsd-user as I only tried -bsd freebsd and FreeBSD > > > doesn't run on 32bit sparc.) - Yes bsd-user still needs more work but > > > at least simple exectuables run. > > > > > > (files/patch-bsd-user-mmap.c, files/patch-exec.c) > > > > > > . Fixed the bsd-user host page protection code for FreeBSD hosts > > > (using kinfo_getvmmap(3) on FeeBSD >= 7.x and /compat/linux/proc > > > on older FreeBSD.) > > > > > > (files/patch-bsd-user-linproc) > > > > > > . Fixed some compilation warnings and a missing #include. > > > > > > (files/patch-qemu-char.c, files/patch-qemu-timer.c) > > > > > > > Thanks, applied all except exec.c one. > > > Oh, is there something wrong with it? You mean this one, right? > > Subject: [PATCH] Avoid page_set_flags() assert in qemu-user host page > protection code > Message-ID: <20100325211421.GA52572@triton8.kn-bremen.de> > [...] > > --- a/exec.c > +++ b/exec.c > @@ -293,10 +293,13 @@ static void page_init(void) > > if (h2g_valid(endaddr)) { > endaddr = h2g(endaddr); > + page_set_flags(startaddr, endaddr, PAGE_RESERVED); > } else { > +#if TARGET_ABI_BITS <= L1_MAP_ADDR_SPACE_BITS > endaddr = ~0ul; > + page_set_flags(startaddr, endaddr, PAGE_RESERVED); > +#endif > } > - page_set_flags(startaddr, endaddr, PAGE_RESERVED); > } > } while (!feof(f)); > > I first tried to replace the endaddr in the !h2g_valid(endaddr) case with > ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 > if TARGET_ABI_BITS > L1_MAP_ADDR_SPACE_BITS (which comes from the condition > of the assert in page_set_flags() that was triggered on the ~0ul value), > but that caused the qemu process to grow into swap and made the box > usuable when that code was reached and I had to kill qemu. (The box has > 8 GB RAM.) And so I thought just leaving that page range unprotected > if only the start address is valid was the lesser evil... I was thinking something like (abi_ulong)-1 but maybe that isn't any more correct. From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 19:58:24 2010 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 92B01106566B for ; Tue, 30 Mar 2010 19:58:24 +0000 (UTC) (envelope-from rth@twiddle.net) Received: from are.twiddle.net (are.twiddle.net [75.149.56.221]) by mx1.freebsd.org (Postfix) with ESMTP id 793108FC1C for ; Tue, 30 Mar 2010 19:58:24 +0000 (UTC) Received: from anchor.twiddle.home (anchor.twiddle.home [172.31.0.4]) by are.twiddle.net (Postfix) with ESMTPSA id E3C32431; Tue, 30 Mar 2010 12:42:03 -0700 (PDT) Message-ID: <4BB2540B.90704@twiddle.net> Date: Tue, 30 Mar 2010 12:42:03 -0700 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3 MIME-Version: 1.0 To: Juergen Lock References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330191629.GA95521@triton8.kn-bremen.de> In-Reply-To: <20100330191629.GA95521@triton8.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Blue Swirl , freebsd-emulation@freebsd.org, Andreas Tobler , qemu-devel@nongnu.org, Toni Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 30 Mar 2010 19:58:24 -0000 On 03/30/2010 12:16 PM, Juergen Lock wrote: > I first tried to replace the endaddr in the !h2g_valid(endaddr) case with > ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 > if TARGET_ABI_BITS > L1_MAP_ADDR_SPACE_BITS (which comes from the condition > of the assert in page_set_flags() that was triggered on the ~0ul value), > but that caused the qemu process to grow into swap and made the box > usuable when that code was reached and I had to kill qemu. (The box has > 8 GB RAM.) And so I thought just leaving that page range unprotected > if only the start address is valid was the lesser evil... What's are the real arguments to the page_set_flags that causes things to go into swap? I can't imagine the range really being so large that it causes massive allocation within that function... r~ From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 20:11:33 2010 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 8F7F2106564A for ; Tue, 30 Mar 2010 20:11:33 +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 4D3458FC08 for ; Tue, 30 Mar 2010 20:11:33 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 575681E00172; Tue, 30 Mar 2010 22:11:32 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o2UK9m1q002283; Tue, 30 Mar 2010 22:09:48 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o2UK9lAv002282; Tue, 30 Mar 2010 22:09:47 +0200 (CEST) (envelope-from nox) Date: Tue, 30 Mar 2010 22:09:47 +0200 (CEST) From: Juergen Lock Message-Id: <201003302009.o2UK9lAv002282@triton8.kn-bremen.de> To: rth@twiddle.net X-Newsgroups: local.list.qemu In-Reply-To: <4BB2540B.90704@twiddle.net> References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330191629.GA95521@triton8.kn-bremen.de> Organization: home Cc: Blue Swirl , freebsd-emulation@freebsd.org, Toni , qemu-devel@nongnu.org, Andreas Tobler Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 30 Mar 2010 20:11:33 -0000 In article <4BB2540B.90704@twiddle.net> you write: >On 03/30/2010 12:16 PM, Juergen Lock wrote: >> I first tried to replace the endaddr in the !h2g_valid(endaddr) case with >> ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 >> if TARGET_ABI_BITS > L1_MAP_ADDR_SPACE_BITS (which comes from the condition >> of the assert in page_set_flags() that was triggered on the ~0ul value), >> but that caused the qemu process to grow into swap and made the box >> usuable when that code was reached and I had to kill qemu. (The box has >> 8 GB RAM.) And so I thought just leaving that page range unprotected >> if only the start address is valid was the lesser evil... > >What's are the real arguments to the page_set_flags that causes things >to go into swap? I can't imagine the range really being so large that >it causes massive allocation within that function... Oh sorry if that was not clear, things go into swap if I _replace_ the endaddr ~0ul (which caused the assert) with the max value the assert still tolerates i.e. ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 which in this case seems to be 0x7fffffffffff: #3 0x0000000060012731 in page_set_flags (start=140737488224256, end=18446744073709551615, flags=32) at /usr/ports/emulators/qemu-devel-20100323a/work/qemu-snapshot-20100323_20/exec.c:2426 2426 assert(end < ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS)); (gdb) i li 2426 Line 2426 of "/usr/ports/emulators/qemu-devel-20100323a/work/qemu-snapshot-20100323_20/exec.c" starts at address 0x60012662 and ends at 0x60012675 . (gdb) disassemble 0x60012662 0x60012675 Dump of assembler code from 0x60012662 to 0x60012675: 0x0000000060012662 : mov $0x7fffffffffff,%rax ^^^^^^^^^^^^^^ 0x000000006001266c : cmp %rax,%rsi 0x000000006001266f : ja 0x60012718 End of assembler dump. (gdb) q Cheers, Juergen From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 20:18:29 2010 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 CEBD71065672 for ; Tue, 30 Mar 2010 20:18:29 +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 5F2998FC17 for ; Tue, 30 Mar 2010 20:18:29 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 5B65E1E0016A; Tue, 30 Mar 2010 22:18:28 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o2UKHZMT002706; Tue, 30 Mar 2010 22:17:35 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o2UKHY7h002705; Tue, 30 Mar 2010 22:17:34 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 30 Mar 2010 22:17:34 +0200 To: Blue Swirl Message-ID: <20100330201734.GA2678@triton8.kn-bremen.de> References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330191629.GA95521@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.20 (2009-06-14) Cc: qemu-devel@nongnu.org, freebsd-emulation@freebsd.org, Toni , Juergen Lock , Andreas Tobler Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 30 Mar 2010 20:18:29 -0000 On Tue, Mar 30, 2010 at 10:54:03PM +0300, Blue Swirl wrote: > On 3/30/10, Juergen Lock wrote: > > On Tue, Mar 30, 2010 at 09:04:28PM +0300, Blue Swirl wrote: > > > On 3/25/10, Juergen Lock wrote: > > > > Hi! > > > > > > > > Now that qemu git head works again (thanx Aurelien! :) I've finished > > > > the FreeBSD qemu-devel port update patch/shar that made me uncover > > > > the bug: > > > > http://people.freebsd.org/~nox/qemu/qemu-devel-20100323.patch > > > > resp. > > > > http://people.freebsd.org/~nox/qemu/qemu-devel-20100323.shar > > > > > > > > This also adds a few misc fixes (that I'll submit on the qemu list > > > > seperately), I have... > > > > > > > > . Fixed the FreeBSD executable path detection to work without /proc > > > > mounted (it usually isn't on FreeBSD), so you now no longer have to > > > > pass the path to the pc-bios dir with -L if you run qemu out of the > > > > build dir when another version is installed, like, > > > > work/qemu-snapshot-20100323_20/i386-softmmu/qemu ... > > > > > > > > (files/patch-vl.c in the shar/patch) > > > > > > > > . Fixed some more bsd-user bugs so all of i386-bsd-user, x86_64-bsd-user, > > > > and sparc64-bsd-user now run for me again on FreeBSD stable/8 amd64. > > > > (I didn't test sparc-bsd-user as I only tried -bsd freebsd and FreeBSD > > > > doesn't run on 32bit sparc.) - Yes bsd-user still needs more work but > > > > at least simple exectuables run. > > > > > > > > (files/patch-bsd-user-mmap.c, files/patch-exec.c) > > > > > > > > . Fixed the bsd-user host page protection code for FreeBSD hosts > > > > (using kinfo_getvmmap(3) on FeeBSD >= 7.x and /compat/linux/proc > > > > on older FreeBSD.) > > > > > > > > (files/patch-bsd-user-linproc) > > > > > > > > . Fixed some compilation warnings and a missing #include. > > > > > > > > (files/patch-qemu-char.c, files/patch-qemu-timer.c) > > > > > > > > > > Thanks, applied all except exec.c one. > > > > > > Oh, is there something wrong with it? You mean this one, right? > > > > Subject: [PATCH] Avoid page_set_flags() assert in qemu-user host page > > protection code > > Message-ID: <20100325211421.GA52572@triton8.kn-bremen.de> > > [...] > > > > --- a/exec.c > > +++ b/exec.c > > @@ -293,10 +293,13 @@ static void page_init(void) > > > > if (h2g_valid(endaddr)) { > > endaddr = h2g(endaddr); > > + page_set_flags(startaddr, endaddr, PAGE_RESERVED); > > } else { > > +#if TARGET_ABI_BITS <= L1_MAP_ADDR_SPACE_BITS > > endaddr = ~0ul; > > + page_set_flags(startaddr, endaddr, PAGE_RESERVED); > > +#endif > > } > > - page_set_flags(startaddr, endaddr, PAGE_RESERVED); > > } > > } while (!feof(f)); > > > > I first tried to replace the endaddr in the !h2g_valid(endaddr) case with > > ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 > > if TARGET_ABI_BITS > L1_MAP_ADDR_SPACE_BITS (which comes from the condition > > of the assert in page_set_flags() that was triggered on the ~0ul value), > > but that caused the qemu process to grow into swap and made the box > > usuable when that code was reached and I had to kill qemu. (The box has > > 8 GB RAM.) And so I thought just leaving that page range unprotected > > if only the start address is valid was the lesser evil... > > I was thinking something like (abi_ulong)-1 but maybe that isn't any > more correct. Oh this is happening with x86_64-bsd-user on the same arch so I'd say (abi_ulong)-1 would be the same as ~0ul (and still cause the assert.) Cheers, Juergen From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 20:33:16 2010 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 5155D106567A for ; Tue, 30 Mar 2010 20:33:16 +0000 (UTC) (envelope-from rth@twiddle.net) Received: from are.twiddle.net (are.twiddle.net [75.149.56.221]) by mx1.freebsd.org (Postfix) with ESMTP id 3783F8FC0A for ; Tue, 30 Mar 2010 20:33:15 +0000 (UTC) Received: from anchor.twiddle.home (anchor.twiddle.home [172.31.0.4]) by are.twiddle.net (Postfix) with ESMTPSA id A2875431; Tue, 30 Mar 2010 13:33:15 -0700 (PDT) Message-ID: <4BB2600B.90002@twiddle.net> Date: Tue, 30 Mar 2010 13:33:15 -0700 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3 MIME-Version: 1.0 To: Juergen Lock References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330191629.GA95521@triton8.kn-bremen.de> <201003302009.o2UK9lAv002282@triton8.kn-bremen.de> In-Reply-To: <201003302009.o2UK9lAv002282@triton8.kn-bremen.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Blue Swirl , freebsd-emulation@freebsd.org, Toni , qemu-devel@nongnu.org, Andreas Tobler Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 30 Mar 2010 20:33:16 -0000 On 03/30/2010 01:09 PM, Juergen Lock wrote: > Oh sorry if that was not clear, things go into swap if I _replace_ the > endaddr ~0ul (which caused the assert) with the max value the assert > still tolerates i.e. > ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 > which in this case seems to be 0x7fffffffffff: Yes, I got that. And I see from ... > #3 0x0000000060012731 in page_set_flags (start=140737488224256, > end=18446744073709551615, flags=32) ... here that the range we're reserving is 0x7ffffffe0000 ... 0x7fffffffffff which is a mere 128k range. Which ought to allocate no more than a single leaf page table (and thus N-1 pages for the N-level table). Which doesn't answer the question of why you'd wind up running out of memory. r~ From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 20:43:26 2010 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 A2FC8106564A for ; Tue, 30 Mar 2010 20:43:26 +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 5DDE88FC18 for ; Tue, 30 Mar 2010 20:43:26 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 4EE061E0016A; Tue, 30 Mar 2010 22:43:25 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o2UKgKFS004023; Tue, 30 Mar 2010 22:42:20 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o2UKgJMJ004022; Tue, 30 Mar 2010 22:42:19 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 30 Mar 2010 22:42:19 +0200 To: Juergen Lock Message-ID: <20100330204219.GA3860@triton8.kn-bremen.de> References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330191629.GA95521@triton8.kn-bremen.de> <201003302009.o2UK9lAv002282@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201003302009.o2UK9lAv002282@triton8.kn-bremen.de> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: qemu-devel@nongnu.org, Blue Swirl , freebsd-emulation@freebsd.org, Andreas Tobler , rth@twiddle.net, Toni Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 30 Mar 2010 20:43:26 -0000 On Tue, Mar 30, 2010 at 10:09:47PM +0200, Juergen Lock wrote: > In article <4BB2540B.90704@twiddle.net> you write: > >On 03/30/2010 12:16 PM, Juergen Lock wrote: > >> I first tried to replace the endaddr in the !h2g_valid(endaddr) case with > >> ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 > >> if TARGET_ABI_BITS > L1_MAP_ADDR_SPACE_BITS (which comes from the condition > >> of the assert in page_set_flags() that was triggered on the ~0ul value), > >> but that caused the qemu process to grow into swap and made the box > >> usuable when that code was reached and I had to kill qemu. (The box has > >> 8 GB RAM.) And so I thought just leaving that page range unprotected > >> if only the start address is valid was the lesser evil... > > > >What's are the real arguments to the page_set_flags that causes things > >to go into swap? I can't imagine the range really being so large that > >it causes massive allocation within that function... > > Oh sorry if that was not clear, things go into swap if I _replace_ the > endaddr ~0ul (which caused the assert) with the max value the assert > still tolerates i.e. > ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 > which in this case seems to be 0x7fffffffffff: > > #3 0x0000000060012731 in page_set_flags (start=140737488224256, > end=18446744073709551615, flags=32) > at /usr/ports/emulators/qemu-devel-20100323a/work/qemu-snapshot-20100323_20/exec.c:2426 > 2426 assert(end < ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS)); > (gdb) i li 2426 > Line 2426 of "/usr/ports/emulators/qemu-devel-20100323a/work/qemu-snapshot-20100323_20/exec.c" starts at address 0x60012662 > and ends at 0x60012675 . > (gdb) disassemble 0x60012662 0x60012675 > Dump of assembler code from 0x60012662 to 0x60012675: > 0x0000000060012662 : mov $0x7fffffffffff,%rax > ^^^^^^^^^^^^^^ > 0x000000006001266c : cmp %rax,%rsi > 0x000000006001266f : ja 0x60012718 > End of assembler dump. > (gdb) q Ok sorry about the confusion, this is a different problem, I just looked at the value of start, it seems to be: (gdb) p start $2 = 0x7ffffffe0000 So I'd say the real problem is page_set_flags() has a bug that makes it allocate too much if the range is the last allowed page... Cheers, Juergen From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 20:46:34 2010 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 4D510106567D for ; Tue, 30 Mar 2010 20:46:34 +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 07C348FC17 for ; Tue, 30 Mar 2010 20:46:33 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 31AC51E0016A; Tue, 30 Mar 2010 22:46:33 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o2UKjnhA004377; Tue, 30 Mar 2010 22:45:49 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o2UKjmGu004376; Tue, 30 Mar 2010 22:45:48 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 30 Mar 2010 22:45:48 +0200 To: Richard Henderson Message-ID: <20100330204548.GA4359@triton8.kn-bremen.de> References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330191629.GA95521@triton8.kn-bremen.de> <201003302009.o2UK9lAv002282@triton8.kn-bremen.de> <4BB2600B.90002@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BB2600B.90002@twiddle.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: qemu-devel@nongnu.org, Juergen Lock , Blue Swirl , freebsd-emulation@freebsd.org, Andreas Tobler , Toni Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 30 Mar 2010 20:46:34 -0000 On Tue, Mar 30, 2010 at 01:33:15PM -0700, Richard Henderson wrote: > On 03/30/2010 01:09 PM, Juergen Lock wrote: > > Oh sorry if that was not clear, things go into swap if I _replace_ the > > endaddr ~0ul (which caused the assert) with the max value the assert > > still tolerates i.e. > > ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 > > which in this case seems to be 0x7fffffffffff: > > Yes, I got that. And I see from ... > > > #3 0x0000000060012731 in page_set_flags (start=140737488224256, > > end=18446744073709551615, flags=32) > > ... here that the range we're reserving is > > 0x7ffffffe0000 ... 0x7fffffffffff > > which is a mere 128k range. Which ought to allocate no more than > a single leaf page table (and thus N-1 pages for the N-level table). > > Which doesn't answer the question of why you'd wind up running out > of memory. Ah yeah our mails crossed each other :) Yeah I don't know... Cheers, Juergen From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 20:56:37 2010 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 9A714106566C for ; Tue, 30 Mar 2010 20:56:37 +0000 (UTC) (envelope-from rth@twiddle.net) Received: from are.twiddle.net (are.twiddle.net [75.149.56.221]) by mx1.freebsd.org (Postfix) with ESMTP id 7EFB38FC21 for ; Tue, 30 Mar 2010 20:56:37 +0000 (UTC) Received: from anchor.twiddle.home (anchor.twiddle.home [172.31.0.4]) by are.twiddle.net (Postfix) with ESMTPSA id 802C7431; Tue, 30 Mar 2010 13:56:36 -0700 (PDT) Message-ID: <4BB26584.8030109@twiddle.net> Date: Tue, 30 Mar 2010 13:56:36 -0700 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3 MIME-Version: 1.0 To: Juergen Lock References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330191629.GA95521@triton8.kn-bremen.de> <201003302009.o2UK9lAv002282@triton8.kn-bremen.de> <20100330204219.GA3860@triton8.kn-bremen.de> In-Reply-To: <20100330204219.GA3860@triton8.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Blue Swirl , freebsd-emulation@freebsd.org, Toni , qemu-devel@nongnu.org, Andreas Tobler Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 30 Mar 2010 20:56:37 -0000 On 03/30/2010 01:42 PM, Juergen Lock wrote: > So I'd say the real problem is page_set_flags() has a bug that makes > it allocate too much if the range is the last allowed page... It doesn't, as far as I can see. I added this range by hand to page_init and the effect was exactly as I supposed on a linux host -- 2 pages allocated to handle the 3-level page table. No out of memory. r~ From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 30 21:58:36 2010 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 7F6AE106564A for ; Tue, 30 Mar 2010 21:58:36 +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 38EAE8FC16 for ; Tue, 30 Mar 2010 21:58:35 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 2A3161E00172; Tue, 30 Mar 2010 23:58:35 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o2ULvElY007144; Tue, 30 Mar 2010 23:57:14 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o2ULvC0b007143; Tue, 30 Mar 2010 23:57:12 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 30 Mar 2010 23:57:12 +0200 To: Juergen Lock Message-ID: <20100330215712.GA6901@triton8.kn-bremen.de> References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330191629.GA95521@triton8.kn-bremen.de> <201003302009.o2UK9lAv002282@triton8.kn-bremen.de> <4BB2600B.90002@twiddle.net> <20100330204548.GA4359@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100330204548.GA4359@triton8.kn-bremen.de> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: qemu-devel@nongnu.org, Blue Swirl , freebsd-emulation@freebsd.org, Andreas Tobler , Richard Henderson , Toni Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 30 Mar 2010 21:58:36 -0000 On Tue, Mar 30, 2010 at 10:45:48PM +0200, Juergen Lock wrote: > On Tue, Mar 30, 2010 at 01:33:15PM -0700, Richard Henderson wrote: > > On 03/30/2010 01:09 PM, Juergen Lock wrote: > > > Oh sorry if that was not clear, things go into swap if I _replace_ the > > > endaddr ~0ul (which caused the assert) with the max value the assert > > > still tolerates i.e. > > > ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 > > > which in this case seems to be 0x7fffffffffff: > > > > Yes, I got that. And I see from ... > > > > > #3 0x0000000060012731 in page_set_flags (start=140737488224256, > > > end=18446744073709551615, flags=32) > > > > ... here that the range we're reserving is > > > > 0x7ffffffe0000 ... 0x7fffffffffff > > > > which is a mere 128k range. Which ought to allocate no more than > > a single leaf page table (and thus N-1 pages for the N-level table). > > > > Which doesn't answer the question of why you'd wind up running out > > of memory. > > Ah yeah our mails crossed each other :) Yeah I don't know... Ok found the problem: Reads from /compat/linux/proc/self/maps are broken i.e. return partial lines if (at least I think that's the reason) the mappings change between read() calls. (It got a line like this after the first line that originally caused the assert: fe0000-800000000000 rwxp 00020000 00:00 0 ) Well good that we now use kinfo_getvmmap(), I hope noone needs bsd-user on FreeBSD 6.x... Oh well... Juergen From owner-freebsd-emulation@FreeBSD.ORG Thu Apr 1 11:59:14 2010 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 A6D121065670 for ; Thu, 1 Apr 2010 11:59:14 +0000 (UTC) (envelope-from paul@codesourcery.com) Received: from mail.codesourcery.com (mail.codesourcery.com [38.113.113.100]) by mx1.freebsd.org (Postfix) with ESMTP id 725C88FC0A for ; Thu, 1 Apr 2010 11:59:14 +0000 (UTC) Received: (qmail 3173 invoked from network); 1 Apr 2010 11:59:13 -0000 Received: from unknown (HELO wren.localnet) (paul@127.0.0.2) by mail.codesourcery.com with ESMTPA; 1 Apr 2010 11:59:13 -0000 From: Paul Brook Organization: CodeSourcery To: qemu-devel@nongnu.org Date: Thu, 1 Apr 2010 11:59:11 +0000 User-Agent: KMail/1.12.4 (Linux/2.6.32-trunk-amd64; KDE/4.3.4; x86_64; ; ) References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330201734.GA2678@triton8.kn-bremen.de> In-Reply-To: <20100330201734.GA2678@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201004011259.12365.paul@codesourcery.com> Cc: Blue Swirl , freebsd-emulation@freebsd.org, Andreas Tobler , Juergen Lock , Toni Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 01 Apr 2010 11:59:14 -0000 > Oh this is happening with x86_64-bsd-user on the same arch so I'd say > (abi_ulong)-1 would be the same as ~0ul (and still cause the assert.) No. These two are different when sizeof(abi_ulong) < sizeof(long). Paul From owner-freebsd-emulation@FreeBSD.ORG Thu Apr 1 17:19:29 2010 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 B07B11065688 for ; Thu, 1 Apr 2010 17:19:29 +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 34B198FC0A for ; Thu, 1 Apr 2010 17:19:28 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id A5C7C1E00178; Thu, 1 Apr 2010 19:19:27 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o31H64S0004606; Thu, 1 Apr 2010 19:06:04 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o31H63KE004605; Thu, 1 Apr 2010 19:06:03 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Thu, 1 Apr 2010 19:06:03 +0200 To: Paul Brook Message-ID: <20100401170603.GA4447@triton8.kn-bremen.de> References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330201734.GA2678@triton8.kn-bremen.de> <201004011259.12365.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201004011259.12365.paul@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: qemu-devel@nongnu.org, Juergen Lock , Blue Swirl , freebsd-emulation@freebsd.org, Andreas Tobler , Toni Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing 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, 01 Apr 2010 17:19:29 -0000 On Thu, Apr 01, 2010 at 11:59:11AM +0000, Paul Brook wrote: > > Oh this is happening with x86_64-bsd-user on the same arch so I'd say > > (abi_ulong)-1 would be the same as ~0ul (and still cause the assert.) > > No. These two are different when sizeof(abi_ulong) < sizeof(long). Yeah sorry I meant in this case that caused the assert. (x86_64-bsd-user on same-arch host.) Cheers, Juergen