From owner-freebsd-emulation@FreeBSD.ORG Mon Nov 3 11:06:51 2008 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 43DFF106567B for ; Mon, 3 Nov 2008 11:06:51 +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 30CA18FC27 for ; Mon, 3 Nov 2008 11:06:51 +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 mA3B6pT8010870 for ; Mon, 3 Nov 2008 11:06:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mA3B6ofZ010866 for freebsd-emulation@FreeBSD.org; Mon, 3 Nov 2008 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 Nov 2008 11:06:50 GMT Message-Id: <200811031106.mA3B6ofZ010866@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2008 11:06:51 -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 -------------------------------------------------------------------------------- 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 13 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Nov 3 13:56:03 2008 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 9A7C3106568C for ; Mon, 3 Nov 2008 13:56:03 +0000 (UTC) (envelope-from defang@wpgmx2.richardson.ca) Received: from wpgmx2.richardson.ca (wpgmx2.richardson.ca [205.200.190.16]) by mx1.freebsd.org (Postfix) with ESMTP id 4CECA8FC1B for ; Mon, 3 Nov 2008 13:56:03 +0000 (UTC) (envelope-from defang@wpgmx2.richardson.ca) Received: from wpgmx2.richardson.ca (localhost.localdomain [127.0.0.1]) by wpgmx2.richardson.ca (8.13.8/8.13.8) with ESMTP id mA3Cu85S020613 for ; Mon, 3 Nov 2008 06:56:08 -0600 Received: (from defang@localhost) by wpgmx2.richardson.ca (8.13.8/8.13.8/Submit) id mA3CQcto008866 for ; Mon, 3 Nov 2008 06:26:38 -0600 From: Email Gateway To: Date: Mon, 03 Nov 2008 06:26:38 -0600 (CST) Message-ID: <200811030626.mA3CQOeD008805@wpgmx2.richardson.ca> Auto-Submitted: auto-generated MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk X-Scanned-By: MIMEDefang 2.64 on 172.16.254.16 Cc: Subject: Email Gateway (Sender Notification) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2008 13:56:03 -0000 An e-mail you sent with message-id <004b01c93daf$5e73fa80$010ce3d0.103}@squirt.dreamhost.com> was modified by our mail scanning software. The recipients were: Here are the details of the modification: A file attachment named 'DC Pentax 001.zip' was removed as it constituted a potential security hazard. Note: If this file is legitimate, there may be a delay in the Recipient receiving it. If they require the file immediately, please arrange an alternate means of sending it. From owner-freebsd-emulation@FreeBSD.ORG Tue Nov 4 00:38:56 2008 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 1FCCD1065672; Tue, 4 Nov 2008 00:38:56 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: from bombadil.ibest.com.br (bombadil.ibest.com.br [200.140.126.97]) by mx1.freebsd.org (Postfix) with ESMTP id 86FAC8FC14; Tue, 4 Nov 2008 00:38:55 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: from smtp3.brturbo.com.br (smtp3.brte.com.br [200.199.201.175]) by bombadil.ibest.com.br (Postfix) with ESMTP id 43891B758D; Mon, 3 Nov 2008 16:27:39 -0300 (BRT) Received: from lobo (unknown [189.70.97.38]) by smtp3.brturbo.com.br (Postfix) with ESMTP id 7598533E6D; Mon, 3 Nov 2008 20:17:24 -0200 (BRST) From: Mario Lobo Organization: DigiArt Systems To: freebsd-questions@freebsd.org Date: Mon, 3 Nov 2008 19:23:37 -0300 User-Agent: KMail/1.9.7 References: <200810280859.24048@aldan> <20081028181731.GA30591@saturn.kn-bremen.de> <200810302253.m9UMrXdF014739@saturn.kn-bremen.de> In-Reply-To: <200810302253.m9UMrXdF014739@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200811031923.38317.mlobo@digiart.art.br> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org, Juergen Lock Subject: Re: flash9 checklist X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 00:38:56 -0000 On Thursday 30 October 2008 19:53:33 Juergen Lock wrote: > In article <49086F1A.2090500@comcast.net> you write: > >Juergen Lock wrote: > >> Preliminary checklist for getting flash9 to work in native firefox: > >> (flash10 needs more ports work, I shall post about that seperately on > >> -emulation...) If you have additions to this please post a followup to > >> this thread, keeping the Cc: (I'm not on -questions...) > >> > >> 1. You need RELENG_7 from at least Mon Oct 20 11:15:57 2008 UTC > >> (the relevant MFC commits are: > >> http://svn.freebsd.org/viewvc/base?view=revision&revision=183819 > >> http://svn.freebsd.org/viewvc/base?view=revision&revision=184075 > >> - a recent HEAD should also work of course.) There are linprocfs > >> patches for RELENG_6 too (merging the former commit), but the latter > >> commit can't be merged to 6 (and 7.0) since they lack the cpuset bits, > >> so flash9 probably won't work on SMP there. (Although if you have SMP > >> you probably should be running 7 anyway. :) Oh and if you do have SMP > >> you also need to use the ULE scheduler, the cpuset syscalls are not > >> supported with 4BSD. linprocfs patches for 6: > >> http://people.freebsd.org/~nox/linprocfs-6.3.patch > >> http://people.freebsd.org/~nox/linprocfs-6.4.patch > >> > >> 2. Your portstree needs to be from at least Sun Oct 19 17:37:28 2008 UTC > >> (the last www/linux-flashplugin9 commit is: > >> http://lists.freebsd.org/pipermail/cvs-ports/2008-October/158404.html > >> ) > >> > >> 3. Make sure linprocfs is mounted to /compat/linux/proc . > >> > >> 4. Make sure www/nspluginwrapper, www/linux-flashplugin9 and > >> dependencies are installed and up to date(!). (the default > >> emulators/linux_base-fc4 should work, if you want to use a later one > >> don't forget to set compat.linux.osrelease=2.6.16 in sysctl.conf and > >> OVERRIDE_LINUX_BASE_PORT to whichever version you use in make.conf. > >> Note however that on 6, only the default compat.linux.osrelease=2.4.2 > >> really works.) > >> > >> 5. If the plugin doesnt show up in firefox' about:plugins, run > >> nspluginwrapper -i > >> /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so and restart > >> firefox. > >> > >> 6. And remember there's a security advisory for the current version of > >> flash9, > >> http://www.FreeBSD.org/ports/portaudit/78f456fd-9c87-11dd-a55e-00163e00 > >>0016.html (if you use portaudit you need to `make > >> -DDISABLE_VULNERABILITIES ...' to be able to install the port), and fc4 > >> seems to be eol'd too, so you probably want to install something like > >> the noscript firefox extension, > >> https://addons.mozilla.org/en-US/firefox/addon/722 > >> and only allow plugins (and scripts, tho thats a different problem) on > >> sites you trust... > >> > >> And finally, if you still get crashes after following the above even > >> on pages that are reported to work now (like youtube) you probably want > >> to run `ktrace -di firefox...' and look at the output using linux_kdump > >> (thats the devel/linux_kdump port, you want to use a package), paying > >> specific attention to the lines above `PSIG SIGSEGV' (or whichever > >> signal you got), maybe there are still shlibs missing that the plugin > >> needs (NAMI ...something.so...), and if this is the case tell us about > >> it so the appropriate dependencies can be added to the relevant ports. > >> If you can't figure it out I guess it doesn't hurt to post the last > >> few 100 lines of the dump up to the relevant PSIG on -emulation... > >> > >> You may also want to check linked shlibs like this: > >> /compat/linux/bin/sh /compat/linux/usr/bin/ldd > >> /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so and > >> /compat/linux/bin/sh /compat/linux/usr/bin/ldd > >> /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin (if you see `not > >> found' in there you know something is wrong) - although that doesn't > >> show libs that may be dlopen()d at runtime. > > > >Thanks for this. I was able to get linux-flashplugin9 working in native > >Firefox 3.0.3 on FreeBSD 7-STABLE i386. The only additional thing I had > >to do was copy > >/usr/X11R6/lib/browser_plugins/npwrapper.libflashplayer.so into > >~/.mozilla/plugins/ for Firefox to recognize the plugin. > > Yeah I forgot to note that you want to run nspluginwrapper -i > as the user that will run the native browser, not as root, then the > wrapper will go into ~/.mozilla/plugins/... > > > After that > >Youtube, google video, and google maps (incl. street view) work fine, > >but slow. A friend of mine with a very similar setup was not so lucky > >and still has problems with flash9 locking up FF. > > Hmm, lockups I haven't seen yet here. > > HTH, > Juergen > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" It works almost perfectly for me ! Thanks for this, Juergen !. I had to say "almost perfectly" because in myspace, for instance, it takes a while for the "flashies" to start. One thing I noticed is that if I terminate FF, npviewer.bin remains loaded and I have to kill it. Here is what I've got: CPU: Intel(R) Pentium(R) D CPU 3.20GHz (3199.66-MHz 686-class CPU) real memory = 2146304000 (2046 MB) nvidia0: on vgapci0 FreeBSD 7.1-PRERELEASE #3: Wed Oct 29 18:37:07 BRT 2008 (i386) kern.ipc.shmmax: 33554432 -> 1036870912 kern.ipc.shmall: 8192 -> 261072 compat.linux.osrelease: 2.4.2 -> 2.6.16 firefox-3.0.3,1 AND 2.0.0.17 (both work!) linux_base-fc-4_10 nspluginwrapper-1.0.0 linux-flashplugin-9.0r124_2 The mtv site worked fine all the way !! Great oldie stuff ! -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winedows FREE) From owner-freebsd-emulation@FreeBSD.ORG Tue Nov 4 21:59:47 2008 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 093E2106567E; Tue, 4 Nov 2008 21:59:47 +0000 (UTC) (envelope-from kitchetech@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by mx1.freebsd.org (Postfix) with ESMTP id 7086C8FC1C; Tue, 4 Nov 2008 21:59:45 +0000 (UTC) (envelope-from kitchetech@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so3987580fkk.11 for ; Tue, 04 Nov 2008 13:59:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=EW3lw5cI/ECIedx1Ela0LsDJLALLsV9suGyza2FUHnU=; b=L5hLhHsaj0F5jc4d9pLbyyLyQcseWfDruXDCdDqDPpLvaEOXJRqO7TDHkZ39TOzVEU i7iYQriVQ/fVFgQmtuVUCz9T0PrsiMzwN0gems77BnFrb1Lst9bS9B8/HqB58ZzZSEPT xNHvT0JrfZapoSdYOrKNcBNiHSqXN1vn3H0pU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=iXKmWZRxFAqLlJ/N5n5qTG2IB6UIMOXQwD/SuND8dWsuPUO/9up4GNnavQ0U5Hg4nS 6t1jZcotROB5yh65Ufaf7XuSi9YsipS2moFHQxuL1ppEHgpkpnd55OJB5UoTmnZJx6BD L0f39Z//UvLrG6LIoQyTOQF9JF9JIlp8TX+sU= Received: by 10.181.158.3 with SMTP id k3mr23614bko.182.1225835979900; Tue, 04 Nov 2008 13:59:39 -0800 (PST) Received: by 10.181.36.5 with HTTP; Tue, 4 Nov 2008 13:59:39 -0800 (PST) Message-ID: <28283d910811041359obffe74auf0ee5b05b3a4eb6a@mail.gmail.com> Date: Tue, 4 Nov 2008 16:59:39 -0500 From: "matt donovan" To: "Mario Lobo" In-Reply-To: <200811031923.38317.mlobo@digiart.art.br> MIME-Version: 1.0 References: <200810280859.24048@aldan> <20081028181731.GA30591@saturn.kn-bremen.de> <200810302253.m9UMrXdF014739@saturn.kn-bremen.de> <200811031923.38317.mlobo@digiart.art.br> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-emulation@freebsd.org, freebsd-questions@freebsd.org, Juergen Lock Subject: Re: flash9 checklist X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 21:59:47 -0000 On Mon, Nov 3, 2008 at 5:23 PM, Mario Lobo wrote: > On Thursday 30 October 2008 19:53:33 Juergen Lock wrote: > > In article <49086F1A.2090500@comcast.net> you write: > > >Juergen Lock wrote: > > >> Preliminary checklist for getting flash9 to work in native firefox: > > >> (flash10 needs more ports work, I shall post about that seperately on > > >> -emulation...) If you have additions to this please post a followup > to > > >> this thread, keeping the Cc: (I'm not on -questions...) > > >> > > >> 1. You need RELENG_7 from at least Mon Oct 20 11:15:57 2008 UTC > > >> (the relevant MFC commits are: > > >> http://svn.freebsd.org/viewvc/base?view=revision&revision=183819 > > >> http://svn.freebsd.org/viewvc/base?view=revision&revision=184075 > > >> - a recent HEAD should also work of course.) There are linprocfs > > >> patches for RELENG_6 too (merging the former commit), but the latter > > >> commit can't be merged to 6 (and 7.0) since they lack the cpuset bits, > > >> so flash9 probably won't work on SMP there. (Although if you have SMP > > >> you probably should be running 7 anyway. :) Oh and if you do have SMP > > >> you also need to use the ULE scheduler, the cpuset syscalls are not > > >> supported with 4BSD. linprocfs patches for 6: > > >> http://people.freebsd.org/~nox/linprocfs-6.3.patch > > >> http://people.freebsd.org/~nox/linprocfs-6.4.patch > > >> > > >> 2. Your portstree needs to be from at least Sun Oct 19 17:37:28 2008 > UTC > > >> (the last www/linux-flashplugin9 commit is: > > >> > http://lists.freebsd.org/pipermail/cvs-ports/2008-October/158404.html > > >> ) > > >> > > >> 3. Make sure linprocfs is mounted to /compat/linux/proc . > > >> > > >> 4. Make sure www/nspluginwrapper, www/linux-flashplugin9 and > > >> dependencies are installed and up to date(!). (the default > > >> emulators/linux_base-fc4 should work, if you want to use a later one > > >> don't forget to set compat.linux.osrelease=2.6.16 in sysctl.conf and > > >> OVERRIDE_LINUX_BASE_PORT to whichever version you use in make.conf. > > >> Note however that on 6, only the default compat.linux.osrelease=2.4.2 > > >> really works.) > > >> > > >> 5. If the plugin doesnt show up in firefox' about:plugins, run > > >> nspluginwrapper -i > > >> /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so and restart > > >> firefox. > > >> > > >> 6. And remember there's a security advisory for the current version of > > >> flash9, > > >> > http://www.FreeBSD.org/ports/portaudit/78f456fd-9c87-11dd-a55e-00163e00 > > >>0016.html (if you use portaudit you need to `make > > >> -DDISABLE_VULNERABILITIES ...' to be able to install the port), and > fc4 > > >> seems to be eol'd too, so you probably want to install something like > > >> the noscript firefox extension, > > >> https://addons.mozilla.org/en-US/firefox/addon/722 > > >> and only allow plugins (and scripts, tho thats a different problem) on > > >> sites you trust... > > >> > > >> And finally, if you still get crashes after following the above even > > >> on pages that are reported to work now (like youtube) you probably > want > > >> to run `ktrace -di firefox...' and look at the output using > linux_kdump > > >> (thats the devel/linux_kdump port, you want to use a package), paying > > >> specific attention to the lines above `PSIG SIGSEGV' (or whichever > > >> signal you got), maybe there are still shlibs missing that the plugin > > >> needs (NAMI ...something.so...), and if this is the case tell us about > > >> it so the appropriate dependencies can be added to the relevant ports. > > >> If you can't figure it out I guess it doesn't hurt to post the last > > >> few 100 lines of the dump up to the relevant PSIG on -emulation... > > >> > > >> You may also want to check linked shlibs like this: > > >> /compat/linux/bin/sh /compat/linux/usr/bin/ldd > > >> /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so and > > >> /compat/linux/bin/sh /compat/linux/usr/bin/ldd > > >> /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin (if you see > `not > > >> found' in there you know something is wrong) - although that doesn't > > >> show libs that may be dlopen()d at runtime. > > > > > >Thanks for this. I was able to get linux-flashplugin9 working in native > > >Firefox 3.0.3 on FreeBSD 7-STABLE i386. The only additional thing I had > > >to do was copy > > >/usr/X11R6/lib/browser_plugins/npwrapper.libflashplayer.so into > > >~/.mozilla/plugins/ for Firefox to recognize the plugin. > > > > Yeah I forgot to note that you want to run nspluginwrapper -i > > as the user that will run the native browser, not as root, then the > > wrapper will go into ~/.mozilla/plugins/... > > > > > After that > > >Youtube, google video, and google maps (incl. street view) work fine, > > >but slow. A friend of mine with a very similar setup was not so lucky > > >and still has problems with flash9 locking up FF. > > > > Hmm, lockups I haven't seen yet here. > > > > HTH, > > Juergen > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > It works almost perfectly for me ! Thanks for this, Juergen !. > > I had to say "almost perfectly" because in myspace, for instance, it takes > a > while for the "flashies" to start. One thing I noticed is that if I > terminate > FF, npviewer.bin remains loaded and I have to kill it. > > Here is what I've got: > > CPU: Intel(R) Pentium(R) D CPU 3.20GHz (3199.66-MHz 686-class CPU) > real memory = 2146304000 (2046 MB) > nvidia0: on vgapci0 > FreeBSD 7.1-PRERELEASE #3: Wed Oct 29 18:37:07 BRT 2008 (i386) > > kern.ipc.shmmax: 33554432 -> 1036870912 > kern.ipc.shmall: 8192 -> 261072 > compat.linux.osrelease: 2.4.2 -> 2.6.16 > > firefox-3.0.3,1 AND 2.0.0.17 (both work!) > linux_base-fc-4_10 > nspluginwrapper-1.0.0 > linux-flashplugin-9.0r124_2 > > The mtv site worked fine all the way !! Great oldie stuff ! > > -- > Mario Lobo > http://www.mallavoodoo.com.br > FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winedows FREE) > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > Mario try linux_base_fc7 it should stop the freezing. but myself I m having issues with audio and can't figure out why. From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 5 00:07:45 2008 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 326A7106564A; Wed, 5 Nov 2008 00:07:45 +0000 (UTC) (envelope-from kitchetech@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by mx1.freebsd.org (Postfix) with ESMTP id 5E6CC8FC22; Wed, 5 Nov 2008 00:07:44 +0000 (UTC) (envelope-from kitchetech@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so4047108fkk.11 for ; Tue, 04 Nov 2008 16:07:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=RU75imssDaRkzTkjLwM62RdJ02e4kq8jFnMDs2zPmf0=; b=vN9HPw891+yuyuiWxH9me/J/qo4zMr30wPkqdgXij7DILbrIp8gNW+W7OfDYN96ycS wl8G6QKhHQCYZyfbXIfAP4E/LLpQbk5k9FL2y7D4o0z0wPMH1rfBq1thG/ASTIAX3Zgb 0UY38XNskuSincpJjfHIxS9V+1SD5tUYpXnbg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=RNFoK4ehxxPkaQkgBUqoGLXlQ8R4EKq1icu7EPOyy4qIrdTLHrtBfI9H+O8q8RfkEI 1wdNN5MFfDC4kZGLWCekiH7OrQjhScVCX/uJMo1evzNbCQghkmlT01vYPCMq80RTD1gQ YOvddRQFH+VGb/jsATcc0MDNxXR9t6R3zf1no= Received: by 10.181.203.13 with SMTP id f13mr58213bkq.168.1225843662929; Tue, 04 Nov 2008 16:07:42 -0800 (PST) Received: by 10.181.36.5 with HTTP; Tue, 4 Nov 2008 16:07:42 -0800 (PST) Message-ID: <28283d910811041607s3611e2fdp21501f5df5666fbc@mail.gmail.com> Date: Tue, 4 Nov 2008 19:07:42 -0500 From: "matt donovan" To: "Juergen Lock" In-Reply-To: <28283d910810301834sa165d13p4fbb2c43859e3444@mail.gmail.com> MIME-Version: 1.0 References: <200810280859.24048@aldan> <20081028181731.GA30591@saturn.kn-bremen.de> <49086F1A.2090500@comcast.net> <1225293355.1683.75.camel@localhost> <49088643.2080504@aldan.algebra.com> <20081029190551.7f06a204@ernst.jennejohn.org> <20081029190232.GA81068@dchagin.dialup.corbina.ru> <200810302314.m9UNE40j015122@saturn.kn-bremen.de> <28283d910810301834sa165d13p4fbb2c43859e3444@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Mikhail Teterin , freebsd-emulation@freebsd.org, questions@freebsd.org, Steve Polyack , dchagin@freebsd.org Subject: Re: flash9 checklist X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 00:07:45 -0000 On Thu, Oct 30, 2008 at 8:34 PM, matt donovan wrote: > Since I had linux_base-fc4 installed npviewer.bin kept hogging all CPU > power until I killed it for native firefox3. Well I installed linux_base-fc7 > and now flash9 and npviewer.bin works fine in native firefox3. > > ok I tried this for the ones that have firefox3 native installed. > > install linux_base-fc7 and npviewer.bin should stop hogging all the cpu > along with firefox3 freezing up until npviewer.bin is killed. > > I do not use extensions in my firefox3 so the flashblock issue before was > not an issue for me. > > > ok it seems fc7 might be missing a dependency so I upgraded to fc8 for ff3 and now I have sound, since there have been reports that linux_base_f4 does not like ff3 that much I had to upgrade my linux_base From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 5 14:35:52 2008 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 564F7106564A for ; Wed, 5 Nov 2008 14:35:52 +0000 (UTC) (envelope-from korvus@comcast.net) Received: from QMTA09.westchester.pa.mail.comcast.net (qmta09.westchester.pa.mail.comcast.net [76.96.62.96]) by mx1.freebsd.org (Postfix) with ESMTP id EFCBA8FC0A for ; Wed, 5 Nov 2008 14:35:48 +0000 (UTC) (envelope-from korvus@comcast.net) Received: from OMTA12.westchester.pa.mail.comcast.net ([76.96.62.44]) by QMTA09.westchester.pa.mail.comcast.net with comcast id bSbM1a0020xGWP859SblXP; Wed, 05 Nov 2008 14:35:45 +0000 Received: from [192.168.2.164] ([206.210.89.202]) by OMTA12.westchester.pa.mail.comcast.net with comcast id bSbM1a00m4Mx3R23YSbal3; Wed, 05 Nov 2008 14:35:43 +0000 X-Authority-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=pQs5aej7AAAA:8 a=H1wYKUEtKR-fyYCwARwA:9 a=v834ufeY9Y5JsuhdG9cA:7 a=AZJ5skkZ7HvQPrWMtMU94M4ssQEA:4 a=SV7veod9ZcQA:10 a=ufO146cb3fEA:10 Message-ID: <4911AF29.6070707@comcast.net> Date: Wed, 05 Nov 2008 09:35:21 -0500 From: Steve Polyack User-Agent: Thunderbird 2.0.0.17 (X11/20081006) MIME-Version: 1.0 To: Mikhail Teterin , questions@FreeBSD.org, freebsd-emulation@FreeBSD.org References: <200810280859.24048@aldan> <20081028181731.GA30591@saturn.kn-bremen.de> <49086F1A.2090500@comcast.net> In-Reply-To: <49086F1A.2090500@comcast.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: flash9 checklist X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 14:35:52 -0000 Steve Polyack wrote: > Juergen Lock wrote: >> >> Preliminary checklist for getting flash9 to work in native firefox: >> (flash10 needs more ports work, I shall post about that seperately on >> -emulation...) If you have additions to this please post a followup to >> this thread, keeping the Cc: (I'm not on -questions...) >> >> 1. You need RELENG_7 from at least Mon Oct 20 11:15:57 2008 UTC >> (the relevant MFC commits are: >> http://svn.freebsd.org/viewvc/base?view=revision&revision=183819 >> http://svn.freebsd.org/viewvc/base?view=revision&revision=184075 >> - a recent HEAD should also work of course.) There are linprocfs >> patches >> for RELENG_6 too (merging the former commit), but the latter commit >> can't >> be merged to 6 (and 7.0) since they lack the cpuset bits, so flash9 >> probably won't work on SMP there. (Although if you have SMP you >> probably >> should be running 7 anyway. :) Oh and if you do have SMP you also >> need to >> use the ULE scheduler, the cpuset syscalls are not supported with 4BSD. >> linprocfs patches for 6: >> http://people.freebsd.org/~nox/linprocfs-6.3.patch >> http://people.freebsd.org/~nox/linprocfs-6.4.patch >> >> 2. Your portstree needs to be from at least Sun Oct 19 17:37:28 2008 UTC >> (the last www/linux-flashplugin9 commit is: >> http://lists.freebsd.org/pipermail/cvs-ports/2008-October/158404.html >> >> ) >> >> 3. Make sure linprocfs is mounted to /compat/linux/proc . >> >> 4. Make sure www/nspluginwrapper, www/linux-flashplugin9 and >> dependencies >> are installed and up to date(!). (the default emulators/linux_base-fc4 >> should work, if you want to use a later one don't forget to set >> compat.linux.osrelease=2.6.16 in sysctl.conf and >> OVERRIDE_LINUX_BASE_PORT >> to whichever version you use in make.conf. Note however that on 6, only >> the default compat.linux.osrelease=2.4.2 really works.) >> >> 5. If the plugin doesnt show up in firefox' about:plugins, run >> nspluginwrapper -i >> /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so >> and restart firefox. >> >> 6. And remember there's a security advisory for the current version of >> flash9, >> http://www.FreeBSD.org/ports/portaudit/78f456fd-9c87-11dd-a55e-00163e000016.html >> >> (if you use portaudit you need to `make -DDISABLE_VULNERABILITIES ...' >> to be able to install the port), and fc4 seems to be eol'd too, so you >> probably want to install something like the noscript firefox extension, >> https://addons.mozilla.org/en-US/firefox/addon/722 >> and only allow plugins (and scripts, tho thats a different problem) on >> sites you trust... >> >> And finally, if you still get crashes after following the above even >> on pages that are reported to work now (like youtube) you probably want >> to run `ktrace -di firefox...' and look at the output using linux_kdump >> (thats the devel/linux_kdump port, you want to use a package), paying >> specific attention to the lines above `PSIG SIGSEGV' (or whichever >> signal you got), maybe there are still shlibs missing that the plugin >> needs (NAMI ...something.so...), and if this is the case tell us about >> it so the appropriate dependencies can be added to the relevant ports. >> If you can't figure it out I guess it doesn't hurt to post the last >> few 100 lines of the dump up to the relevant PSIG on -emulation... >> >> You may also want to check linked shlibs like this: >> /compat/linux/bin/sh /compat/linux/usr/bin/ldd >> /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so >> and >> /compat/linux/bin/sh /compat/linux/usr/bin/ldd >> /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin >> (if you see `not found' in there you know something is wrong) - although >> that doesn't show libs that may be dlopen()d at runtime. >> >> > Thanks for this. I was able to get linux-flashplugin9 working in > native Firefox 3.0.3 on FreeBSD 7-STABLE i386. The only additional > thing I had to do was copy > /usr/X11R6/lib/browser_plugins/npwrapper.libflashplayer.so into > ~/.mozilla/plugins/ for Firefox to recognize the plugin. After that > Youtube, google video, and google maps (incl. street view) work fine, > but slow. A friend of mine with a very similar setup was not so lucky > and still has problems with flash9 locking up FF. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > So I've done some more testing of this with various linux_base-* installs. Youtube and most things (google maps) work with sound just fine for a few seconds, but after trying to interact or letting them go for a few minute they begin to rapidly eat up main memory. npviewer.bin's usage will top out somewhere around 300-450MB before it core dumps: pid 77684 (npviewer.bin), uid 1042: exited on signal 11 (core dumped). This is on FreeBSD 7-STABLE i386 (as of Tue Oct 28) with native Firefox 3.0.3 still. From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 5 15:06:37 2008 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 A1E1A1065673 for ; Wed, 5 Nov 2008 15:06:37 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from mailrelay009.isp.belgacom.be (mailrelay009.isp.belgacom.be [195.238.6.176]) by mx1.freebsd.org (Postfix) with ESMTP id 3FC4D8FC12 for ; Wed, 5 Nov 2008 15:06:36 +0000 (UTC) (envelope-from tijl@ulyssis.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEALBEEUlR93Sx/2dsb2JhbACBd8pyg1M Received: from 177.116-247-81.adsl-dyn.isp.belgacom.be (HELO kalimero.kotnet.org) ([81.247.116.177]) by relay.skynet.be with ESMTP; 05 Nov 2008 16:06:35 +0100 Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.14.3/8.14.3) with ESMTP id mA5F6T48013545; Wed, 5 Nov 2008 16:06:29 +0100 (CET) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: freebsd-emulation@freebsd.org Date: Wed, 5 Nov 2008 16:06:28 +0100 User-Agent: KMail/1.9.10 References: <200810280859.24048@aldan> <49086F1A.2090500@comcast.net> <4911AF29.6070707@comcast.net> In-Reply-To: <4911AF29.6070707@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811051606.29361.tijl@ulyssis.org> Cc: questions@freebsd.org, Steve Polyack Subject: Re: flash9 checklist X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 15:06:37 -0000 On Wednesday 05 November 2008 15:35:21 Steve Polyack wrote: > So I've done some more testing of this with various linux_base-* > installs. Youtube and most things (google maps) work with sound just > fine for a few seconds, but after trying to interact or letting them go > for a few minute they begin to rapidly eat up main memory. > npviewer.bin's usage will top out somewhere around 300-450MB before it > core dumps: pid 77684 (npviewer.bin), uid 1042: exited on signal 11 > (core dumped). This is on FreeBSD 7-STABLE i386 (as of Tue Oct 28) with > native Firefox 3.0.3 still. Do you have this with linux-firefox? From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 5 16:42:04 2008 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 A6429106564A for ; Wed, 5 Nov 2008 16:42:04 +0000 (UTC) (envelope-from korvus@comcast.net) Received: from QMTA04.emeryville.ca.mail.comcast.net (qmta04.emeryville.ca.mail.comcast.net [76.96.30.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6F9098FC17 for ; Wed, 5 Nov 2008 16:42:04 +0000 (UTC) (envelope-from korvus@comcast.net) Received: from OMTA10.emeryville.ca.mail.comcast.net ([76.96.30.28]) by QMTA04.emeryville.ca.mail.comcast.net with comcast id bULB1a0050cQ2SLA4UY3aC; Wed, 05 Nov 2008 16:32:03 +0000 Received: from [192.168.2.164] ([206.210.89.202]) by OMTA10.emeryville.ca.mail.comcast.net with comcast id bURw1a0064Mx3R28WURzho; Wed, 05 Nov 2008 16:26:07 +0000 X-Authority-Analysis: v=1.0 c=1 a=u-HlfQ0Z21QFUSFFwEEA:9 a=W1kgEZEXXFjRt2pTKpUA:7 a=MqVcYvrAcHXjaY05Ia6b5onS2kUA:4 a=9hlq2oIkD8gA:10 Message-ID: <4911C914.1010705@comcast.net> Date: Wed, 05 Nov 2008 11:25:56 -0500 From: Steve Polyack User-Agent: Thunderbird 2.0.0.17 (X11/20081006) MIME-Version: 1.0 To: Tijl Coosemans References: <200810280859.24048@aldan> <49086F1A.2090500@comcast.net> <4911AF29.6070707@comcast.net> <200811051606.29361.tijl@ulyssis.org> In-Reply-To: <200811051606.29361.tijl@ulyssis.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org, questions@freebsd.org Subject: Re: flash9 checklist X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 16:42:04 -0000 Tijl Coosemans wrote: > On Wednesday 05 November 2008 15:35:21 Steve Polyack wrote: > >> So I've done some more testing of this with various linux_base-* >> installs. Youtube and most things (google maps) work with sound just >> fine for a few seconds, but after trying to interact or letting them go >> for a few minute they begin to rapidly eat up main memory. >> npviewer.bin's usage will top out somewhere around 300-450MB before it >> core dumps: pid 77684 (npviewer.bin), uid 1042: exited on signal 11 >> (core dumped). This is on FreeBSD 7-STABLE i386 (as of Tue Oct 28) with >> native Firefox 3.0.3 still. >> > > Do you have this with linux-firefox? > > Yes, I have the same behavior when using linux-firefox 2.0.17 from ports. From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 5 17:30:57 2008 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 F3F5F1065679; Wed, 5 Nov 2008 17:30:56 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from mailrelay009.isp.belgacom.be (mailrelay009.isp.belgacom.be [195.238.6.176]) by mx1.freebsd.org (Postfix) with ESMTP id 6B26B8FC1B; Wed, 5 Nov 2008 17:30:56 +0000 (UTC) (envelope-from tijl@ulyssis.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAJllEUlR93Sx/2dsb2JhbACBd8tfg1M Received: from 177.116-247-81.adsl-dyn.isp.belgacom.be (HELO kalimero.kotnet.org) ([81.247.116.177]) by relay.skynet.be with ESMTP; 05 Nov 2008 18:30:55 +0100 Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.14.3/8.14.3) with ESMTP id mA5HSNWt014864; Wed, 5 Nov 2008 18:28:24 +0100 (CET) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: Steve Polyack Date: Wed, 5 Nov 2008 18:28:21 +0100 User-Agent: KMail/1.9.10 References: <200810280859.24048@aldan> <200811051606.29361.tijl@ulyssis.org> <4911C914.1010705@comcast.net> In-Reply-To: <4911C914.1010705@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811051828.23041.tijl@ulyssis.org> Cc: freebsd-emulation@freebsd.org, questions@freebsd.org Subject: Re: flash9 checklist X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 17:30:57 -0000 On Wednesday 05 November 2008 17:25:56 Steve Polyack wrote: > Tijl Coosemans wrote: >> On Wednesday 05 November 2008 15:35:21 Steve Polyack wrote: >>> So I've done some more testing of this with various linux_base-* >>> installs. Youtube and most things (google maps) work with sound just >>> fine for a few seconds, but after trying to interact or letting them go >>> for a few minute they begin to rapidly eat up main memory. >>> npviewer.bin's usage will top out somewhere around 300-450MB before it >>> core dumps: pid 77684 (npviewer.bin), uid 1042: exited on signal 11 >>> (core dumped). This is on FreeBSD 7-STABLE i386 (as of Tue Oct 28) with >>> native Firefox 3.0.3 still. >> >> Do you have this with linux-firefox? > > Yes, I have the same behavior when using linux-firefox 2.0.17 from ports. Ok, so it's not a problem with npviewer.bin then. It's possible that when it's eating memory it's already coredumping. I've noticed that coredumps are generally a LOT bigger with 2.6.16 emulation compared to 2.4.2. From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 7 11:12:03 2008 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 4D99E1065670; Fri, 7 Nov 2008 11:12:03 +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 4D2118FC19; Fri, 7 Nov 2008 11:12:02 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 2DAC31D316; Fri, 7 Nov 2008 12:12:01 +0100 (CET) Date: Fri, 7 Nov 2008 12:12:01 +0100 From: Ed Schouten To: emulation@FreeBSD.org, current@FreeBSD.org Message-ID: <20081107111201.GH1165@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Aq4SrlNverAHn87R" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: Request for review: uname(), setdomainname(), getdomainname() cleanups X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 11:12:03 -0000 --Aq4SrlNverAHn87R Content-Type: multipart/mixed; boundary="KbI68ipL6xvRMBYq" Content-Disposition: inline --KbI68ipL6xvRMBYq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello all, I just wrote this patch and I thought I'd better send it to the lists, because it affects a lot of random things (Linux emulation, priv(9) flags, etc). Looking at kern_xxx.c, I see we've got a couple of functions there that actually have to be #ifdef'd with COMPAT_*, while they aren't. Looking at our CVS repository I can already confirm we don't need to implement uname(), setdomainname() and getdomainname() on RELENG_5 and later, so I put them in COMPAT_FREEBSD4. They are implemented as library routines nowdays. I think they could even be marked as COMPAT_43, but just to be sure I picked COMPAT_FREEBSD4. Below is a list of things of interest: - I noticed we have a PRIV_SETDOMAINNAME, but we don't use it inside sysctl_domainname(). This means that you can bypass PRIV_SETDOMAINNAME anyway, so remove it. - I think it's better if we just implement getdomainname() and setdomainname() by calling userland_sysctl(). This makes it less likely to break if we would ever change sysctl_domainname() in kern_mib.c. - To make the linuxolator compile without enabling COMPAT_FREEBSD4, I added a linux_setdomainname(). I also noticed linux_sethostname() called userland_sysctl() without holding Giant. - It wasn't easy to make uname(), setdomainname() and getdomainname() work in COMPAT_FREEBSD32, because we would actually need a "COMPAT4+NOPROTO" option for syscalls.master. Because these system calls aren't likely to be used, I just disabled them. If it turns out we really need them, we could reintroduce them. Any comments? If not, I'll commit it to SVN in a day or two. Thanks! --=20 Ed Schouten WWW: http://80386.nl/ --KbI68ipL6xvRMBYq Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="kern_xxx.diff" Content-Transfer-Encoding: quoted-printable Index: lib/libc/powerpc/sys/Makefile.inc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- lib/libc/powerpc/sys/Makefile.inc (revision 184691) +++ lib/libc/powerpc/sys/Makefile.inc (working copy) @@ -3,8 +3,7 @@ MDASM+=3D brk.S cerror.S exect.S pipe.S ptrace.S sbrk.S setlogin.S =20 # Don't generate default code for these syscalls: -NOASM=3D break.o exit.o getdomainname.o getlogin.o openbsd_poll.o \ - setdomainname.o sstk.o uname.o yield.o +NOASM=3D break.o exit.o getlogin.o openbsd_poll.o sstk.o yield.o =20 PSEUDO=3D _getlogin.o _exit.o .if !defined(WITHOUT_SYSCALL_COMPAT) Index: lib/libc/arm/sys/Makefile.inc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- lib/libc/arm/sys/Makefile.inc (revision 184691) +++ lib/libc/arm/sys/Makefile.inc (working copy) @@ -3,8 +3,7 @@ MDASM=3D Ovfork.S brk.S cerror.S pipe.S ptrace.S sbrk.S shmat.S sigreturn.= S syscall.S =20 # Don't generate default code for these syscalls: -NOASM=3D break.o exit.o getdomainname.o getlogin.o openbsd_poll.o \ - setdomainname.o sstk.o uname.o vfork.o yield.o +NOASM=3D break.o exit.o getlogin.o openbsd_poll.o sstk.o vfork.o yield.o =20 PSEUDO=3D _exit.o _getlogin.o .if !defined(WITHOUT_SYSCALL_COMPAT) Index: lib/libc/sparc64/sys/Makefile.inc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- lib/libc/sparc64/sys/Makefile.inc (revision 184691) +++ lib/libc/sparc64/sys/Makefile.inc (working copy) @@ -18,8 +18,7 @@ MDASM+=3D brk.S cerror.S exect.S pipe.S ptrace.S sbrk.S setlogin.S sigacti= on.S =20 # Don't generate default code for these syscalls: -NOASM=3D break.o exit.o getdomainname.o getlogin.o openbsd_poll.o \ - setdomainname.o sstk.o uname.o yield.o +NOASM=3D break.o exit.o getlogin.o openbsd_poll.o sstk.o yield.o =20 PSEUDO=3D _getlogin.o _exit.o .if !defined(WITHOUT_SYSCALL_COMPAT) Index: lib/libc/ia64/sys/Makefile.inc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- lib/libc/ia64/sys/Makefile.inc (revision 184691) +++ lib/libc/ia64/sys/Makefile.inc (working copy) @@ -4,8 +4,7 @@ sbrk.S setlogin.S sigreturn.S swapcontext.S =20 # Don't generate default code for these syscalls: -NOASM=3D break.o exit.o getdomainname.o getlogin.o openbsd_poll.o \ - setdomainname.o sstk.o uname.o vfork.o yield.o +NOASM=3D break.o exit.o getlogin.o openbsd_poll.o sstk.o vfork.o yield.o =20 PSEUDO=3D _getlogin.o _exit.o .if !defined(WITHOUT_SYSCALL_COMPAT) Index: lib/libc/mips/sys/Makefile.inc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- lib/libc/mips/sys/Makefile.inc (revision 184691) +++ lib/libc/mips/sys/Makefile.inc (working copy) @@ -4,9 +4,8 @@ fork.S pipe.S ptrace.S sbrk.S shmat.S syscall.S =20 # Don't generate default code for these syscalls: -NOASM=3D break.o exit.o ftruncate.o getdomainname.o getlogin.o \ - lseek.o mmap.o openbsd_poll.o pread.o \ - pwrite.o setdomainname.o sstk.o truncate.o uname.o vfork.o yield.o +NOASM=3D break.o exit.o ftruncate.o getlogin.o lseek.o mmap.o \ + openbsd_poll.o pread.o pwrite.o sstk.o truncate.o vfork.o yield.o =20 PSEUDO=3D _exit.o _getlogin.o .if !defined(WITHOUT_SYSCALL_COMPAT) Index: lib/libc/i386/sys/Makefile.inc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- lib/libc/i386/sys/Makefile.inc (revision 184691) +++ lib/libc/i386/sys/Makefile.inc (working copy) @@ -12,8 +12,7 @@ reboot.S sbrk.S setlogin.S sigreturn.S syscall.S =20 # Don't generate default code for these syscalls: -NOASM=3D break.o exit.o getdomainname.o getlogin.o openbsd_poll.o \ - setdomainname.o sstk.o uname.o vfork.o yield.o +NOASM=3D break.o exit.o getlogin.o openbsd_poll.o sstk.o vfork.o yield.o =20 PSEUDO=3D _getlogin.o _exit.o .if !defined(WITHOUT_SYSCALL_COMPAT) Index: lib/libc/amd64/sys/Makefile.inc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- lib/libc/amd64/sys/Makefile.inc (revision 184691) +++ lib/libc/amd64/sys/Makefile.inc (working copy) @@ -7,8 +7,7 @@ reboot.S sbrk.S setlogin.S sigreturn.S =20 # Don't generate default code for these syscalls: -NOASM=3D break.o exit.o getdomainname.o getlogin.o openbsd_poll.o \ - setdomainname.o sstk.o uname.o vfork.o yield.o +NOASM=3D break.o exit.o getlogin.o openbsd_poll.o sstk.o vfork.o yield.o =20 PSEUDO=3D _getlogin.o _exit.o .if !defined(WITHOUT_SYSCALL_COMPAT) Index: sys/kern/init_sysent.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/kern/init_sysent.c (revision 184691) +++ sys/kern/init_sysent.c (working copy) @@ -190,9 +190,9 @@ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 159 =3D nosys */ { AS(lgetfh_args), (sy_call_t *)lgetfh, AUE_LGETFH, NULL, 0, 0 }, /* 160 = =3D lgetfh */ { AS(getfh_args), (sy_call_t *)getfh, AUE_NFS_GETFH, NULL, 0, 0 }, /* 161= =3D getfh */ - { AS(getdomainname_args), (sy_call_t *)getdomainname, AUE_SYSCTL, NULL, 0= , 0 }, /* 162 =3D getdomainname */ - { AS(setdomainname_args), (sy_call_t *)setdomainname, AUE_SYSCTL, NULL, 0= , 0 }, /* 163 =3D setdomainname */ - { AS(uname_args), (sy_call_t *)uname, AUE_NULL, NULL, 0, 0 }, /* 164 =3D = uname */ + { compat4(AS(freebsd4_getdomainname_args),getdomainname), AUE_SYSCTL, NUL= L, 0, 0 }, /* 162 =3D old getdomainname */ + { compat4(AS(freebsd4_setdomainname_args),setdomainname), AUE_SYSCTL, NUL= L, 0, 0 }, /* 163 =3D old setdomainname */ + { compat4(AS(freebsd4_uname_args),uname), AUE_NULL, NULL, 0, 0 }, /* 164 = =3D old uname */ { AS(sysarch_args), (sy_call_t *)sysarch, AUE_SYSARCH, NULL, 0, 0 }, /* 1= 65 =3D sysarch */ { AS(rtprio_args), (sy_call_t *)rtprio, AUE_RTPRIO, NULL, 0, 0 }, /* 166 = =3D rtprio */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 167 =3D nosys */ Index: sys/kern/kern_xxx.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/kern/kern_xxx.c (revision 184691) +++ sys/kern/kern_xxx.c (working copy) @@ -148,6 +148,7 @@ } #endif /* COMPAT_43 */ =20 +#ifdef COMPAT_FREEBSD4 /* * This is the FreeBSD-1.1 compatable uname(2) interface. These days it is * done in libc as a wrapper around a bunch of sysctl's. This must mainta= in @@ -163,9 +164,7 @@ #endif /* ARGSUSED */ int -uname(td, uap) - struct thread *td; - struct uname_args *uap; +freebsd4_uname(struct thread *td, struct freebsd4_uname_args *uap) { int name[2], error; size_t len; @@ -242,22 +241,20 @@ #endif /* ARGSUSED */ int -getdomainname(td, uap) - struct thread *td; - struct getdomainname_args *uap; +freebsd4_getdomainname(struct thread *td, + struct freebsd4_getdomainname_args *uap) { - INIT_VPROCG(TD_TO_VPROCG(td)); - char tmpdomainname[MAXHOSTNAMELEN]; - int domainnamelen; + int name[2]; + int error; + size_t len =3D uap->len; =20 - mtx_lock(&hostname_mtx); - bcopy(V_domainname, tmpdomainname, sizeof(tmpdomainname)); - mtx_unlock(&hostname_mtx); - - domainnamelen =3D strlen(tmpdomainname) + 1; - if ((u_int)uap->len > domainnamelen) - uap->len =3D domainnamelen; - return (copyout(tmpdomainname, uap->domainname, uap->len)); + name[0] =3D CTL_KERN; + name[1] =3D KERN_NISDOMAINNAME; + mtx_lock(&Giant); + error =3D userland_sysctl(td, name, 2, uap->domainname, &len, + 1, 0, 0, 0, 0); + mtx_unlock(&Giant); + return(error); } =20 #ifndef _SYS_SYSPROTO_H_ @@ -268,26 +265,18 @@ #endif /* ARGSUSED */ int -setdomainname(td, uap) - struct thread *td; - struct setdomainname_args *uap; +freebsd4_setdomainname(struct thread *td, + struct freebsd4_setdomainname_args *uap) { - INIT_VPROCG(TD_TO_VPROCG(td)); - char tmpdomainname[MAXHOSTNAMELEN]; - int error, domainnamelen; + int name[2]; + int error; =20 - error =3D priv_check(td, PRIV_SETDOMAINNAME); - if (error) - return (error); - if ((u_int)uap->len > sizeof(tmpdomainname) - 1) - return (EINVAL); - domainnamelen =3D uap->len; - error =3D copyin(uap->domainname, tmpdomainname, uap->len); - if (error =3D=3D 0) { - tmpdomainname[domainnamelen] =3D 0; - mtx_lock(&hostname_mtx); - bcopy(tmpdomainname, V_domainname, sizeof(V_domainname)); - mtx_unlock(&hostname_mtx); - } + name[0] =3D CTL_KERN; + name[1] =3D KERN_NISDOMAINNAME; + mtx_lock(&Giant); + error =3D userland_sysctl(td, name, 2, 0, 0, 0, uap->domainname, + uap->len, 0, 0); + mtx_unlock(&Giant); return (error); } +#endif /* COMPAT_FREEBSD4 */ Index: sys/kern/syscalls.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/kern/syscalls.c (revision 184691) +++ sys/kern/syscalls.c (working copy) @@ -169,9 +169,9 @@ "#159", /* 159 =3D nosys */ "lgetfh", /* 160 =3D lgetfh */ "getfh", /* 161 =3D getfh */ - "getdomainname", /* 162 =3D getdomainname */ - "setdomainname", /* 163 =3D setdomainname */ - "uname", /* 164 =3D uname */ + "compat4.getdomainname", /* 162 =3D old getdomainname */ + "compat4.setdomainname", /* 163 =3D old setdomainname */ + "compat4.uname", /* 164 =3D old uname */ "sysarch", /* 165 =3D sysarch */ "rtprio", /* 166 =3D rtprio */ "#167", /* 167 =3D nosys */ Index: sys/kern/syscalls.master =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/kern/syscalls.master (revision 184691) +++ sys/kern/syscalls.master (working copy) @@ -320,11 +320,11 @@ struct fhandle *fhp); } 161 AUE_NFS_GETFH STD { int getfh(char *fname, \ struct fhandle *fhp); } -162 AUE_SYSCTL STD { int getdomainname(char *domainname, \ +162 AUE_SYSCTL COMPAT4 { int getdomainname(char *domainname, \ int len); } -163 AUE_SYSCTL STD { int setdomainname(char *domainname, \ +163 AUE_SYSCTL COMPAT4 { int setdomainname(char *domainname, \ int len); } -164 AUE_NULL STD { int uname(struct utsname *name); } +164 AUE_NULL COMPAT4 { int uname(struct utsname *name); } 165 AUE_SYSARCH STD { int sysarch(int op, char *parms); } 166 AUE_RTPRIO STD { int rtprio(int function, pid_t pid, \ struct rtprio *rtp); } Index: sys/kern/systrace_args.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/kern/systrace_args.c (revision 184691) +++ sys/kern/systrace_args.c (working copy) @@ -864,29 +864,6 @@ *n_args =3D 2; break; } - /* getdomainname */ - case 162: { - struct getdomainname_args *p =3D params; - uarg[0] =3D (intptr_t) p->domainname; /* char * */ - iarg[1] =3D p->len; /* int */ - *n_args =3D 2; - break; - } - /* setdomainname */ - case 163: { - struct setdomainname_args *p =3D params; - uarg[0] =3D (intptr_t) p->domainname; /* char * */ - iarg[1] =3D p->len; /* int */ - *n_args =3D 2; - break; - } - /* uname */ - case 164: { - struct uname_args *p =3D params; - uarg[0] =3D (intptr_t) p->name; /* struct utsname * */ - *n_args =3D 1; - break; - } /* sysarch */ case 165: { struct sysarch_args *p =3D params; @@ -4441,42 +4418,6 @@ break; }; break; - /* getdomainname */ - case 162: - switch(ndx) { - case 0: - p =3D "char *"; - break; - case 1: - p =3D "int"; - break; - default: - break; - }; - break; - /* setdomainname */ - case 163: - switch(ndx) { - case 0: - p =3D "char *"; - break; - case 1: - p =3D "int"; - break; - default: - break; - }; - break; - /* uname */ - case 164: - switch(ndx) { - case 0: - p =3D "struct utsname *"; - break; - default: - break; - }; - break; /* sysarch */ case 165: switch(ndx) { Index: sys/compat/freebsd32/freebsd32_syscall.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/compat/freebsd32/freebsd32_syscall.h (revision 184691) +++ sys/compat/freebsd32/freebsd32_syscall.h (working copy) @@ -156,9 +156,9 @@ #define FREEBSD32_SYS_freebsd4_freebsd32_statfs 157 #define FREEBSD32_SYS_freebsd4_freebsd32_fstatfs 158 #define FREEBSD32_SYS_getfh 161 -#define FREEBSD32_SYS_getdomainname 162 -#define FREEBSD32_SYS_setdomainname 163 -#define FREEBSD32_SYS_uname 164 + /* 162 is obsolete getdomainname */ + /* 163 is obsolete setdomainname */ + /* 164 is obsolete uname */ #define FREEBSD32_SYS_sysarch 165 #define FREEBSD32_SYS_rtprio 166 #define FREEBSD32_SYS_freebsd32_semsys 169 Index: sys/compat/freebsd32/freebsd32_sysent.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/compat/freebsd32/freebsd32_sysent.c (revision 184691) +++ sys/compat/freebsd32/freebsd32_sysent.c (working copy) @@ -200,9 +200,9 @@ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 159 =3D nosys */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 160 =3D lgetfh */ { AS(getfh_args), (sy_call_t *)getfh, AUE_NFS_GETFH, NULL, 0, 0 }, /* 161= =3D getfh */ - { AS(getdomainname_args), (sy_call_t *)getdomainname, AUE_SYSCTL, NULL, 0= , 0 }, /* 162 =3D getdomainname */ - { AS(setdomainname_args), (sy_call_t *)setdomainname, AUE_SYSCTL, NULL, 0= , 0 }, /* 163 =3D setdomainname */ - { AS(uname_args), (sy_call_t *)uname, AUE_NULL, NULL, 0, 0 }, /* 164 =3D = uname */ + { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 162 =3D obsolete ge= tdomainname */ + { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 163 =3D obsolete se= tdomainname */ + { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 164 =3D obsolete un= ame */ { AS(sysarch_args), (sy_call_t *)sysarch, AUE_SYSARCH, NULL, 0, 0 }, /* 1= 65 =3D sysarch */ { AS(rtprio_args), (sy_call_t *)rtprio, AUE_RTPRIO, NULL, 0, 0 }, /* 166 = =3D rtprio */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 167 =3D nosys */ Index: sys/compat/freebsd32/syscalls.master =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/compat/freebsd32/syscalls.master (revision 184691) +++ sys/compat/freebsd32/syscalls.master (working copy) @@ -295,11 +295,9 @@ 160 AUE_LGETFH UNIMPL lgetfh 161 AUE_NFS_GETFH NOPROTO { int getfh(char *fname, \ struct fhandle *fhp); } -162 AUE_SYSCTL NOPROTO { int getdomainname(char *domainname, \ - int len); } -163 AUE_SYSCTL NOPROTO { int setdomainname(char *domainname, \ - int len); } -164 AUE_NULL NOPROTO { int uname(struct utsname *name); } +162 AUE_NULL OBSOL getdomainname +163 AUE_NULL OBSOL setdomainname +164 AUE_NULL OBSOL uname 165 AUE_SYSARCH NOPROTO { int sysarch(int op, char *parms); } 166 AUE_RTPRIO NOPROTO { int rtprio(int function, pid_t pid, \ struct rtprio *rtp); } Index: sys/compat/freebsd32/freebsd32_syscalls.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/compat/freebsd32/freebsd32_syscalls.c (revision 184691) +++ sys/compat/freebsd32/freebsd32_syscalls.c (working copy) @@ -169,9 +169,9 @@ "#159", /* 159 =3D nosys */ "#160", /* 160 =3D lgetfh */ "getfh", /* 161 =3D getfh */ - "getdomainname", /* 162 =3D getdomainname */ - "setdomainname", /* 163 =3D setdomainname */ - "uname", /* 164 =3D uname */ + "obs_getdomainname", /* 162 =3D obsolete getdomainname */ + "obs_setdomainname", /* 163 =3D obsolete setdomainname */ + "obs_uname", /* 164 =3D obsolete uname */ "sysarch", /* 165 =3D sysarch */ "rtprio", /* 166 =3D rtprio */ "#167", /* 167 =3D nosys */ Index: sys/compat/linux/linux_misc.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/compat/linux/linux_misc.c (revision 184691) +++ sys/compat/linux/linux_misc.c (working copy) @@ -1682,6 +1682,7 @@ linux_sethostname(struct thread *td, struct linux_sethostname_args *args) { int name[2]; + int error; =20 #ifdef DEBUG if (ldebug(sethostname)) @@ -1690,11 +1691,34 @@ =20 name[0] =3D CTL_KERN; name[1] =3D KERN_HOSTNAME; - return (userland_sysctl(td, name, 2, 0, 0, 0, args->hostname, - args->len, 0, 0)); + mtx_lock(&Giant); + error =3D userland_sysctl(td, name, 2, 0, 0, 0, args->hostname, + args->len, 0, 0); + mtx_unlock(&Giant); + return (error); } =20 int +linux_setdomainname(struct thread *td, struct linux_setdomainname_args *ar= gs) +{ + int name[2]; + int error; + +#ifdef DEBUG + if (ldebug(setdomainname)) + printf(ARGS(setdomainname, "*, %i"), args->len); +#endif + + name[0] =3D CTL_KERN; + name[1] =3D KERN_NISDOMAINNAME; + mtx_lock(&Giant); + error =3D userland_sysctl(td, name, 2, 0, 0, 0, args->name, + args->len, 0, 0); + mtx_unlock(&Giant); + return (error); +} + +int linux_exit_group(struct thread *td, struct linux_exit_group_args *args) { struct linux_emuldata *em, *td_em, *tmp_em; Index: sys/i386/linux/linux_syscall.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/i386/linux/linux_syscall.h (revision 184691) +++ sys/i386/linux/linux_syscall.h (working copy) @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/i386/linux/syscalls.master,v 1.93 2008/05= /13 20:01:27 rdivacky Exp=20 + * created from FreeBSD: head/sys/i386/linux/syscalls.master 178976 2008-0= 5-13 20:01:27Z rdivacky=20 */ =20 #define LINUX_SYS_exit 1 @@ -116,7 +116,7 @@ #define LINUX_SYS_fsync 118 #define LINUX_SYS_linux_sigreturn 119 #define LINUX_SYS_linux_clone 120 -#define LINUX_SYS_setdomainname 121 +#define LINUX_SYS_linux_setdomainname 121 #define LINUX_SYS_linux_newuname 122 #define LINUX_SYS_linux_modify_ldt 123 #define LINUX_SYS_linux_adjtimex 124 Index: sys/i386/linux/linux_sysent.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/i386/linux/linux_sysent.c (revision 184691) +++ sys/i386/linux/linux_sysent.c (working copy) @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/i386/linux/syscalls.master,v 1.93 2008/05= /13 20:01:27 rdivacky Exp=20 + * created from FreeBSD: head/sys/i386/linux/syscalls.master 178976 2008-0= 5-13 20:01:27Z rdivacky=20 */ =20 #include @@ -139,7 +139,7 @@ { AS(fsync_args), (sy_call_t *)fsync, AUE_FSYNC, NULL, 0, 0 }, /* 118 =3D= fsync */ { AS(linux_sigreturn_args), (sy_call_t *)linux_sigreturn, AUE_SIGRETURN, = NULL, 0, 0 }, /* 119 =3D linux_sigreturn */ { AS(linux_clone_args), (sy_call_t *)linux_clone, AUE_RFORK, NULL, 0, 0 }= , /* 120 =3D linux_clone */ - { AS(setdomainname_args), (sy_call_t *)setdomainname, AUE_SYSCTL, NULL, 0= , 0 }, /* 121 =3D setdomainname */ + { AS(linux_setdomainname_args), (sy_call_t *)linux_setdomainname, AUE_SYS= CTL, NULL, 0, 0 }, /* 121 =3D linux_setdomainname */ { AS(linux_newuname_args), (sy_call_t *)linux_newuname, AUE_NULL, NULL, 0= , 0 }, /* 122 =3D linux_newuname */ { AS(linux_modify_ldt_args), (sy_call_t *)linux_modify_ldt, AUE_NULL, NUL= L, 0, 0 }, /* 123 =3D linux_modify_ldt */ { 0, (sy_call_t *)linux_adjtimex, AUE_ADJTIME, NULL, 0, 0 }, /* 124 =3D l= inux_adjtimex */ Index: sys/i386/linux/syscalls.master =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/i386/linux/syscalls.master (revision 184691) +++ sys/i386/linux/syscalls.master (working copy) @@ -217,7 +217,7 @@ ; linux uses some strange calling convention here so we have to use the du= mmy arg 120 AUE_RFORK STD { int linux_clone(l_int flags, void *stack, \ void *parent_tidptr, int dummy, void * child_tidptr); } -121 AUE_SYSCTL NOPROTO { int setdomainname(char *name, \ +121 AUE_SYSCTL STD { int linux_setdomainname(char *name, \ int len); } 122 AUE_NULL STD { int linux_newuname( \ struct l_new_utsname *buf); } Index: sys/i386/linux/linux_proto.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/i386/linux/linux_proto.h (revision 184691) +++ sys/i386/linux/linux_proto.h (working copy) @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/i386/linux/syscalls.master,v 1.93 2008/05= /13 20:01:27 rdivacky Exp=20 + * created from FreeBSD: head/sys/i386/linux/syscalls.master 178976 2008-0= 5-13 20:01:27Z rdivacky=20 */ =20 #ifndef _LINUX_SYSPROTO_H_ @@ -381,6 +381,10 @@ char dummy_l_[PADL_(int)]; int dummy; char dummy_r_[PADR_(int)]; char child_tidptr_l_[PADL_(void *)]; void * child_tidptr; char child_tidp= tr_r_[PADR_(void *)]; }; +struct linux_setdomainname_args { + char name_l_[PADL_(char *)]; char * name; char name_r_[PADR_(char *)]; + char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; +}; struct linux_newuname_args { char buf_l_[PADL_(struct l_new_utsname *)]; struct l_new_utsname * buf; c= har buf_r_[PADR_(struct l_new_utsname *)]; }; @@ -1097,6 +1101,7 @@ int linux_ipc(struct thread *, struct linux_ipc_args *); int linux_sigreturn(struct thread *, struct linux_sigreturn_args *); int linux_clone(struct thread *, struct linux_clone_args *); +int linux_setdomainname(struct thread *, struct linux_setdomainname_args *= ); int linux_newuname(struct thread *, struct linux_newuname_args *); int linux_modify_ldt(struct thread *, struct linux_modify_ldt_args *); int linux_adjtimex(struct thread *, struct linux_adjtimex_args *); @@ -1360,6 +1365,7 @@ #define LINUX_SYS_AUE_linux_ipc AUE_NULL #define LINUX_SYS_AUE_linux_sigreturn AUE_SIGRETURN #define LINUX_SYS_AUE_linux_clone AUE_RFORK +#define LINUX_SYS_AUE_linux_setdomainname AUE_SYSCTL #define LINUX_SYS_AUE_linux_newuname AUE_NULL #define LINUX_SYS_AUE_linux_modify_ldt AUE_NULL #define LINUX_SYS_AUE_linux_adjtimex AUE_ADJTIME Index: sys/amd64/linux32/linux32_syscall.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/amd64/linux32/linux32_syscall.h (revision 184691) +++ sys/amd64/linux32/linux32_syscall.h (working copy) @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/amd64/linux32/syscalls.master,v 1.34 2008= /05/13 20:01:26 rdivacky Exp=20 + * created from FreeBSD: head/sys/amd64/linux32/syscalls.master 178976 200= 8-05-13 20:01:27Z rdivacky=20 */ =20 #define LINUX_SYS_exit 1 @@ -112,7 +112,7 @@ #define LINUX_SYS_fsync 118 #define LINUX_SYS_linux_sigreturn 119 #define LINUX_SYS_linux_clone 120 -#define LINUX_SYS_setdomainname 121 +#define LINUX_SYS_linux_setdomainname 121 #define LINUX_SYS_linux_newuname 122 #define LINUX_SYS_linux_adjtimex 124 #define LINUX_SYS_linux_mprotect 125 Index: sys/amd64/linux32/syscalls.master =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/amd64/linux32/syscalls.master (revision 184691) +++ sys/amd64/linux32/syscalls.master (working copy) @@ -216,7 +216,7 @@ ; linux uses some strange calling convention here so we have to use the du= mmy arg 120 AUE_RFORK STD { int linux_clone(l_int flags, void *stack, \ void *parent_tidptr, int dummy, void * child_tidptr); } -121 AUE_SYSCTL NOPROTO { int setdomainname(char *name, \ +121 AUE_SYSCTL STD { int linux_setdomainname(char *name, \ int len); } 122 AUE_NULL STD { int linux_newuname( \ struct l_new_utsname *buf); } Index: sys/amd64/linux32/linux32_sysent.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/amd64/linux32/linux32_sysent.c (revision 184691) +++ sys/amd64/linux32/linux32_sysent.c (working copy) @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/amd64/linux32/syscalls.master,v 1.34 2008= /05/13 20:01:26 rdivacky Exp=20 + * created from FreeBSD: head/sys/amd64/linux32/syscalls.master 178976 200= 8-05-13 20:01:27Z rdivacky=20 */ =20 #include "opt_compat.h" @@ -140,7 +140,7 @@ { AS(fsync_args), (sy_call_t *)fsync, AUE_FSYNC, NULL, 0, 0 }, /* 118 =3D= fsync */ { AS(linux_sigreturn_args), (sy_call_t *)linux_sigreturn, AUE_SIGRETURN, = NULL, 0, 0 }, /* 119 =3D linux_sigreturn */ { AS(linux_clone_args), (sy_call_t *)linux_clone, AUE_RFORK, NULL, 0, 0 }= , /* 120 =3D linux_clone */ - { AS(setdomainname_args), (sy_call_t *)setdomainname, AUE_SYSCTL, NULL, 0= , 0 }, /* 121 =3D setdomainname */ + { AS(linux_setdomainname_args), (sy_call_t *)linux_setdomainname, AUE_SYS= CTL, NULL, 0, 0 }, /* 121 =3D linux_setdomainname */ { AS(linux_newuname_args), (sy_call_t *)linux_newuname, AUE_NULL, NULL, 0= , 0 }, /* 122 =3D linux_newuname */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 123 =3D modify_ldt = */ { 0, (sy_call_t *)linux_adjtimex, AUE_ADJTIME, NULL, 0, 0 }, /* 124 =3D l= inux_adjtimex */ Index: sys/amd64/linux32/linux32_proto.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/amd64/linux32/linux32_proto.h (revision 184691) +++ sys/amd64/linux32/linux32_proto.h (working copy) @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/amd64/linux32/syscalls.master,v 1.34 2008= /05/13 20:01:26 rdivacky Exp=20 + * created from FreeBSD: head/sys/amd64/linux32/syscalls.master 178976 200= 8-05-13 20:01:27Z rdivacky=20 */ =20 #ifndef _LINUX_SYSPROTO_H_ @@ -378,6 +378,10 @@ char dummy_l_[PADL_(int)]; int dummy; char dummy_r_[PADR_(int)]; char child_tidptr_l_[PADL_(void *)]; void * child_tidptr; char child_tidp= tr_r_[PADR_(void *)]; }; +struct linux_setdomainname_args { + char name_l_[PADL_(char *)]; char * name; char name_r_[PADR_(char *)]; + char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; +}; struct linux_newuname_args { char buf_l_[PADL_(struct l_new_utsname *)]; struct l_new_utsname * buf; c= har buf_r_[PADR_(struct l_new_utsname *)]; }; @@ -1077,6 +1081,7 @@ int linux_ipc(struct thread *, struct linux_ipc_args *); int linux_sigreturn(struct thread *, struct linux_sigreturn_args *); int linux_clone(struct thread *, struct linux_clone_args *); +int linux_setdomainname(struct thread *, struct linux_setdomainname_args *= ); int linux_newuname(struct thread *, struct linux_newuname_args *); int linux_adjtimex(struct thread *, struct linux_adjtimex_args *); int linux_mprotect(struct thread *, struct linux_mprotect_args *); @@ -1339,6 +1344,7 @@ #define LINUX_SYS_AUE_linux_ipc AUE_NULL #define LINUX_SYS_AUE_linux_sigreturn AUE_SIGRETURN #define LINUX_SYS_AUE_linux_clone AUE_RFORK +#define LINUX_SYS_AUE_linux_setdomainname AUE_SYSCTL #define LINUX_SYS_AUE_linux_newuname AUE_NULL #define LINUX_SYS_AUE_linux_adjtimex AUE_ADJTIME #define LINUX_SYS_AUE_linux_mprotect AUE_MPROTECT Index: sys/sys/syscall.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/sys/syscall.h (revision 184691) +++ sys/sys/syscall.h (working copy) @@ -161,9 +161,9 @@ #define SYS_freebsd4_fstatfs 158 #define SYS_lgetfh 160 #define SYS_getfh 161 -#define SYS_getdomainname 162 -#define SYS_setdomainname 163 -#define SYS_uname 164 +#define SYS_freebsd4_getdomainname 162 +#define SYS_freebsd4_setdomainname 163 +#define SYS_freebsd4_uname 164 #define SYS_sysarch 165 #define SYS_rtprio 166 #define SYS_semsys 169 Index: sys/sys/syscall.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/sys/syscall.mk (revision 184691) +++ sys/sys/syscall.mk (working copy) @@ -113,9 +113,9 @@ freebsd4_fstatfs.o \ lgetfh.o \ getfh.o \ - getdomainname.o \ - setdomainname.o \ - uname.o \ + freebsd4_getdomainname.o \ + freebsd4_setdomainname.o \ + freebsd4_uname.o \ sysarch.o \ rtprio.o \ semsys.o \ Index: sys/sys/sysproto.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/sys/sysproto.h (revision 184691) +++ sys/sys/sysproto.h (working copy) @@ -500,17 +500,6 @@ char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)]; char fhp_l_[PADL_(struct fhandle *)]; struct fhandle * fhp; char fhp_r_[P= ADR_(struct fhandle *)]; }; -struct getdomainname_args { - char domainname_l_[PADL_(char *)]; char * domainname; char domainname_r_[= PADR_(char *)]; - char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; -}; -struct setdomainname_args { - char domainname_l_[PADL_(char *)]; char * domainname; char domainname_r_[= PADR_(char *)]; - char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; -}; -struct uname_args { - char name_l_[PADL_(struct utsname *)]; struct utsname * name; char name_r= _[PADR_(struct utsname *)]; -}; struct sysarch_args { char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)]; @@ -1743,9 +1732,6 @@ int nfssvc(struct thread *, struct nfssvc_args *); int lgetfh(struct thread *, struct lgetfh_args *); int getfh(struct thread *, struct getfh_args *); -int getdomainname(struct thread *, struct getdomainname_args *); -int setdomainname(struct thread *, struct setdomainname_args *); -int uname(struct thread *, struct uname_args *); int sysarch(struct thread *, struct sysarch_args *); int rtprio(struct thread *, struct rtprio_args *); int semsys(struct thread *, struct semsys_args *); @@ -2181,6 +2167,17 @@ char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char buf_l_[PADL_(struct ostatfs *)]; struct ostatfs * buf; char buf_r_[P= ADR_(struct ostatfs *)]; }; +struct freebsd4_getdomainname_args { + char domainname_l_[PADL_(char *)]; char * domainname; char domainname_r_[= PADR_(char *)]; + char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; +}; +struct freebsd4_setdomainname_args { + char domainname_l_[PADL_(char *)]; char * domainname; char domainname_r_[= PADR_(char *)]; + char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; +}; +struct freebsd4_uname_args { + char name_l_[PADL_(struct utsname *)]; struct utsname * name; char name_r= _[PADR_(struct utsname *)]; +}; struct freebsd4_fhstatfs_args { char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fh= p; char u_fhp_r_[PADR_(const struct fhandle *)]; char buf_l_[PADL_(struct ostatfs *)]; struct ostatfs * buf; char buf_r_[P= ADR_(struct ostatfs *)]; @@ -2205,6 +2202,9 @@ int freebsd4_getfsstat(struct thread *, struct freebsd4_getfsstat_args *); int freebsd4_statfs(struct thread *, struct freebsd4_statfs_args *); int freebsd4_fstatfs(struct thread *, struct freebsd4_fstatfs_args *); +int freebsd4_getdomainname(struct thread *, struct freebsd4_getdomainname_= args *); +int freebsd4_setdomainname(struct thread *, struct freebsd4_setdomainname_= args *); +int freebsd4_uname(struct thread *, struct freebsd4_uname_args *); int freebsd4_fhstatfs(struct thread *, struct freebsd4_fhstatfs_args *); int freebsd4_sendfile(struct thread *, struct freebsd4_sendfile_args *); int freebsd4_sigaction(struct thread *, struct freebsd4_sigaction_args *); @@ -2325,9 +2325,6 @@ #define SYS_AUE_nfssvc AUE_NFS_SVC #define SYS_AUE_lgetfh AUE_LGETFH #define SYS_AUE_getfh AUE_NFS_GETFH -#define SYS_AUE_getdomainname AUE_SYSCTL -#define SYS_AUE_setdomainname AUE_SYSCTL -#define SYS_AUE_uname AUE_NULL #define SYS_AUE_sysarch AUE_SYSARCH #define SYS_AUE_rtprio AUE_RTPRIO #define SYS_AUE_semsys AUE_SEMSYS Index: sys/sys/priv.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/sys/priv.h (revision 184691) +++ sys/sys/priv.h (working copy) @@ -84,7 +84,6 @@ #define PRIV_CLOCK_SETTIME 17 /* Can call clock_settime. */ #define PRIV_SETTIMEOFDAY 18 /* Can call settimeofday. */ #define PRIV_SETHOSTID 19 /* Can call sethostid. */ -#define PRIV_SETDOMAINNAME 20 /* Can call setdomainname. */ =20 /* * Audit subsystem privileges. --KbI68ipL6xvRMBYq-- --Aq4SrlNverAHn87R Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkkUIoEACgkQ52SDGA2eCwX88ACggEVBj9DtkbCO+pfU/TD7VqBx r+8AnRc0uR3ht5WZAg0kI1FtzOUrSN1W =8Dka -----END PGP SIGNATURE----- --Aq4SrlNverAHn87R-- From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 7 11:34:37 2008 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 5C122106564A for ; Fri, 7 Nov 2008 11:34:37 +0000 (UTC) (envelope-from rdivacky@lev.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 1A1E98FC12 for ; Fri, 7 Nov 2008 11:34:37 +0000 (UTC) (envelope-from rdivacky@lev.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 53BF29CB13B; Fri, 7 Nov 2008 12:13:08 +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 j6RpKGIvzsIK; Fri, 7 Nov 2008 12:13:05 +0100 (CET) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id B26C99CB455; Fri, 7 Nov 2008 12:13:05 +0100 (CET) Received: (from rdivacky@localhost) by lev.vlakno.cz (8.14.2/8.14.2/Submit) id mA7BD5bG072062; Fri, 7 Nov 2008 12:13:05 +0100 (CET) (envelope-from rdivacky) Date: Fri, 7 Nov 2008 12:13:05 +0100 From: Roman Divacky To: Ed Schouten Message-ID: <20081107111305.GA71431@freebsd.org> References: <20081107111201.GH1165@hoeg.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081107111201.GH1165@hoeg.nl> User-Agent: Mutt/1.4.2.3i Cc: emulation@FreeBSD.org, current@FreeBSD.org Subject: Re: Request for review: uname(), setdomainname(), getdomainname() cleanups X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 11:34:37 -0000 On Fri, Nov 07, 2008 at 12:12:01PM +0100, Ed Schouten wrote: > Hello all, > > I just wrote this patch and I thought I'd better send it to the lists, > because it affects a lot of random things (Linux emulation, priv(9) > flags, etc). > > Looking at kern_xxx.c, I see we've got a couple of functions there that > actually have to be #ifdef'd with COMPAT_*, while they aren't. Looking > at our CVS repository I can already confirm we don't need to implement > uname(), setdomainname() and getdomainname() on RELENG_5 and later, so I > put them in COMPAT_FREEBSD4. They are implemented as library routines > nowdays. I think they could even be marked as COMPAT_43, but just to be > sure I picked COMPAT_FREEBSD4. > > Below is a list of things of interest: > > - I noticed we have a PRIV_SETDOMAINNAME, but we don't use it inside > sysctl_domainname(). This means that you can bypass PRIV_SETDOMAINNAME > anyway, so remove it. > > - I think it's better if we just implement getdomainname() and > setdomainname() by calling userland_sysctl(). This makes it less > likely to break if we would ever change sysctl_domainname() in > kern_mib.c. > > - To make the linuxolator compile without enabling COMPAT_FREEBSD4, I > added a linux_setdomainname(). I also noticed linux_sethostname() > called userland_sysctl() without holding Giant. > > - It wasn't easy to make uname(), setdomainname() and getdomainname() > work in COMPAT_FREEBSD32, because we would actually need a > "COMPAT4+NOPROTO" option for syscalls.master. Because these system > calls aren't likely to be used, I just disabled them. If it turns out > we really need them, we could reintroduce them. > > Any comments? If not, I'll commit it to SVN in a day or two. Thanks! I just quickly looked at it but I think it's correct and I like the patch. OK from me From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 7 17:58:01 2008 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 968FD106567B for ; Fri, 7 Nov 2008 17:58:01 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id D4D9F8FC1B for ; Fri, 7 Nov 2008 17:58:00 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA22895 for ; Fri, 07 Nov 2008 19:45:00 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <49147E9B.4050109@icyb.net.ua> Date: Fri, 07 Nov 2008 19:44:59 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081106) MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: /etc/rc.d/abi: can't understand linux_start X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 17:58:01 -0000 FreeBSD 7.1-PRERELEASE r184741 amd64 Fresh install. I see the following in /etc/rc.d/abi: linux_start() { local _tmpdir echo -n ' linux' load_kld -e 'linux(aout|elf)' linux if [ -x /compat/linux/sbin/ldconfigDisabled ]; then ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ So we run linux ldconfig and create linux ld.so.cache only if there is executable file ldconfigDisabled? I have linux_base-f7-7 installed and there is no such file and skype can't find required shared libs. If I manually run ldconfig, then skype is happy. _tmpdir=`mktemp -d -t linux-ldconfig` /compat/linux/sbin/ldconfig -C ${_tmpdir}/ld.so.cache if ! cmp -s ${_tmpdir}/ld.so.cache /compat/linux/etc/ld.so.cache; then cat ${_tmpdir}/ld.so.cache > /compat/linux/etc/ld.so.cache fi rm -rf ${_tmpdir} fi } -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 7 20:23:09 2008 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 6BEEF1065680 for ; Fri, 7 Nov 2008 20:23:09 +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 259518FC1B for ; Fri, 7 Nov 2008 20:23:09 +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 1KyXrH-0009ms-14; Fri, 07 Nov 2008 23:23:07 +0300 Received: from bsam by bs1.sp34.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KyXrG-0000L6-Qo; Fri, 07 Nov 2008 23:23:06 +0300 To: Andriy Gapon References: <49147E9B.4050109@icyb.net.ua> From: Boris Samorodov Date: Fri, 07 Nov 2008 23:23:06 +0300 In-Reply-To: <49147E9B.4050109@icyb.net.ua> (Andriy Gapon's message of "Fri\, 07 Nov 2008 19\:44\:59 +0200") Message-ID: <12918453@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: /etc/rc.d/abi: can't understand linux_start X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 20:23:09 -0000 Andriy Gapon writes: > FreeBSD 7.1-PRERELEASE r184741 amd64 > Fresh install. > > > I see the following in /etc/rc.d/abi: > > linux_start() > { > local _tmpdir > > echo -n ' linux' > load_kld -e 'linux(aout|elf)' linux > if [ -x /compat/linux/sbin/ldconfigDisabled ]; then > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > So we run linux ldconfig and create linux ld.so.cache only if there is > executable file ldconfigDisabled? > I have linux_base-f7-7 installed and there is no such file and skype > can't find required shared libs. If I manually run ldconfig, then skype > is happy. Here is some info (look at rev. 1.7): http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d/abi > _tmpdir=`mktemp -d -t linux-ldconfig` > /compat/linux/sbin/ldconfig -C ${_tmpdir}/ld.so.cache > if ! cmp -s ${_tmpdir}/ld.so.cache > /compat/linux/etc/ld.so.cache; then > cat ${_tmpdir}/ld.so.cache > > /compat/linux/etc/ld.so.cache > fi > rm -rf ${_tmpdir} > fi > } 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 Fri Nov 7 21:46:44 2008 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 7566410656AD for ; Fri, 7 Nov 2008 21:46:44 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id F2B4E8FC1A for ; Fri, 7 Nov 2008 21:46:43 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 21052191BCB; Fri, 7 Nov 2008 22:46:41 +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 mA7Lidbs028535; Fri, 7 Nov 2008 22:44:39 +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 mA7LidsF028534; Fri, 7 Nov 2008 22:44:39 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Fri, 7 Nov 2008 22:44:39 +0100 To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org Message-ID: <20081107214438.GA27376@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: first tests of qemu svn r5646 on FreeBSD - usb still slow, bsd-user doesn't build, some warnings... X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 21:46:44 -0000 Hi! I just prepared another experimental emulators/qemu-devel port update, http://people.freebsd.org/~nox/qemu/qemu-devel-20081107.patch I haven't tested it that much yet (you are welcome to help there! :) but so far didn't notice much changes compared to last time (r5499), usb is still slow with my Linux 2.6.26 guest (probably to be expected, nothing committed there since.) In other news: The new sparc64-bsd-user target doesn't build because SYSCALL_G7RFLAG and SYSCALL_G2RFLAG are undefined, and I noticed a few warnings that may be interesting: ... block-vvfat.c: In function `check_directory_consistency': block-vvfat.c:1779: warning: 'cluster_count' might be used uninitialized in this function ... In file included from /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11 -07_18/hw/fmopl.c:43: /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/fmopl.h:32:5: warning: "BUILD_Y8950" is not defined /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/fmopl.h:115:5: warning: "BUILD_Y8950" is not defined /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/fmopl.c:816:5: warning: "BUILD_Y8950" is not defined /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/fmopl.c:1101:5: warning: "BUILD_Y8950" is not defined /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/fmopl.c:1193:5: warning: "BUILD_Y8950" is not defined /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/fmopl.c:1220:5: warning: "BUILD_Y8950" is not defined /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/fmopl.c:1230:5: warning: "BUILD_Y8950" is not defined /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/fmopl.c:1294:5: warning: "BUILD_Y8950" is not defined ... In file included from /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/adlib.c:51: /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/fmopl.h:32:5: warning: "BUILD_Y8950" is not defined /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/fmopl.h:115:5: warning: "BUILD_Y8950" is not defined ... /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/target-i386/hel per.c: In function `cpu_x86_cpuid': /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/target-i386/helper.c:1353: warning: implicit declaration of function `host_cpuid' ... /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/sh7750.c: In function `sh7750_mem_readb': /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/sh7750.c:204: warning: control reaches end of non-void function /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/sh7750.c: In function `sh7750_mem_readw': /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/sh7750.c:227: warning: control reaches end of non-void function /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/sh7750.c: In function `sh7750_mem_readl': /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/sh7750.c:262: warning: control reaches end of non-void function ... /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/sh_intc.c: In function `sh_intc_get_pending_vector': /usr/ports/emulators/qemu-devel/work/qemu-snapshot-2008-11-07_18/hw/sh_intc.c:100: warning: control reaches end of non-void function Oh and I also found the SMBD_COMMAND #defines in vl.c are not needed anymore, the relevant code has moved to net.c . (I had to fix up a bunch of patches in the FreeBSD port because of the moved code, like the pcap and ppbus ones, testing is also welcome there.) Thanx, Juergen From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 7 22:16:42 2008 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 7B6F81065676 for ; Fri, 7 Nov 2008 22:16:42 +0000 (UTC) (envelope-from balrogg@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.230]) by mx1.freebsd.org (Postfix) with ESMTP id 4D03B8FC12 for ; Fri, 7 Nov 2008 22:16:42 +0000 (UTC) (envelope-from balrogg@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1326141rvf.43 for ; Fri, 07 Nov 2008 14:16:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Yw6sfY3HfWbf7xLKkDRqjXflFkXW6xznBZ7hMh77eqg=; b=fPZrG3z2S9U6L8n3KknttHzGspzUB823Q5kBy2ly9TSsuD6NXdiDr0LclI9BUw0GsQ PXYG/f/dD7OpvxqWBugB/a04S4biaYH9fVanNAmeF964B2x6MHziy5Ilh68CuxSxLPaI y9kDMJS/ZHnfyOzNWNx3+QylUZmy+o48yAI+A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=P5HQftNydJLDOZN8vPlQ5AO13mv1Hvm6yP+l0SRnv9YAGw7tBvOYiVc/4aA640Zp4j kzhSpSl6//8zPMqPsV8EUiptjI4qtKXmFqlVvmTyujFrg0Gz2pgpI5wz20KJXPE2bbKC +eKoV1WjxFy0cWjCToFzcVKJWk8tgh+h0P3ow= Received: by 10.141.137.16 with SMTP id p16mr2033349rvn.180.1226094654747; Fri, 07 Nov 2008 13:50:54 -0800 (PST) Received: by 10.141.1.3 with HTTP; Fri, 7 Nov 2008 13:50:54 -0800 (PST) Message-ID: Date: Fri, 7 Nov 2008 22:50:54 +0100 From: "andrzej zaborowski" To: qemu-devel@nongnu.org, freebsd-emulation@freebsd.org In-Reply-To: <20081107214438.GA27376@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081107214438.GA27376@saturn.kn-bremen.de> Cc: Subject: Re: [Qemu-devel] first tests of qemu svn r5646 on FreeBSD - usb still slow, bsd-user doesn't build, some warnings... X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 22:16:42 -0000 2008/11/7 Juergen Lock : > I just prepared another experimental emulators/qemu-devel port update, > http://people.freebsd.org/~nox/qemu/qemu-devel-20081107.patch Great. > I haven't tested it that much yet (you are welcome to help there! :) > but so far didn't notice much changes compared to last time (r5499), > usb is still slow with my Linux 2.6.26 guest (probably to be expected, > nothing committed there since.) Could you test with the patch in http://lists.gnu.org/archive/html/qemu-devel/2008-10/msg01326.html ? Max Krasnyanski supposed it may contain the fix, I had no time to test it yet. Cheers From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 8 00:19:44 2008 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 53BD01065674 for ; Sat, 8 Nov 2008 00:19:44 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id E8DE18FC17 for ; Sat, 8 Nov 2008 00:19:43 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id B20EF191BCE; Sat, 8 Nov 2008 01:19:42 +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 mA80I9tn033879; Sat, 8 Nov 2008 01:18:09 +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 mA80I9Xl033878; Sat, 8 Nov 2008 01:18:09 +0100 (CET) (envelope-from nox) Date: Sat, 8 Nov 2008 01:18:09 +0100 (CET) From: Juergen Lock Message-Id: <200811080018.mA80I9Xl033878@saturn.kn-bremen.de> To: balrogg@gmail.com X-Newsgroups: local.list.qemu In-Reply-To: References: <20081107214438.GA27376@saturn.kn-bremen.de> Organization: home Cc: freebsd-emulation@freebsd.org, qemu-devel@nongnu.org Subject: Re: [Qemu-devel] first tests of qemu svn r5646 on FreeBSD - usb still slow, bsd-user doesn't build, some warnings... 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: Sat, 08 Nov 2008 00:19:44 -0000 In article you write: >2008/11/7 Juergen Lock : >> I just prepared another experimental emulators/qemu-devel port update, >> http://people.freebsd.org/~nox/qemu/qemu-devel-20081107.patch > >Great. > >> I haven't tested it that much yet (you are welcome to help there! :) >> but so far didn't notice much changes compared to last time (r5499), >> usb is still slow with my Linux 2.6.26 guest (probably to be expected, >> nothing committed there since.) > >Could you test with the patch in >http://lists.gnu.org/archive/html/qemu-devel/2008-10/msg01326.html ? >Max Krasnyanski supposed it may contain the fix, I had no time to test >it yet. Maybe you should, because I can't get that patch to work here, neither -usbdevice net:.. nor adding it or a disk: later (via usb_add) works, I can't talk to any of them. I even tried rmmod uhci_hcd (in that Linux 2.6.26 guest again) in case it might have been in the way, but no go... And now I tried a FreeBSD 7.1 beta guest with usb_add disk: (net: never worked with FreeBSD guests for me), that guest also didn't see it. Maybe you have more luck... Juergen From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 8 00:39:40 2008 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 BB0F21065672 for ; Sat, 8 Nov 2008 00:39:40 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 53AC18FC0C for ; Sat, 8 Nov 2008 00:39:40 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 0623A191BCE; Sat, 8 Nov 2008 01:39:38 +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 mA80d4Tk034979; Sat, 8 Nov 2008 01:39:04 +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 mA80d4Fm034978; Sat, 8 Nov 2008 01:39:04 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sat, 8 Nov 2008 01:39:04 +0100 To: balrogg@gmail.com Message-ID: <20081108003904.GA34804@saturn.kn-bremen.de> Mail-Followup-To: balrogg@gmail.com, qemu-devel@nongnu.org, freebsd-emulation@freebsd.org References: <20081107214438.GA27376@saturn.kn-bremen.de> <200811080018.mA80I9Xl033878@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200811080018.mA80I9Xl033878@saturn.kn-bremen.de> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-emulation@freebsd.org, qemu-devel@nongnu.org Subject: Re: [Qemu-devel] first tests of qemu svn r5646 on FreeBSD - usb still slow, bsd-user doesn't build, some warnings... 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: Sat, 08 Nov 2008 00:39:40 -0000 On Sat, Nov 08, 2008 at 01:18:09AM +0100, I wrote: > In article you write: > >2008/11/7 Juergen Lock : > >> I just prepared another experimental emulators/qemu-devel port update, > >> http://people.freebsd.org/~nox/qemu/qemu-devel-20081107.patch > > > >Great. > > > >> I haven't tested it that much yet (you are welcome to help there! :) > >> but so far didn't notice much changes compared to last time (r5499), > >> usb is still slow with my Linux 2.6.26 guest (probably to be expected, > >> nothing committed there since.) > > > >Could you test with the patch in > >http://lists.gnu.org/archive/html/qemu-devel/2008-10/msg01326.html ? > >Max Krasnyanski supposed it may contain the fix, I had no time to test > >it yet. > > Maybe you should, because I can't get that patch to work here, neither > -usbdevice net:.. nor adding it or a disk: later (via usb_add) works, > I can't talk to any of them. I even tried rmmod uhci_hcd (in that > Linux 2.6.26 guest again) in case it might have been in the way, but > no go... > > And now I tried a FreeBSD 7.1 beta guest with usb_add disk: (net: never > worked with FreeBSD guests for me), that guest also didn't see it. > > Maybe you have more luck... > Juergen I forgot to say I had to manually kill a few stray newlines in that patch, even tho I grabbed it out of my local list archive that doesn't mangle posts. Maybe there was more damage? Just thinking... Juergen From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 8 00:42:54 2008 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 BF5FC1065676 for ; Sat, 8 Nov 2008 00:42:54 +0000 (UTC) (envelope-from balrogg@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id 90BD48FC19 for ; Sat, 8 Nov 2008 00:42:54 +0000 (UTC) (envelope-from balrogg@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1380354rvf.43 for ; Fri, 07 Nov 2008 16:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=fU0CAFPlfE7lJJliKg0x5qw0hlHcvmWd70ag/UUnCoE=; b=r3OHfOfGALucYf4C1p56a/s4e2HOv4S85mmAF5WI5woyfpRXcB0AfQ7ZvH0roxGP2y jTorKm770e4mVwD1R8Pzk8p+0ADWFm85HMSgIxnmaBoW7IcxLfAPC/sYcvqWiPMsu5HV SaB052r+qz8URyth+0pENKi+tWwKkutzEH40o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=cvpBf5jjpM60ZK4gyv1lcnRrUfpdl5wvmNBBVX5A/jzX7OxD+WsLtKYg4V16Pf5Lq8 l1/LdfORDVOHleYp/yzBh3AsJA+ad/SjMumS1xEy0fv2V/cB86xofzLxc1TR/VQvav/N 0x0mgbrcSnBQpcykmOtV3JJYt2DIpqk35dlxA= Received: by 10.141.162.6 with SMTP id p6mr2108684rvo.136.1226104974224; Fri, 07 Nov 2008 16:42:54 -0800 (PST) Received: by 10.141.1.3 with HTTP; Fri, 7 Nov 2008 16:42:54 -0800 (PST) Message-ID: Date: Sat, 8 Nov 2008 01:42:54 +0100 From: "andrzej zaborowski" To: balrogg@gmail.com, qemu-devel@nongnu.org, freebsd-emulation@freebsd.org In-Reply-To: <20081108003904.GA34804@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081107214438.GA27376@saturn.kn-bremen.de> <200811080018.mA80I9Xl033878@saturn.kn-bremen.de> <20081108003904.GA34804@saturn.kn-bremen.de> Cc: Subject: Re: [Qemu-devel] first tests of qemu svn r5646 on FreeBSD - usb still slow, bsd-user doesn't build, some warnings... 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: Sat, 08 Nov 2008 00:42:54 -0000 2008/11/8 Juergen Lock : > On Sat, Nov 08, 2008 at 01:18:09AM +0100, I wrote: >> In article you write: >> >2008/11/7 Juergen Lock : >> >> I just prepared another experimental emulators/qemu-devel port update, >> >> http://people.freebsd.org/~nox/qemu/qemu-devel-20081107.patch >> > >> >Great. >> > >> >> I haven't tested it that much yet (you are welcome to help there! :) >> >> but so far didn't notice much changes compared to last time (r5499), >> >> usb is still slow with my Linux 2.6.26 guest (probably to be expected, >> >> nothing committed there since.) >> > >> >Could you test with the patch in >> >http://lists.gnu.org/archive/html/qemu-devel/2008-10/msg01326.html ? >> >Max Krasnyanski supposed it may contain the fix, I had no time to test >> >it yet. >> >> Maybe you should, because I can't get that patch to work here, neither >> -usbdevice net:.. nor adding it or a disk: later (via usb_add) works, >> I can't talk to any of them. I even tried rmmod uhci_hcd (in that >> Linux 2.6.26 guest again) in case it might have been in the way, but >> no go... >> >> And now I tried a FreeBSD 7.1 beta guest with usb_add disk: (net: never >> worked with FreeBSD guests for me), that guest also didn't see it. >> >> Maybe you have more luck... >> Juergen > > I forgot to say I had to manually kill a few stray newlines in that > patch, even tho I grabbed it out of my local list archive that doesn't > mangle posts. Maybe there was more damage? Ah, nope, it changes the default usb host for PC to ehci.. that's not the change I wanted to test. Anyway, it seems the change I had in mind is in the passthrough code so it can't fix the regression in emulated devices.. sorry, I had not read the patch fully. Cheers From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 8 07:16:44 2008 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 6C03C1065672 for ; Sat, 8 Nov 2008 07:16:44 +0000 (UTC) (envelope-from blauwirbel@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.172]) by mx1.freebsd.org (Postfix) with ESMTP id 3DAEB8FC0A for ; Sat, 8 Nov 2008 07:16:44 +0000 (UTC) (envelope-from blauwirbel@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1571859wfg.7 for ; Fri, 07 Nov 2008 23:16:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=0Ij+eGCKNJ5ScLkHBA9XGAoERqwaqVodb9V4RjG+MD0=; b=pFtINjT6bDj87O0rOv7nQDTb/OOmdAuUAjzC0C15qxUCRN6sbZlqSGNYdNC8THQjrJ 793G5RqgbOI3WYqkaSyUk8GtkJrTj3mucfSYSNbvopNXd1i9nnUDj1KkJB/1POJwecXr Udn7gBHpM8iXlgbhadhENXtfXkJlatcrXc6QQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=CTDJdm7dT3FzDeWGpSLkBVnpMSOinfZEN9gfqYFcseMFIp23fn6eu+LixtZMfg9Pm7 cyCXbmci1q+nuAJg9jvU5+wPqNzfBNU7GqEpQb4kMDzxjXjWGXwzrC4YNHD+eRFc5o25 k1vlXck7Jc+zUsAYf/3Wp6Vwwj9hST6r6MmN0= Received: by 10.142.231.7 with SMTP id d7mr1291454wfh.349.1226126627941; Fri, 07 Nov 2008 22:43:47 -0800 (PST) Received: by 10.143.15.12 with HTTP; Fri, 7 Nov 2008 22:43:47 -0800 (PST) Message-ID: Date: Sat, 8 Nov 2008 08:43:47 +0200 From: "Blue Swirl" To: qemu-devel@nongnu.org, freebsd-emulation@freebsd.org In-Reply-To: <20081107214438.GA27376@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_70173_7875341.1226126627934" References: <20081107214438.GA27376@saturn.kn-bremen.de> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: [Qemu-devel] first tests of qemu svn r5646 on FreeBSD - usb still slow, bsd-user doesn't build, some warnings... 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: Sat, 08 Nov 2008 07:16:44 -0000 ------=_Part_70173_7875341.1226126627934 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 11/7/08, Juergen Lock wrote: > Hi! > > I just prepared another experimental emulators/qemu-devel port update, > http://people.freebsd.org/~nox/qemu/qemu-devel-20081107.patch > I haven't tested it that much yet (you are welcome to help there! :) > but so far didn't notice much changes compared to last time (r5499), > usb is still slow with my Linux 2.6.26 guest (probably to be expected, > nothing committed there since.) The patch is against a bunch of patches, which makes it hard to see what has really changed. Could you make an updated set of patches available somewhere? At least osdep.c and qemu-char.c patches look reasonable enough to be committed. > In other news: The new sparc64-bsd-user target doesn't build because > SYSCALL_G7RFLAG and SYSCALL_G2RFLAG are undefined, and I noticed a few > warnings that may be interesting: The attached patch should fix the undefined flag problem, please test. ------=_Part_70173_7875341.1226126627934--