From owner-freebsd-emulation@FreeBSD.ORG Sun Feb 15 03:00:45 2009 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 5B3ED106564A for ; Sun, 15 Feb 2009 03:00:45 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 2CA0E8FC0A for ; Sun, 15 Feb 2009 03:00:45 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LYX0b-00065B-2S for freebsd-emulation@freebsd.org; Sat, 14 Feb 2009 18:45:29 -0800 Message-ID: <22019307.post@talk.nabble.com> Date: Sat, 14 Feb 2009 18:45:29 -0800 (PST) From: agent59624285 To: freebsd-emulation@freebsd.org In-Reply-To: <02067965@ipt.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: agent59624285@spamcorptastic.com References: <02067965@ipt.ru> Subject: Re: linux_base-fc4 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, 15 Feb 2009 03:00:45 -0000 Boris Samorodov wrote: > > On Sun, 16 Nov 2008 21:58:58 +0100 cyrill62 wrote: > > It is available at: > http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/4/i386/ > >> Can you update the package 'emulators/linux_base-fc4' ? > It would be nice if the port would try to download it there. -- View this message in context: http://www.nabble.com/linux_base-fc4-tp20530308p22019307.html Sent from the freebsd-emulation mailing list archive at Nabble.com. From owner-freebsd-emulation@FreeBSD.ORG Sun Feb 15 11:19:56 2009 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 611B5106566B for ; Sun, 15 Feb 2009 11:19:56 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id 1107E8FC16 for ; Sun, 15 Feb 2009 11:19:55 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from sp34.ipt.ru ([194.62.233.107] helo=bs1.sp34.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1LYf2P-000729-GK; Sun, 15 Feb 2009 14:19:53 +0300 Received: from bsam by bs1.sp34.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LYf2P-0002EK-6x; Sun, 15 Feb 2009 14:19:53 +0300 To: agent59624285 References: <02067965@ipt.ru> <22019307.post@talk.nabble.com> From: Boris Samorodov Date: Sun, 15 Feb 2009 14:19:53 +0300 In-Reply-To: <22019307.post@talk.nabble.com> (agent's message of "Sat\, 14 Feb 2009 18\:45\:29 -0800 \(PST\)") Message-ID: <00886262@bs1.sp34.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-emulation@freebsd.org Subject: Re: linux_base-fc4 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, 15 Feb 2009 11:19:56 -0000 agent59624285 writes: > Boris Samorodov wrote: >> >> On Sun, 16 Nov 2008 21:58:58 +0100 cyrill62 wrote: >> >> It is available at: >> http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/4/i386/ >> >>> Can you update the package 'emulators/linux_base-fc4' ? > > It would be nice if the port would try to download it there. What do you want to download where? Anyway this package is a part of linux_base-fc4 since it's introduction, i.e. 2 years and 8 months. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Sun Feb 15 22:05:15 2009 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F4CC1065670 for ; Sun, 15 Feb 2009 22:05:15 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 0B2618FC1B for ; Sun, 15 Feb 2009 22:05:14 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id B47319CB097 for ; Sun, 15 Feb 2009 22:43:16 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o4LwCclh8uCD for ; Sun, 15 Feb 2009 22:43:04 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id A56BF9CB176 for ; Sun, 15 Feb 2009 22:43:04 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n1FLh41V018706 for emulation@freebsd.org; Sun, 15 Feb 2009 22:43:04 +0100 (CET) (envelope-from rdivacky) Date: Sun, 15 Feb 2009 22:43:04 +0100 From: Roman Divacky To: emulation@freebsd.org Message-ID: <20090215214304.GA17635@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: qemu booting amd64 fbsd 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, 15 Feb 2009 22:05:15 -0000 hi I am trying to boot fbsd@amd64 7.1R in qemu-0.9.1_11 but it panics early in the boot. usually. sometimes it gets upto the root mounting but then hangs... am I doing something wrong or is this just broken? is there any other (reliable) way how to boot amd64 fbsd in sw? thnx! roman From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 16 09:50:35 2009 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3A3A106564A for ; Mon, 16 Feb 2009 09:50:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id 83A378FC15 for ; Mon, 16 Feb 2009 09:50:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LYzVy-000E7X-4O; Mon, 16 Feb 2009 11:11:46 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n1G9BfL1087440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Feb 2009 11:11:42 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n1G9BfCI093219; Mon, 16 Feb 2009 11:11:41 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n1G9BffJ093209; Mon, 16 Feb 2009 11:11:41 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 16 Feb 2009 11:11:41 +0200 From: Kostik Belousov To: Roman Divacky Message-ID: <20090216091141.GD41617@deviant.kiev.zoral.com.ua> References: <20090215214304.GA17635@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RYJh/3oyKhIjGcML" Content-Disposition: inline In-Reply-To: <20090215214304.GA17635@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1LYzVy-000E7X-4O 73ed22c22cca7ad8c24882679140b89f X-Terabit: YES Cc: emulation@freebsd.org Subject: Re: qemu booting amd64 fbsd 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, 16 Feb 2009 09:50:36 -0000 --RYJh/3oyKhIjGcML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 15, 2009 at 10:43:04PM +0100, Roman Divacky wrote: > hi >=20 > I am trying to boot fbsd@amd64 7.1R in qemu-0.9.1_11 but it panics > early in the boot. usually. sometimes it gets upto the root mounting > but then hangs... >=20 > am I doing something wrong or is this just broken? >=20 > is there any other (reliable) way how to boot amd64 fbsd in sw? I use the patch below for the long time. Not sure whether this is your case. --- cpu-exec.c.orig 2008-02-16 18:23:53.134009488 +0200 +++ cpu-exec.c 2008-02-16 18:24:47.127662872 +0200 @@ -452,13 +452,15 @@ svm_check_intercept(SVM_EXIT_INTR); env->interrupt_request &=3D ~(CPU_INTERRUPT_HARD |= CPU_INTERRUPT_VIRQ); intno =3D cpu_get_pic_interrupt(env); - if (loglevel & CPU_LOG_TB_IN_ASM) { - fprintf(logfile, "Servicing hardware INT=3D0x%= 02x\n", intno); - } - do_interrupt(intno, 0, 0, 0, 1); - /* ensure that no TB jump will be modified as - the program flow was changed */ - BREAK_CHAIN; + if (intno !=3D -1) { + if (loglevel & CPU_LOG_TB_IN_ASM) { + fprintf(logfile, "Servicing hardware INT=3D0x%02x\n", intno); + } + do_interrupt(intno, 0, 0, 0, 1); + /* ensure that no TB jump will be modified as + the program flow was changed */ + BREAK_CHAIN; + } #if !defined(CONFIG_USER_ONLY) } else if ((interrupt_request & CPU_INTERRUPT_VIRQ) && (env->eflags & IF_MASK) && !(env->hflags & HF_INHI= BIT_IRQ_MASK)) { --RYJh/3oyKhIjGcML Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmZLc0ACgkQC3+MBN1Mb4jfpACeJpLN7ABy1uHWpRPDP3ZoaprY dx4AnjEiiJQKq2rBSvgfbWWAIjWUiY5h =E5cF -----END PGP SIGNATURE----- --RYJh/3oyKhIjGcML-- From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 16 11:06:49 2009 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 AD7FC106567C for ; Mon, 16 Feb 2009 11:06:49 +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 98FB38FC0C for ; Mon, 16 Feb 2009 11:06:49 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1GB6n8P096086 for ; Mon, 16 Feb 2009 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1GB6nkX096082 for freebsd-emulation@FreeBSD.org; Mon, 16 Feb 2009 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Feb 2009 11:06:49 GMT Message-Id: <200902161106.n1GB6nkX096082@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, 16 Feb 2009 11:06:50 -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/131506 emulation [linux] pipes in forked procs sometimes hang under Lin p kern/131099 emulation [linux] [patch] readdir broken on Linux emulation. o kern/130724 emulation [linprocfs] [patch] cpuinfo in linprocfs is dated, cau o kern/129169 emulation [linux] [patch] Linux Emulation ENOTCONN error using n f ports/127018 emulation Linuxulator incapable of using FreeBSD's LDAP environm o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails o ports/121800 emulation x11-toolkits/linux-openmotif - OpenMotif upgrade to 2. o kern/97326 emulation [linux] file descriptor leakage in linux emulation o ports/91318 emulation [fix] graphics/linux_dri: works on amd64 too o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula 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 17 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 16 18:18:42 2009 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A54A6106566C for ; Mon, 16 Feb 2009 18:18:42 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 5C7128FC1D for ; Mon, 16 Feb 2009 18:18:41 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 72CE39CB057 for ; Mon, 16 Feb 2009 19:15:42 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QWL7kogLGr3Q for ; Mon, 16 Feb 2009 19:15:40 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 267B29CB0EA for ; Mon, 16 Feb 2009 19:15:40 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n1GIFeLr019046 for emulation@freebsd.org; Mon, 16 Feb 2009 19:15:40 +0100 (CET) (envelope-from rdivacky) Date: Mon, 16 Feb 2009 19:15:40 +0100 From: Roman Divacky To: emulation@freebsd.org Message-ID: <20090216181539.GA18949@freebsd.org> References: <20090215214304.GA17635@freebsd.org> <20090216091141.GD41617@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090216091141.GD41617@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.4.2.3i Cc: Subject: Re: qemu booting amd64 fbsd 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, 16 Feb 2009 18:18:42 -0000 On Mon, Feb 16, 2009 at 11:11:41AM +0200, Kostik Belousov wrote: > On Sun, Feb 15, 2009 at 10:43:04PM +0100, Roman Divacky wrote: > > hi > > > > I am trying to boot fbsd@amd64 7.1R in qemu-0.9.1_11 but it panics > > early in the boot. usually. sometimes it gets upto the root mounting > > but then hangs... > > > > am I doing something wrong or is this just broken? > > > > is there any other (reliable) way how to boot amd64 fbsd in sw? > > I use the patch below for the long time. Not sure whether this is your > case. qemu-devel works ok... thnx! From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 17 00:23:21 2009 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 6063510656C4 for ; Tue, 17 Feb 2009 00:23:21 +0000 (UTC) (envelope-from nox@saturn.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 112F78FC1B for ; Tue, 17 Feb 2009 00:23:20 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 246DE1E00268; Tue, 17 Feb 2009 01:23:19 +0100 (CET) Received: from saturn.kn-bremen.de (noident@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id n1H0LrJs012936; Tue, 17 Feb 2009 01:21:53 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id n1H0Lr73012935; Tue, 17 Feb 2009 01:21:53 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Tue, 17 Feb 2009 01:21:52 +0100 To: Kostik Belousov Message-ID: <20090217002152.GA12435@saturn.kn-bremen.de> Mail-Followup-To: Kostik Belousov , Roman Divacky , freebsd-emulation@freebsd.org References: <20090215214304.GA17635@freebsd.org> <20090216091141.GD41617@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090216091141.GD41617@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-emulation@freebsd.org Subject: Re: qemu booting amd64 fbsd 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, 17 Feb 2009 00:23:21 -0000 On Mon, Feb 16, 2009 at 11:11:41AM +0200, Kostik Belousov wrote: > On Sun, Feb 15, 2009 at 10:43:04PM +0100, Roman Divacky wrote: > > hi > > > > I am trying to boot fbsd@amd64 7.1R in qemu-0.9.1_11 but it panics > > early in the boot. usually. sometimes it gets upto the root mounting > > but then hangs... > > > > am I doing something wrong or is this just broken? > > > > is there any other (reliable) way how to boot amd64 fbsd in sw? > > I use the patch below for the long time. Not sure whether this is your > case. > > --- cpu-exec.c.orig 2008-02-16 18:23:53.134009488 +0200 > +++ cpu-exec.c 2008-02-16 18:24:47.127662872 +0200 > @@ -452,13 +452,15 @@ >[...] ..or you can try the qemu-devel port which has that patch. Also, at least -kernel-kqemu still is broken for FreeBSD/amd64 guests, even with qemu svn (which no longer needs that patch), see this post if you want to try my latest snapshot: http://lists.freebsd.org/pipermail/freebsd-emulation/2009-February/005650.html Oh and btw there just have been reports of image corruption with qcow(2) images in qemu svn, so better use raw images for now... (they're faster anyway.) HTH, Juergen From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 17 05:14:47 2009 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 0DA61106566C for ; Tue, 17 Feb 2009 05:14:47 +0000 (UTC) (envelope-from subhraveti@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id CC0988FC0C for ; Tue, 17 Feb 2009 05:14:46 +0000 (UTC) (envelope-from subhraveti@gmail.com) Received: by wa-out-1112.google.com with SMTP id k34so1276917wah.27 for ; Mon, 16 Feb 2009 21:14:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:subject :date:mime-version:content-type:x-priority:x-msmail-priority :x-mailer:x-mimeole; bh=AMTJYBCbOjn6isysPFK37pNF8VFurkTlAnhk2fUDeBY=; b=pdOq1tyc5zrsNA15N9cMFcmiSf5uhX8PdJ6dYwIDVIswOHzAWRKt+Zq2/mC8xmrBXU SseCsjGxjRdfe3dj0V2zhf3s97fTr1X8YMUCDMeBsds/j6QdTSvqAFE2C8OenxjpEgcZ FbvGONvlmDbzjty3BPdNSYYrzyR4We4rZDNc8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:mime-version:content-type :x-priority:x-msmail-priority:x-mailer:x-mimeole; b=d12N/NygELr2cxW2cOu3xZCTLJud4IHWXl6wPrtin/MxG5ITSBGUOGJfUf2sPU6aKL HY/N/Nba8YhkkWeIn8zpbBLFHOUlvwixWROvWbQM3yU4G7v6TzisNE4/bCKzZjKpbRCb oRJ17uQU7XbcZZQMrWQPM0Gfebul5v8zo/NMI= Received: by 10.114.168.1 with SMTP id q1mr2439703wae.152.1234845704099; Mon, 16 Feb 2009 20:41:44 -0800 (PST) Received: from DineshThinkpad (75-54-218-43.lightspeed.mlpsca.sbcglobal.net [75.54.218.43]) by mx.google.com with ESMTPS id a8sm11182283poa.5.2009.02.16.20.41.43 (version=SSLv3 cipher=RC4-MD5); Mon, 16 Feb 2009 20:41:43 -0800 (PST) Message-ID: <00a201c990ba$078763c0$8301a8c0@DineshThinkpad> From: "Dinesh Subhraveti" To: Date: Mon, 16 Feb 2009 20:41:40 -0800 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: qemu bsd-user 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, 17 Feb 2009 05:14:49 -0000 This may not be the right place for a newbie question, but venturing = anyway with some hope... I am interested in the Qemu bsd user emulation, but can't find a copy of = Qemu source with bsd-user that I can build. The mainline Qemu trunk = doesn't directly build on FreeBSD and the qemu ports in = /usr/ports/emulators/ don't have bsd-user. Any responses greatly appreciated. Regards, From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 17 22:58:52 2009 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 398071065670 for ; Tue, 17 Feb 2009 22:58:52 +0000 (UTC) (envelope-from nox@saturn.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 EB7198FC0C for ; Tue, 17 Feb 2009 22:58:51 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 15C8B1E00287; Tue, 17 Feb 2009 23:58:51 +0100 (CET) Received: from saturn.kn-bremen.de (noident@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id n1HMutpi013329; Tue, 17 Feb 2009 23:56:55 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id n1HMutcX013328; Tue, 17 Feb 2009 23:56:55 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Tue, 17 Feb 2009 23:56:55 +0100 To: Dinesh Subhraveti Message-ID: <20090217225655.GA12991@saturn.kn-bremen.de> Mail-Followup-To: Dinesh Subhraveti , freebsd-emulation@freebsd.org References: <00a201c990ba$078763c0$8301a8c0@DineshThinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00a201c990ba$078763c0$8301a8c0@DineshThinkpad> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-emulation@freebsd.org Subject: Re: qemu bsd-user 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, 17 Feb 2009 22:58:52 -0000 On Mon, Feb 16, 2009 at 08:41:40PM -0800, "Dinesh Subhraveti" wrote: > This may not be the right place for a newbie question, but venturing anyway with some hope... > > I am interested in the Qemu bsd user emulation, but can't find a copy of Qemu source with bsd-user that I can build. The mainline Qemu trunk doesn't directly build on FreeBSD and the qemu ports in /usr/ports/emulators/ don't have bsd-user. Well, I got bsd-user to build a while ago, http://lists.freebsd.org/pipermail/freebsd-emulation/2008-December/005579.html (it still builds in my latest snapshot, http://lists.freebsd.org/pipermail/freebsd-emulation/2009-February/005650.html ) but it is entirely untested, and as said in the first post it looks like at least the i386 (host) case needs someone with linker script fu to look at it before it can actually work. If you want to help you are more than welcome tho... :) (you are actually the first one to ask about bsd-user on FreeBSD that I have seen!) Good luck, Juergen From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 18 13:20:02 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFC59106566C for ; Wed, 18 Feb 2009 13:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 82E2D8FC1F for ; Wed, 18 Feb 2009 13:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1IDK2mn024099 for ; Wed, 18 Feb 2009 13:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1IDK2Zh024098; Wed, 18 Feb 2009 13:20:02 GMT (envelope-from gnats) Date: Wed, 18 Feb 2009 13:20:02 GMT Message-Id: <200902181320.n1IDK2Zh024098@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Takahiro Kurosawa Cc: Subject: Re: kern/131506: pipes in forked procs sometimes hang under Linux emulation 2.6.16 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Takahiro Kurosawa List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 13:20:02 -0000 The following reply was made to PR kern/131506; it has been noted by GNATS. From: Takahiro Kurosawa To: bug-followup@freebsd.org, arno@heho.snv.jussieu.fr Cc: Subject: Re: kern/131506: pipes in forked procs sometimes hang under Linux emulation 2.6.16 Date: Wed, 18 Feb 2009 21:44:13 +0900 --000e0cd156a4ef843b046330c6a5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit (resending to bug-followup@, sorry if duplicate) It seems that vfork/exec synchronization was changed recently but the linux emulation code keeps using the obsolete mechanism. The attached patch may fix the problem. --000e0cd156a4ef843b046330c6a5 Content-Type: text/x-diff; charset=US-ASCII; name="pwaitfix.diff" Content-Disposition: attachment; filename="pwaitfix.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_frapwkae0 PT09IHN5cy9hbWQ2NC9saW51eDMyL2xpbnV4MzJfbWFjaGRlcC5jCj09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lz L2FtZDY0L2xpbnV4MzIvbGludXgzMl9tYWNoZGVwLmMJKHJldmlzaW9uIDE4ODc0MSkKKysrIHN5 cy9hbWQ2NC9saW51eDMyL2xpbnV4MzJfbWFjaGRlcC5jCShsb2NhbCkKQEAgLTU2MCw3ICs1NjAs NyBAQAogCS8qIHdhaXQgZm9yIHRoZSBjaGlsZHJlbiB0byBleGl0LCBpZS4gZW11bGF0ZSB2Zm9y ayAqLwogCVBST0NfTE9DSyhwMik7CiAJd2hpbGUgKHAyLT5wX2ZsYWcgJiBQX1BQV0FJVCkKLQkg ICAJbXNsZWVwKHRkLT50ZF9wcm9jLCAmcDItPnBfbXR4LCBQV0FJVCwgInBwd2FpdCIsIDApOwor CQljdl93YWl0KCZwMi0+cF9wd2FpdCwgJnAyLT5wX210eCk7CiAJUFJPQ19VTkxPQ0socDIpOwog CiAJcmV0dXJuICgwKTsKQEAgLTc0OSw3ICs3NDksNyBAQAogCQkvKiB3YWl0IGZvciB0aGUgY2hp bGRyZW4gdG8gZXhpdCwgaWUuIGVtdWxhdGUgdmZvcmsgKi8KIAkJUFJPQ19MT0NLKHAyKTsKIAkJ d2hpbGUgKHAyLT5wX2ZsYWcgJiBQX1BQV0FJVCkKLQkJCW1zbGVlcCh0ZC0+dGRfcHJvYywgJnAy LT5wX210eCwgUFdBSVQsICJwcHdhaXQiLCAwKTsKKwkJCWN2X3dhaXQoJnAyLT5wX3B3YWl0LCAm cDItPnBfbXR4KTsKIAkJUFJPQ19VTkxPQ0socDIpOwogCX0KIAo9PT0gc3lzL2kzODYvbGludXgv bGludXhfbWFjaGRlcC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL2kzODYvbGludXgvbGludXhfbWFjaGRl cC5jCShyZXZpc2lvbiAxODg3NDEpCisrKyBzeXMvaTM4Ni9saW51eC9saW51eF9tYWNoZGVwLmMJ KGxvY2FsKQpAQCAtMzc2LDcgKzM3Niw3IEBACiAJLyogd2FpdCBmb3IgdGhlIGNoaWxkcmVuIHRv IGV4aXQsIGllLiBlbXVsYXRlIHZmb3JrICovCiAJUFJPQ19MT0NLKHAyKTsKIAl3aGlsZSAocDIt PnBfZmxhZyAmIFBfUFBXQUlUKQotCSAgIAltc2xlZXAodGQtPnRkX3Byb2MsICZwMi0+cF9tdHgs IFBXQUlULCAicHB3YWl0IiwgMCk7CisJCWN2X3dhaXQoJnAyLT5wX3B3YWl0LCAmcDItPnBfbXR4 KTsKIAlQUk9DX1VOTE9DSyhwMik7CiAKIAlyZXR1cm4gKDApOwpAQCAtNTgxLDcgKzU4MSw3IEBA CiAgICAJICAgCS8qIHdhaXQgZm9yIHRoZSBjaGlsZHJlbiB0byBleGl0LCBpZS4gZW11bGF0ZSB2 Zm9yayAqLwogICAgCSAgIAlQUk9DX0xPQ0socDIpOwogCQl3aGlsZSAocDItPnBfZmxhZyAmIFBf UFBXQUlUKQotICAgCQkgICAJbXNsZWVwKHRkLT50ZF9wcm9jLCAmcDItPnBfbXR4LCBQV0FJVCwg InBwd2FpdCIsIDApOworCQkJY3Zfd2FpdCgmcDItPnBfcHdhaXQsICZwMi0+cF9tdHgpOwogCQlQ Uk9DX1VOTE9DSyhwMik7CiAJfQogCg== --000e0cd156a4ef843b046330c6a5-- From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 18 13:34:54 2009 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 D71AA106564A for ; Wed, 18 Feb 2009 13:34:54 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id 79B1B8FC16 for ; Wed, 18 Feb 2009 13:34:54 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LZmZf-000AU1-L6; Wed, 18 Feb 2009 15:34:52 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n1IDYmD2032869 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Feb 2009 15:34:48 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n1IDYm11068435; Wed, 18 Feb 2009 15:34:48 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n1IDYmXO068434; Wed, 18 Feb 2009 15:34:48 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 18 Feb 2009 15:34:48 +0200 From: Kostik Belousov To: Takahiro Kurosawa Message-ID: <20090218133448.GP41617@deviant.kiev.zoral.com.ua> References: <200902181320.n1IDK2Zh024098@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0UhZIN3Sa23/ILEd" Content-Disposition: inline In-Reply-To: <200902181320.n1IDK2Zh024098@freefall.freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, FUZZY_CPILL autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1LZmZf-000AU1-L6 3ae3825b1f14b0e1405424f934a3262d X-Terabit: YES Cc: freebsd-emulation@freebsd.org Subject: Re: kern/131506: pipes in forked procs sometimes hang under Linux emulation 2.6.16 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 13:34:55 -0000 --0UhZIN3Sa23/ILEd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 18, 2009 at 01:20:02PM +0000, Takahiro Kurosawa wrote: > The following reply was made to PR kern/131506; it has been noted by GNAT= S. >=20 > From: Takahiro Kurosawa > To: bug-followup@freebsd.org, arno@heho.snv.jussieu.fr > Cc: =20 > Subject: Re: kern/131506: pipes in forked procs sometimes hang under Linu= x=20 > emulation 2.6.16 > Date: Wed, 18 Feb 2009 21:44:13 +0900 >=20 > --000e0cd156a4ef843b046330c6a5 > Content-Type: text/plain; charset=3DISO-8859-1 > Content-Transfer-Encoding: 7bit > =20 > (resending to bug-followup@, sorry if duplicate) > =20 > It seems that vfork/exec synchronization was changed recently > but the linux emulation code keeps using the obsolete mechanism. > =20 > The attached patch may fix the problem. > =20 > --000e0cd156a4ef843b046330c6a5 > Content-Type: text/x-diff; charset=3DUS-ASCII; name=3D"pwaitfix.diff" > Content-Disposition: attachment; filename=3D"pwaitfix.diff" > Content-Transfer-Encoding: base64 > X-Attachment-Id: f_frapwkae0 > =20 > PT09IHN5cy9hbWQ2NC9saW51eDMyL2xpbnV4MzJfbWFjaGRlcC5jCj09PT09PT09PT09PT09= PT09 > PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0g= c3lz > L2FtZDY0L2xpbnV4MzIvbGludXgzMl9tYWNoZGVwLmMJKHJldmlzaW9uIDE4ODc0MSkKKysr= IHN5 > cy9hbWQ2NC9saW51eDMyL2xpbnV4MzJfbWFjaGRlcC5jCShsb2NhbCkKQEAgLTU2MCw3ICs1= NjAs > NyBAQAogCS8qIHdhaXQgZm9yIHRoZSBjaGlsZHJlbiB0byBleGl0LCBpZS4gZW11bGF0ZSB2= Zm9y > ayAqLwogCVBST0NfTE9DSyhwMik7CiAJd2hpbGUgKHAyLT5wX2ZsYWcgJiBQX1BQV0FJVCkK= LQkg > ICAJbXNsZWVwKHRkLT50ZF9wcm9jLCAmcDItPnBfbXR4LCBQV0FJVCwgInBwd2FpdCIsIDAp= Owor > CQljdl93YWl0KCZwMi0+cF9wd2FpdCwgJnAyLT5wX210eCk7CiAJUFJPQ19VTkxPQ0socDIp= Owog > CiAJcmV0dXJuICgwKTsKQEAgLTc0OSw3ICs3NDksNyBAQAogCQkvKiB3YWl0IGZvciB0aGUg= Y2hp > bGRyZW4gdG8gZXhpdCwgaWUuIGVtdWxhdGUgdmZvcmsgKi8KIAkJUFJPQ19MT0NLKHAyKTsK= IAkJ > d2hpbGUgKHAyLT5wX2ZsYWcgJiBQX1BQV0FJVCkKLQkJCW1zbGVlcCh0ZC0+dGRfcHJvYywg= JnAy > LT5wX210eCwgUFdBSVQsICJwcHdhaXQiLCAwKTsKKwkJCWN2X3dhaXQoJnAyLT5wX3B3YWl0= LCAm > cDItPnBfbXR4KTsKIAkJUFJPQ19VTkxPQ0socDIpOwogCX0KIAo9PT0gc3lzL2kzODYvbGlu= dXgv > bGludXhfbWFjaGRlcC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09= PT09 > PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL2kzODYvbGludXgvbGludXhfbWFj= aGRl > cC5jCShyZXZpc2lvbiAxODg3NDEpCisrKyBzeXMvaTM4Ni9saW51eC9saW51eF9tYWNoZGVw= LmMJ > KGxvY2FsKQpAQCAtMzc2LDcgKzM3Niw3IEBACiAJLyogd2FpdCBmb3IgdGhlIGNoaWxkcmVu= IHRv > IGV4aXQsIGllLiBlbXVsYXRlIHZmb3JrICovCiAJUFJPQ19MT0NLKHAyKTsKIAl3aGlsZSAo= cDIt > PnBfZmxhZyAmIFBfUFBXQUlUKQotCSAgIAltc2xlZXAodGQtPnRkX3Byb2MsICZwMi0+cF9t= dHgs > IFBXQUlULCAicHB3YWl0IiwgMCk7CisJCWN2X3dhaXQoJnAyLT5wX3B3YWl0LCAmcDItPnBf= bXR4 > KTsKIAlQUk9DX1VOTE9DSyhwMik7CiAKIAlyZXR1cm4gKDApOwpAQCAtNTgxLDcgKzU4MSw3= IEBA > CiAgICAJICAgCS8qIHdhaXQgZm9yIHRoZSBjaGlsZHJlbiB0byBleGl0LCBpZS4gZW11bGF0= ZSB2 > Zm9yayAqLwogICAgCSAgIAlQUk9DX0xPQ0socDIpOwogCQl3aGlsZSAocDItPnBfZmxhZyAm= IFBf > UFBXQUlUKQotICAgCQkgICAJbXNsZWVwKHRkLT50ZF9wcm9jLCAmcDItPnBfbXR4LCBQV0FJ= VCwg > InBwd2FpdCIsIDApOworCQkJY3Zfd2FpdCgmcDItPnBfcHdhaXQsICZwMi0+cF9tdHgpOwog= CQlQ > Uk9DX1VOTE9DSyhwMik7CiAJfQogCg=3D=3D > --000e0cd156a4ef843b046330c6a5-- Please, resend the patch without base64-encoding, best as a plain/text attachment. --0UhZIN3Sa23/ILEd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEUEARECAAYFAkmcDncACgkQC3+MBN1Mb4hARwCfVy1JIV6q9cUf5yLuRV7OlxNO QnUAl1EbA6qLRpM4k7vDRgJwKqJFJDA= =LBik -----END PGP SIGNATURE----- --0UhZIN3Sa23/ILEd-- From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 18 14:10:05 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BFDE106566B for ; Wed, 18 Feb 2009 14:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3E7008FC1A for ; Wed, 18 Feb 2009 14:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1IEA5aM060808 for ; Wed, 18 Feb 2009 14:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1IEA5Vq060807; Wed, 18 Feb 2009 14:10:05 GMT (envelope-from gnats) Date: Wed, 18 Feb 2009 14:10:05 GMT Message-Id: <200902181410.n1IEA5Vq060807@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Takahiro Kurosawa Cc: Subject: Re: kern/131506: pipes in forked procs sometimes hang under Linux emulation 2.6.16 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Takahiro Kurosawa List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 14:10:05 -0000 The following reply was made to PR kern/131506; it has been noted by GNATS. From: Takahiro Kurosawa To: Kostik Belousov Cc: bug-followup@freebsd.org Subject: Re: kern/131506: pipes in forked procs sometimes hang under Linux emulation 2.6.16 Date: Wed, 18 Feb 2009 23:08:05 +0900 2009/2/18 Kostik Belousov : > Please, resend the patch without base64-encoding, best as a plain/text > attachment. Sure. Sending the patch inline... The attachment of my previous mail looks broken to me too. === sys/amd64/linux32/linux32_machdep.c ================================================================== --- sys/amd64/linux32/linux32_machdep.c (revision 188741) +++ sys/amd64/linux32/linux32_machdep.c (local) @@ -560,7 +560,7 @@ /* wait for the children to exit, ie. emulate vfork */ PROC_LOCK(p2); while (p2->p_flag & P_PPWAIT) - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); + cv_wait(&p2->p_pwait, &p2->p_mtx); PROC_UNLOCK(p2); return (0); @@ -749,7 +749,7 @@ /* wait for the children to exit, ie. emulate vfork */ PROC_LOCK(p2); while (p2->p_flag & P_PPWAIT) - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); + cv_wait(&p2->p_pwait, &p2->p_mtx); PROC_UNLOCK(p2); } === sys/i386/linux/linux_machdep.c ================================================================== --- sys/i386/linux/linux_machdep.c (revision 188741) +++ sys/i386/linux/linux_machdep.c (local) @@ -376,7 +376,7 @@ /* wait for the children to exit, ie. emulate vfork */ PROC_LOCK(p2); while (p2->p_flag & P_PPWAIT) - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); + cv_wait(&p2->p_pwait, &p2->p_mtx); PROC_UNLOCK(p2); return (0); @@ -581,7 +581,7 @@ /* wait for the children to exit, ie. emulate vfork */ PROC_LOCK(p2); while (p2->p_flag & P_PPWAIT) - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); + cv_wait(&p2->p_pwait, &p2->p_mtx); PROC_UNLOCK(p2); } From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 18 14:12:40 2009 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 4F6EA106566B for ; Wed, 18 Feb 2009 14:12:40 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 0A1B18FC1A for ; Wed, 18 Feb 2009 14:12:39 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 5E5F39CB084; Wed, 18 Feb 2009 15:09:38 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rlCsyUYXTJuh; Wed, 18 Feb 2009 15:09:36 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 300829CB113; Wed, 18 Feb 2009 15:09:36 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n1IE9an2053056; Wed, 18 Feb 2009 15:09:36 +0100 (CET) (envelope-from rdivacky) Date: Wed, 18 Feb 2009 15:09:36 +0100 From: Roman Divacky To: Takahiro Kurosawa Message-ID: <20090218140936.GA52973@freebsd.org> References: <200902181410.n1IEA5Vq060807@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200902181410.n1IEA5Vq060807@freefall.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@FreeBSD.org Subject: Re: kern/131506: pipes in forked procs sometimes hang under Linux emulation 2.6.16 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 14:12:40 -0000 On Wed, Feb 18, 2009 at 02:10:05PM +0000, Takahiro Kurosawa wrote: > The following reply was made to PR kern/131506; it has been noted by GNATS. > > From: Takahiro Kurosawa > To: Kostik Belousov > Cc: bug-followup@freebsd.org > Subject: Re: kern/131506: pipes in forked procs sometimes hang under Linux > emulation 2.6.16 > Date: Wed, 18 Feb 2009 23:08:05 +0900 > > 2009/2/18 Kostik Belousov : > > > Please, resend the patch without base64-encoding, best as a plain/text > > attachment. > > Sure. Sending the patch inline... > The attachment of my previous mail looks broken to me too. > > === sys/amd64/linux32/linux32_machdep.c > ================================================================== > --- sys/amd64/linux32/linux32_machdep.c (revision 188741) > +++ sys/amd64/linux32/linux32_machdep.c (local) > @@ -560,7 +560,7 @@ > /* wait for the children to exit, ie. emulate vfork */ > PROC_LOCK(p2); > while (p2->p_flag & P_PPWAIT) > - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); > + cv_wait(&p2->p_pwait, &p2->p_mtx); > PROC_UNLOCK(p2); > > return (0); > @@ -749,7 +749,7 @@ > /* wait for the children to exit, ie. emulate vfork */ > PROC_LOCK(p2); > while (p2->p_flag & P_PPWAIT) > - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); > + cv_wait(&p2->p_pwait, &p2->p_mtx); > PROC_UNLOCK(p2); > } > > === sys/i386/linux/linux_machdep.c > ================================================================== > --- sys/i386/linux/linux_machdep.c (revision 188741) > +++ sys/i386/linux/linux_machdep.c (local) > @@ -376,7 +376,7 @@ > /* wait for the children to exit, ie. emulate vfork */ > PROC_LOCK(p2); > while (p2->p_flag & P_PPWAIT) > - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); > + cv_wait(&p2->p_pwait, &p2->p_mtx); > PROC_UNLOCK(p2); > > return (0); > @@ -581,7 +581,7 @@ > /* wait for the children to exit, ie. emulate vfork */ > PROC_LOCK(p2); > while (p2->p_flag & P_PPWAIT) > - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); > + cv_wait(&p2->p_pwait, &p2->p_mtx); > PROC_UNLOCK(p2); > } looks correct to me... fork1() indeed uses cv_wait() instead of msleep(). it should be changed to cv_wait From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 18 16:13:06 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C53B1065690; Wed, 18 Feb 2009 16:13:06 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 02E4D8FC19; Wed, 18 Feb 2009 16:13:06 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from freefall.freebsd.org (kib@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1IGD5Vb057610; Wed, 18 Feb 2009 16:13:05 GMT (envelope-from kib@freefall.freebsd.org) Received: (from kib@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1IGD51v057606; Wed, 18 Feb 2009 16:13:05 GMT (envelope-from kib) Date: Wed, 18 Feb 2009 16:13:05 GMT Message-Id: <200902181613.n1IGD51v057606@freefall.freebsd.org> To: arno@heho.snv.jussieu.fr, kib@FreeBSD.org, freebsd-emulation@FreeBSD.org From: kib@FreeBSD.org Cc: Subject: Re: kern/131506: [linux] pipes in forked procs sometimes hang under Linux emulation 2.6.16 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 16:13:06 -0000 Synopsis: [linux] pipes in forked procs sometimes hang under Linux emulation 2.6.16 State-Changed-From-To: open->closed State-Changed-By: kib State-Changed-When: Wed Feb 18 16:12:45 UTC 2009 State-Changed-Why: Patch committed, thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=131506 From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 18 16:20:04 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C407A1065670 for ; Wed, 18 Feb 2009 16:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 96A278FC14 for ; Wed, 18 Feb 2009 16:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1IGK4Mv058963 for ; Wed, 18 Feb 2009 16:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1IGK4oI058962; Wed, 18 Feb 2009 16:20:04 GMT (envelope-from gnats) Date: Wed, 18 Feb 2009 16:20:04 GMT Message-Id: <200902181620.n1IGK4oI058962@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: kern/131506: commit references a PR X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 16:20:05 -0000 The following reply was made to PR kern/131506; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/131506: commit references a PR Date: Wed, 18 Feb 2009 16:11:52 +0000 (UTC) Author: kib Date: Wed Feb 18 16:11:39 2009 New Revision: 188750 URL: http://svn.freebsd.org/changeset/base/188750 Log: Adapt linux emulation to use cv for vfork wait. Submitted by: Takahiro Kurosawa PR: kern/131506 Modified: head/sys/amd64/linux32/linux32_machdep.c head/sys/i386/linux/linux_machdep.c Modified: head/sys/amd64/linux32/linux32_machdep.c ============================================================================== --- head/sys/amd64/linux32/linux32_machdep.c Wed Feb 18 10:02:32 2009 (r188749) +++ head/sys/amd64/linux32/linux32_machdep.c Wed Feb 18 16:11:39 2009 (r188750) @@ -560,7 +560,7 @@ linux_vfork(struct thread *td, struct li /* wait for the children to exit, ie. emulate vfork */ PROC_LOCK(p2); while (p2->p_flag & P_PPWAIT) - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); + cv_wait(&p2->p_pwait, &p2->p_mtx); PROC_UNLOCK(p2); return (0); @@ -749,7 +749,7 @@ linux_clone(struct thread *td, struct li /* wait for the children to exit, ie. emulate vfork */ PROC_LOCK(p2); while (p2->p_flag & P_PPWAIT) - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); + cv_wait(&p2->p_pwait, &p2->p_mtx); PROC_UNLOCK(p2); } Modified: head/sys/i386/linux/linux_machdep.c ============================================================================== --- head/sys/i386/linux/linux_machdep.c Wed Feb 18 10:02:32 2009 (r188749) +++ head/sys/i386/linux/linux_machdep.c Wed Feb 18 16:11:39 2009 (r188750) @@ -376,7 +376,7 @@ linux_vfork(struct thread *td, struct li /* wait for the children to exit, ie. emulate vfork */ PROC_LOCK(p2); while (p2->p_flag & P_PPWAIT) - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); + cv_wait(&p2->p_pwait, &p2->p_mtx); PROC_UNLOCK(p2); return (0); @@ -581,7 +581,7 @@ linux_clone(struct thread *td, struct li /* wait for the children to exit, ie. emulate vfork */ PROC_LOCK(p2); while (p2->p_flag & P_PPWAIT) - msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); + cv_wait(&p2->p_pwait, &p2->p_mtx); PROC_UNLOCK(p2); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 18 19:04:22 2009 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 D6EBC106566C for ; Wed, 18 Feb 2009 19:04:21 +0000 (UTC) (envelope-from subhraveti@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by mx1.freebsd.org (Postfix) with ESMTP id A0CA48FC17 for ; Wed, 18 Feb 2009 19:04:21 +0000 (UTC) (envelope-from subhraveti@gmail.com) Received: by wa-out-1112.google.com with SMTP id k34so18673wah.27 for ; Wed, 18 Feb 2009 11:04:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:references :subject:date:mime-version:content-type:content-transfer-encoding :x-priority:x-msmail-priority:x-mailer:x-mimeole; bh=gbDT26SxmeXTWDKYMeukno/5wNLa9MzZbQZlv9Crqr8=; b=ioe1uTgUH/r98VUZUT8UYxywPBfY+GZBThetnpoNgBMsY/sjaAmRHNgPZ82MiBep2E iw7V1lRqg+gexGoQPbkSreTvWFru0t+AcGVEcufLAwbcgJM+oNVLUhf0FXbwIrxMcfHh 8WcLHAElLxGVsBn92UvbW7PKBYUk56iQbrX0w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:references:subject:date:mime-version :content-type:content-transfer-encoding:x-priority:x-msmail-priority :x-mailer:x-mimeole; b=vlNQk+pxtKsqMze4ihGHHjU//vkKA56KYVUgRSlZs95V4P/zMt8TebDLGXiHXK4xfl b4lXaBscYdDnn8N1MUsCsdBE2p9XMMecSeq2j7VTtVagztdsvWoYUo4fgVcYIZBtNOMy epcwRFkFd1oIe/pI/DCu+1vAQsR4wBwubcCn8= Received: by 10.114.88.1 with SMTP id l1mr3289806wab.9.1234983860628; Wed, 18 Feb 2009 11:04:20 -0800 (PST) Received: from DineshThinkpad (75-54-218-43.lightspeed.mlpsca.sbcglobal.net [75.54.218.43]) by mx.google.com with ESMTPS id q20sm416833pog.22.2009.02.18.11.04.19 (version=SSLv3 cipher=RC4-MD5); Wed, 18 Feb 2009 11:04:19 -0800 (PST) Message-ID: <00d001c991fb$b2582630$8301a8c0@DineshThinkpad> From: "Dinesh Subhraveti" To: References: <00a201c990ba$078763c0$8301a8c0@DineshThinkpad> <20090217225655.GA12991@saturn.kn-bremen.de> Date: Wed, 18 Feb 2009 11:04:15 -0800 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Subject: Re: qemu bsd-user X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 19:04:23 -0000 > On Mon, Feb 16, 2009 at 08:41:40PM -0800, "Dinesh Subhraveti" wrote: >> This may not be the right place for a newbie question, but venturing >> anyway with some hope... >> >> I am interested in the Qemu bsd user emulation, but can't find a copy of >> Qemu source with bsd-user that I can build. The mainline Qemu trunk >> doesn't directly build on FreeBSD and the qemu ports in >> /usr/ports/emulators/ don't have bsd-user. > > Well, I got bsd-user to build a while ago, > http://lists.freebsd.org/pipermail/freebsd-emulation/2008-December/005579.html > (it still builds in my latest snapshot, > http://lists.freebsd.org/pipermail/freebsd-emulation/2009-February/005650.html > ) but it is entirely untested, and as said in the first post it looks like > at least the i386 (host) case needs someone with linker script fu to look > at > it before it can actually work. If you want to help you are more than > welcome tho... :) (you are actually the first one to ask about bsd-user > on FreeBSD that I have seen!) Thanks for the pointers. I wish I could help or at least help myself for now. I have an upcoming research deadline before which I need to figure this magic out... Regards, From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 19 18:00:51 2009 Return-Path: Delivered-To: emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AA46106566C for ; Thu, 19 Feb 2009 18:00:51 +0000 (UTC) (envelope-from arno@heho.snv.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 95A6B8FC14 for ; Thu, 19 Feb 2009 18:00:50 +0000 (UTC) (envelope-from arno@heho.snv.jussieu.fr) Received: from heho.snv.jussieu.fr (heho.snv.jussieu.fr [134.157.184.22]) by shiva.jussieu.fr (8.14.3/jtpda-5.4) with ESMTP id n1JI0mUX003417 ; Thu, 19 Feb 2009 19:00:48 +0100 (CET) X-Ids: 166 Received: from heho.snv.jussieu.fr (localhost [127.0.0.1]) by heho.snv.jussieu.fr (8.14.3/8.14.3) with ESMTP id n1JI0k9V045148; Thu, 19 Feb 2009 19:00:46 +0100 (CET) (envelope-from arno@heho.snv.jussieu.fr) Received: (from arno@localhost) by heho.snv.jussieu.fr (8.14.3/8.14.3/Submit) id n1JI0jpT045145; Thu, 19 Feb 2009 19:00:45 +0100 (CET) (envelope-from arno) To: Takahiro Kurosawa From: "Arno J. Klaassen" References: <200902081700.n18H0EvJ046014@freefall.freebsd.org> Date: Thu, 19 Feb 2009 19:00:45 +0100 In-Reply-To: (Takahiro Kurosawa's message of "Wed\, 18 Feb 2009 00\:19\:56 +0900") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (shiva.jussieu.fr [134.157.0.166]); Thu, 19 Feb 2009 19:00:48 +0100 (CET) X-Virus-Scanned: ClamAV 0.94.2/9013/Thu Feb 19 17:34:10 2009 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at jchkmail.jussieu.fr with ID 499D9E50.001 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 499D9E50.001/134.157.184.22/heho.snv.jussieu.fr/heho.snv.jussieu.fr/ X-j-chkmail-Score: MSGID : 499D9E50.001 on jchkmail.jussieu.fr : j-chkmail score : . : R=. U=. O=. B=0.018 -> S=0.018 X-j-chkmail-Status: Ham Cc: emulation@FreeBSD.org, kib@FreeBSD.org Subject: Re: kern/131506: pipes in forked procs sometimes hang under Linux emulation 2.6.16 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, 19 Feb 2009 18:00:51 -0000 Takahiro Kurosawa writes: > It seems that vfork/exec synchronization was changed recently > but the linux emulation code keeps using the obsolete mechanism. > > The attached patch may fix the problem. yes it seems to do so. Thank you for finding this and thanks to kib@FreeBSD.org for committing. Best regards, Arno From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 19 18:54:15 2009 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 464A710656CE for ; Thu, 19 Feb 2009 18:54:15 +0000 (UTC) (envelope-from lawrence.auster@att.net) Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.121]) by mx1.freebsd.org (Postfix) with ESMTP id 047F98FC3D for ; Thu, 19 Feb 2009 18:54:14 +0000 (UTC) (envelope-from lawrence.auster@att.net) Received: from k4k6l ([75.191.169.91]) by cdptpa-omta04.mail.rr.com with ESMTP id <20090219185410.XLGJ4162.cdptpa-omta04.mail.rr.com@k4k6l> for ; Thu, 19 Feb 2009 18:54:10 +0000 From: "Lawrence Auster" To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset="US-ASCII" Date: Thu, 19 Feb 2009 19:54:05 +0100 X-Priority: 3 Message-Id: <20090219185410.XLGJ4162.cdptpa-omta04.mail.rr.com@k4k6l> Subject: "My race is just nothing": Some thoughts on the political psychology of women X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lawrence.auster@att.net List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2009 18:54:16 -0000 "My race is just nothing": Some thoughts on the political psychology of women By Kevin MacDonald February 19, 2009 It seems that the signs of white dispossession are everywhere these days. Edmund Connelly describes how non-Jewish whites are being pushed out of elite institutions like Harvard. An article titled “The end of white America” catalogues the lack of cultural confidence of whites these days. It quotes a student who says “To be white is to be culturally broke." Writing in vdare.com, David A. Yeagley quotes one of his female students saying “Look ... I don’t see anything about my culture to be proud of. It’s all nothing. My race is just nothing.” Yeagley notes the Cheyenne saying, “A nation is never defeated until the hearts of its women are on the ground.” And he places this in the context of the recent election in which 46% of white women voted for Obama compared to 41% of white men. These percentages are somewhat inflated because they include Jews and immigrants, such as South Asians, who are classified as white but do not identify with the European-American majority. Nevertheless, they do point to a significant gender gap. While it is certainly true that voting for McCain-Palin is not a sign of white consciousness — even implicitly, it is also the case that voting for Obama is a good sign of a lack of racial consciousness for European Americans. The good news, of course, is that a majority of white women did not vote for Obama. And, as Steve Sailer has shown for the 2004 election, if one separated out women who are married and have children, the results would show an even greater tendency to vote against Obama. Nevertheless, there is a real problem. Those of us with some acquaintance with European-Americans who do have an explicit ethnic identity and a sense of their ethnic interests are quite aware that there is a very large sex ratio imbalance at gatherings of like-minded people. The attendees are almost all male — an exception being the redoubtable Virginia Abernethy. And there are stories of men who have stopped attending meetings or who provide support only in the most furtive manner, mainly because their wives are afraid that the attitudes of their husbands could become public and ruin their social life. Making such things public is just the sort of thing that organizations like the SPLC and the ADL love to do. Judith Warner of the New York Times describes the result of an informal "email inquiry" on women's reactions to Obama. Some imagined having sex with Obama and replacing Michelle Obama as First Lady. Others imagined themselves at social engagements with Obama. All wanted deeply to have some of the Obama aura rub off on them. Warner's email contacts doubtless reflect her liberal readership, but I wouldn't be at all surprised if they are quite general, especially among white women who voted for Obama. What does an evolutionary psychologist say about all this? Parenthetically, I realize that the great majority of Americans do not believe in evolution. Nevertheless, evolutionary theory is a very powerful and scientifically credible way of looking at human behavior. It is no accident that one of the main strands of Jewish intellectual activism over the last century has been to oppose evolutionary theory as an explanatory tool in the social sciences. Darwin did indeed have a dangerous idea — dangerous to Jews because it provides a rational grounding for the ethnic identity and interests of European-derived people. The evolutionary theory of sex is one of the bedrocks of evolutionary psychology — probably accounting for half of all the research in the field. The basic idea is simple: Females invest a relatively large amount of time and energy in reproduction. In the world we evolved in, the only way for women to reproduce was to endure a 38-week pregnancy and then nurse the child for an even longer period. Even after nursing, child care was mainly a female responsibility. Because women are committed to this very large investment, they become very valuable in the mating game. And because they are valuable, they become discriminating maters: Just as a worker who puts in more time and energy is in a better bargaining position than one who puts in little time and energy, women become the choosers in the mating game. And what do women want? Women are expected to want men who have high social status. From an evolutionary perspective, such men are attractive because they may be willing to provide valuable resources that would help in supporting the mother and raising the children. (When men do contribute resources, they also become choosy, but that's another story.) And even if a wealthy man does not provide resources, he is likely to have good genes — genes that predispose his children to be successful. In any case, women do indeed prefer wealthy, high-status men. For example, a recent study found that wealthy men give women more orgasms: "The pleasure women get from making love is directly linked to the size of their partner’s bank balance." Other research shows that women are likely to choose higher status men than their husbands when they have affairs, resulting in the possibility of a lower status male helping to raise the children of a higher-status male. What about the idea that evolutionary theory implies that people should be attracted to people who are genetically like themselves? Evolutionary theory predicts that women will be attracted to men who are genetically similar to themselves compared to men who are from a different race or ethnic group. For one thing, this makes them more closely related to their own children. The problem is that this attraction to genetically similar mates is only part of the story. It must compete with the tendency to be attracted to wealthy, powerful men. And quite clearly, the phenomenon where large numbers of white women fantasize about having a relationship with Obama reflects his power and social status, not attraction to a genetically similar person. The media is a major part of the hostile elite, so it is not surprising that it has played a leading role in the idolization of Obama — the slobbering love affair between the mainstream media and Obama. It's the same role that Edmund Connelly has called attention to in his writing on the images of blacks created by Hollywood in recent decades. Black action heroes are now household names, and more than one commentator has pointed out that there were several black presidents in the movies and on television long before Obama was elected. These images from the media tap into women's psychological attraction to high-status males. It was probably fairly common for white women to fantasize about having sex with Will Smith or Denzel Washington or even the "wise and saintly" Morgan Freeman long before the world had ever heard of Barack Obama. Another sex difference that contributes to women's political behavior is that women are generally more nurturant, affectionate, empathic, and caring than men. This is another aspect of female psychology that can easily be derived from evolutionary thinking — the vital importance of nurturing children and developing close family relationships in our evolutionary past. Thus it is not surprising that many of Judith Warner's women not only fantasize about having sex with Obama, they see themselves married to him and becoming first lady. They develop a close and caring relationship with him, or they see him as a good friend. I suppose this is also the reason why women are more likely than men to support social programs that promise to aid children and poor people. This relatively greater empathy and nurturance was certainly adaptive in a world of family groups and close relatives. But in the modern world, it can easily lead to maladaptive altruism and ignoring real dangers. For example, white women enamored of images of sexy, high-status black males are not informed by the mainstream media of the very large racial imbalance in crime, particularly black men raping white women. Another problem with women being relatively high in nurturance and empathy is that these traits are linked to greater compliance and greater inclination to seek the approval and affection of others. Again, these are very adaptive traits in the world of small groups and close relatives. But in a world dominated by elites that are hostile to the interests of whites, these traits can lead to mindless acceptance of anti-white cultural norms. Challenging social norms — even ones that are obviously against one's interests — carries a very high psychological cost to people who seek the approval and affection of others. This implies that once the intellectual and political movements described in The Culture of Critique had seized the intellectual and moral high ground, they became difficult indeed to dislodge. Challenging these norms brings accusations of moral turpitude ringing down from the most prestigious political, media and academic institutions of the society. People who seek the approval and affection of others are definitely not inclined to go there. This in turn may well be a large part of the explanation for why there are so few women at gatherings of European-Americans concerned about the future of their people and culture. This paints a fairly bleak picture. But there are some rays of hope. It is likely that at some point the gap between rhetoric and reality in American life will be so large that no one will believe what they are hearing from the hostile elites that dominate public discourse — much like the Soviet Union in the decades before its fall. When that happens, the cultural icons promoted by the media will lose their credibility and allure as well. And because of the internet, the opportunity to hear divergent opinions and become aware of information that is suppressed by the mainstream media has never been better. All around us we can see the collapse and increasing irrelevance of the old media. The internet has already created communities where prestige and social approval can be obtained completely outside the norms created by our hostile elites. And at least some of these communities are dedicated to transforming America by asserting the legitimacy of white identities and interests. The dispossession of whites is already substantial, but it promises to be a whole lot more obvious as time goes on. As whites become a minority, it is difficult to imagine that they won't develop more of a group consciousness and challenge the prevailing anti-white norms. And that includes even the more nurturant and empathic among us. Source with hyperlinks : http://www.theoccidentalobserver.net/articles/MacDonald-Women.html ------------------------------------- You or someone using your email adress is currently subscribed to Lawrence Auster's Newletter. If you wish to unsubscribe from our mailing list, please let us know by calling to 1 212 865 1284 Thanks, Lawrence Auster, 238 W 101 St Apt. 3B New York, NY 10025 Contact : lawrence.auster@att.net ------------------------------------- From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 19 20:56:46 2009 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 2616E106567D for ; Thu, 19 Feb 2009 20:56:46 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id B7B8B8FC14 for ; Thu, 19 Feb 2009 20:56:45 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 1B5D41D2E1; Thu, 19 Feb 2009 21:56:45 +0100 (CET) Date: Thu, 19 Feb 2009 21:56:45 +0100 From: Ed Schouten To: freebsd-emulation@FreeBSD.org Message-ID: <20090219205645.GF19161@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hUH5gZbnpyIv7Mn4" Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Subject: Making Linux stat() less evil 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, 19 Feb 2009 20:56:46 -0000 --hUH5gZbnpyIv7Mn4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi folks, I may have mentioned this earlier, but our Linuxolator's stat() implementation calls kern_openat(), followed by an translate_fd_major_minor() to perform a device major/minor number lookup. This is very evil, because it causes random chardevs to be opened when you run ls -l /dev. I propose the following patch: http://80386.nl/pub/linux-stat.diff I've copied kern_stat() into the Linuxolator. Not the ideal solution, but it's better than what we have right now. Comments? --=20 Ed Schouten WWW: http://80386.nl/ --hUH5gZbnpyIv7Mn4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmdx40ACgkQ52SDGA2eCwVQvgCbBy8Pw8YVnWVteigBGCyAENFf 3RYAn0KrPbaaiYQOfqKrgQNkR5jdD07u =IttA -----END PGP SIGNATURE----- --hUH5gZbnpyIv7Mn4-- From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 19 21:00:01 2009 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 0B98E1065679 for ; Thu, 19 Feb 2009 21:00:01 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id AD41F8FC0C for ; Thu, 19 Feb 2009 20:59:59 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id C94359CB093; Thu, 19 Feb 2009 21:56:56 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dUfTnXqMDnK8; Thu, 19 Feb 2009 21:56:54 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 2A2A49CB126; Thu, 19 Feb 2009 21:56:54 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n1JKuslW078552; Thu, 19 Feb 2009 21:56:54 +0100 (CET) (envelope-from rdivacky) Date: Thu, 19 Feb 2009 21:56:54 +0100 From: Roman Divacky To: Ed Schouten Message-ID: <20090219205653.GA78242@freebsd.org> References: <20090219205645.GF19161@hoeg.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090219205645.GF19161@hoeg.nl> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@FreeBSD.org Subject: Re: Making Linux stat() less evil 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, 19 Feb 2009 21:00:01 -0000 On Thu, Feb 19, 2009 at 09:56:45PM +0100, Ed Schouten wrote: > Hi folks, > > I may have mentioned this earlier, but our Linuxolator's stat() > implementation calls kern_openat(), followed by an > translate_fd_major_minor() to perform a device major/minor number > lookup. This is very evil, because it causes random chardevs to be > opened when you run ls -l /dev. > > I propose the following patch: > > http://80386.nl/pub/linux-stat.diff > > I've copied kern_stat() into the Linuxolator. Not the ideal solution, > but it's better than what we have right now. Comments? why cant you use kern_statat() and perform this after it returns? + if (S_ISCHR(sb.st_mode) && nd.ni_vp->v_un.vu_cdev != NULL && + linux_driver_get_major_minor( + nd.ni_vp->v_un.vu_cdev->si_name, &major, &minor) == 0) { + sb.st_rdev = (major << 8 | minor); + } From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 19 21:10:02 2009 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 A0821106566C for ; Thu, 19 Feb 2009 21:10:02 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 628AB8FC13 for ; Thu, 19 Feb 2009 21:10:02 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id C6E121D22B; Thu, 19 Feb 2009 22:10:01 +0100 (CET) Resent-From: ed@80386.nl Resent-Date: Thu, 19 Feb 2009 22:10:01 +0100 Resent-Message-ID: <20090219211001.GH19161@hoeg.nl> Resent-To: freebsd-emulation@FreeBSD.org Date: Thu, 19 Feb 2009 22:09:43 +0100 From: Ed Schouten To: Roman Divacky Message-ID: <20090219210943.GG19161@hoeg.nl> References: <20090219205645.GF19161@hoeg.nl> <20090219205653.GA78242@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="B8ONY/mu/bqBak9m" Content-Disposition: inline In-Reply-To: <20090219205653.GA78242@freebsd.org> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Subject: Re: Making Linux stat() less evil 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, 19 Feb 2009 21:10:02 -0000 --B8ONY/mu/bqBak9m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Roman Divacky wrote: > why cant you use kern_statat() and perform this after it returns? >=20 > + if (S_ISCHR(sb.st_mode) && nd.ni_vp->v_un.vu_cdev !=3D NULL && > + linux_driver_get_major_minor( > + nd.ni_vp->v_un.vu_cdev->si_name, &major, &minor) =3D=3D 0) { > + sb.st_rdev =3D (major << 8 | minor); > + } Because I want to use the vnode used by kern_statat() directly. If we perform a second lookup after the call to kern_statat(), it's a race. There is no guarantee you're looking at the same vnode. --=20 Ed Schouten WWW: http://80386.nl/ --B8ONY/mu/bqBak9m Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmdypcACgkQ52SDGA2eCwXsKwCfbBGIweo+V9CKFMuP0ah0gebS p8QAnirn6bsNzu0Swce1gCLdv801KLwG =LYhw -----END PGP SIGNATURE----- --B8ONY/mu/bqBak9m-- From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 19 21:27:50 2009 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 AE2A0106566C for ; Thu, 19 Feb 2009 21:27:50 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 7538B8FC20 for ; Thu, 19 Feb 2009 21:27:50 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id C6FF41D177; Thu, 19 Feb 2009 22:27:49 +0100 (CET) Date: Thu, 19 Feb 2009 22:27:49 +0100 From: Ed Schouten To: freebsd-emulation@FreeBSD.org Message-ID: <20090219212749.GI19161@hoeg.nl> References: <20090219205645.GF19161@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jaoouwwPWoQSJZYp" Content-Disposition: inline In-Reply-To: <20090219205645.GF19161@hoeg.nl> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Subject: Re: Making Linux stat() less evil 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, 19 Feb 2009 21:27:50 -0000 --jaoouwwPWoQSJZYp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Roman, After some discussion with kib@ on IRC, I changed the patch a little: I added a new function called kern_statat_vnhook(). This function allows the Linuxolator to use a hook to modify struct stat, to reduce some redundant code: http://80386.nl/pub/linux-stat.diff Shall I commit this patch to SVN? --=20 Ed Schouten WWW: http://80386.nl/ --jaoouwwPWoQSJZYp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmdztUACgkQ52SDGA2eCwXntwCdGldq96GoV3PcR+JOTP476pzs Ei4An03oRe11mtbgS+mfNPkH73FVnnSy =xAr3 -----END PGP SIGNATURE----- --jaoouwwPWoQSJZYp-- From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 19 22:16:30 2009 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 800701065680 for ; Thu, 19 Feb 2009 22:16:30 +0000 (UTC) (envelope-from nox@saturn.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 0DF3B8FC52 for ; Thu, 19 Feb 2009 22:16:30 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 8B35B1E00337; Thu, 19 Feb 2009 23:16:28 +0100 (CET) Received: from saturn.kn-bremen.de (noident@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id n1JME1Ip018264; Thu, 19 Feb 2009 23:14:01 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id n1JME1UQ018263; Thu, 19 Feb 2009 23:14:01 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Thu, 19 Feb 2009 23:14:00 +0100 To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org Message-ID: <20090219221400.GA17768@saturn.kn-bremen.de> Mail-Followup-To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Subject: kernel kqemu vs vmmouse/vmware svga in qemu (workaround) 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, 19 Feb 2009 22:16:31 -0000 Hi! The fix of the recent -vga vmware breakage in qemu svn... http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg01065.html ...inspired me to take a longer look at the userspace pio problem that renders vmmouse and -vga vmware unworkable with -kernel-kqemu, and now I found out that apparently in this case iopl changes made in the guest dont get propagated back to userland properly. The workaround below gets vmmouse and -vga vmware going again at least for my usual sidux live iso guest and also shows that iopl ends up still being 0 when it should be higher. I'll leave it to people knowing the kqemu code better than me to find the root cause of this bug... Thanx, Juergen Index: qemu/target-i386/op_helper.c @@ -517,6 +517,11 @@ #endif } +#if 1 +#define VMPORT 0x5658 +int vmware_svga_io_base; +#endif + /* check if Port I/O is allowed in TSS */ static inline void check_io(int addr, int size) { @@ -527,6 +532,27 @@ ((env->tr.flags >> DESC_TYPE_SHIFT) & 0xf) != 9 || env->tr.limit < 103) goto fail; +#if 1 + if (addr == VMPORT) { + static int last_vmport_iopl = -1; + int iopl = (env->eflags >> IOPL_SHIFT) & 3; + if (iopl != last_vmport_iopl) { + printf("check_io vmport workaround: iopl = %d\n", iopl); + last_vmport_iopl = iopl; + } + return; + } + if (vmware_svga_io_base && + addr >= vmware_svga_io_base && addr < vmware_svga_io_base + 3) { + static int last_svga_iopl = -1; + int iopl = (env->eflags >> IOPL_SHIFT) & 3; + if (iopl != last_svga_iopl) { + printf("check_io vmware svga workaround: iopl = %d\n", iopl); + last_svga_iopl = iopl; + } + return; + } +#endif io_offset = lduw_kernel(env->tr.base + 0x66); io_offset += (addr >> 3); /* Note: the check needs two bytes */ Index: qemu/hw/vmware_vga.c @@ -1175,12 +1175,19 @@ return 0; } +#if 1 +extern int vmware_svga_io_base; +#endif + static void pci_vmsvga_map_ioport(PCIDevice *pci_dev, int region_num, uint32_t addr, uint32_t size, int type) { struct pci_vmsvga_state_s *d = (struct pci_vmsvga_state_s *) pci_dev; struct vmsvga_state_s *s = &d->chip; +#if 1 + vmware_svga_io_base = addr + SVGA_IO_MUL * SVGA_INDEX_PORT; +#endif register_ioport_read(addr + SVGA_IO_MUL * SVGA_INDEX_PORT, 1, 4, vmsvga_index_read, s); register_ioport_write(addr + SVGA_IO_MUL * SVGA_INDEX_PORT, From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 20 12:23:04 2009 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 518921065674 for ; Fri, 20 Feb 2009 12:23:04 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 0D50E8FC12 for ; Fri, 20 Feb 2009 12:23:03 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 8C3949CB06B; Fri, 20 Feb 2009 13:19:58 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id glMyJnCrPMZc; Fri, 20 Feb 2009 13:19:52 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id CADBE9CB112; Fri, 20 Feb 2009 13:19:52 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n1KCJqxH070579; Fri, 20 Feb 2009 13:19:52 +0100 (CET) (envelope-from rdivacky) Date: Fri, 20 Feb 2009 13:19:52 +0100 From: Roman Divacky To: Ed Schouten Message-ID: <20090220121952.GA70382@freebsd.org> References: <20090219205645.GF19161@hoeg.nl> <20090219212749.GI19161@hoeg.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090219212749.GI19161@hoeg.nl> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@FreeBSD.org Subject: Re: Making Linux stat() less evil X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2009 12:23:05 -0000 On Thu, Feb 19, 2009 at 10:27:49PM +0100, Ed Schouten wrote: > Roman, > > After some discussion with kib@ on IRC, I changed the patch a little: I > added a new function called kern_statat_vnhook(). This function allows > the Linuxolator to use a hook to modify struct stat, to reduce some > redundant code: > > http://80386.nl/pub/linux-stat.diff looks ok to me.. I'd just use __predict_false() to the condition in the kern_statat_vnhook() so we dont pessimise the typical case I didnt test though (nor I plan to) From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 20 12:25:49 2009 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 0DCF21065675 for ; Fri, 20 Feb 2009 12:25:49 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id BD6238FC0C for ; Fri, 20 Feb 2009 12:25:48 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 470AF9CB06B; Fri, 20 Feb 2009 13:22:45 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2CLtZPlte--a; Fri, 20 Feb 2009 13:22:32 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 3C32F9CB126; Fri, 20 Feb 2009 13:22:32 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n1KCMWj9070970; Fri, 20 Feb 2009 13:22:32 +0100 (CET) (envelope-from rdivacky) Date: Fri, 20 Feb 2009 13:22:32 +0100 From: Roman Divacky To: Ed Schouten Message-ID: <20090220122232.GA70879@freebsd.org> References: <20090219205645.GF19161@hoeg.nl> <20090219212749.GI19161@hoeg.nl> <20090220121952.GA70382@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090220121952.GA70382@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@FreeBSD.org Subject: Re: Making Linux stat() less evil X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2009 12:25:49 -0000 On Fri, Feb 20, 2009 at 01:19:52PM +0100, Roman Divacky wrote: > On Thu, Feb 19, 2009 at 10:27:49PM +0100, Ed Schouten wrote: > > Roman, > > > > After some discussion with kib@ on IRC, I changed the patch a little: I > > added a new function called kern_statat_vnhook(). This function allows > > the Linuxolator to use a hook to modify struct stat, to reduce some > > redundant code: > > > > http://80386.nl/pub/linux-stat.diff > > looks ok to me.. I'd just use __predict_false() to the condition ^^^ add From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 20 12:40:21 2009 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 A1A21106564A for ; Fri, 20 Feb 2009 12:40:21 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2178FC12 for ; Fri, 20 Feb 2009 12:40:21 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2D8A3.dip.t-dialin.net [217.226.216.163]) by redbull.bpaserver.net (Postfix) with ESMTP id F24782E0FD; Fri, 20 Feb 2009 13:40:12 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id CA2F1BBF0B; Fri, 20 Feb 2009 13:40:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1235133608; bh=ClG3xJHa7Gz0/lMRlXaEAhyZ3fcezKvqP apzcjt7/8w=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Dryl6Mfps/uR0xn6lfhJhJUmm1yrjDLIm504Pa9H29RuTMXCGfIDat0rjHzOwwwgV yXkjfOtgQFJAhQIgTbN8GTR6uPR3H77+4YHsiX/+ZlkG5eRQUh31r78r6wxTbGEqtXc b+DnyVUhSlY45GDewTSiw2T3cWLLq0yNPgKRNjwWMbRQHjVmFiSq++smMicqAvmYGSc g/dmCpmoha/fBiR7sDUpITYEX11yAinXFrDi1UYY9tcFJZUolLUwlFUjWse+3W1Vc1I G0PGQUKz7mA8Chj6/Rf3CnstiIDfaFj7jcvmV3gd0dQGHQAI8eCs+pbjzaCDlmhVcNt 7rz/zyUKA== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id n1KCe8VM034912; Fri, 20 Feb 2009 13:40:08 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Luna.Leidinger.net (Luna.Leidinger.net [192.168.2.100]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 20 Feb 2009 13:40:08 +0100 Message-ID: <20090220134008.483828kdvanc31xc@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 20 Feb 2009 13:40:08 +0100 From: Alexander Leidinger To: Ed Schouten References: <20090219205645.GF19161@hoeg.nl> <20090219212749.GI19161@hoeg.nl> In-Reply-To: <20090219212749.GI19161@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: F24782E0FD.E4F0C X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@FreeBSD.org Subject: Re: Making Linux stat() less evil X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2009 12:40:21 -0000 Quoting Ed Schouten (from Thu, 19 Feb 2009 22:27:49 +0100): > Roman, > > After some discussion with kib@ on IRC, I changed the patch a little: I > added a new function called kern_statat_vnhook(). This function allows > the Linuxolator to use a hook to modify struct stat, to reduce some > redundant code: > > =09http://80386.nl/pub/linux-stat.diff > > Shall I commit this patch to SVN? From your patch: ---snip--- @@ -2359,6 +2366,8 @@ =09vfslocked =3D NDHASGIANT(&nd); =09error =3D vn_stat(nd.ni_vp, &sb, td->td_ucred, NOCRED, td); =09if (!error) { +=09=09if (hook !=3D NULL) +=09=09=09hook(nd.ni_vp, &sb); =09=09SDT_PROBE(vfs, , stat, mode, path, sb.st_mode, 0, 0, 0); =09=09if (S_ISREG(sb.st_mode)) =09=09=09SDT_PROBE(vfs, , stat, reg, path, pathseg, 0, 0, 0); ---snip--- I think you should call the hook after SDT_PROBE, not before. This way =20 it doesn't matter what the hook does to sb, the dtrace probe will get =20 what it expects (the FreeBSD style sb). I don't think we need to add =20 another dtrace probe here after the probe, as I think this should be =20 handled somewhere near the code of the hook (in this case in the =20 linuxulator... which means I will take care about this in my =20 linuxulator-dtrace branch). Bye, Alexander. --=20 You are a bundle of energy, always on the go. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137