From owner-freebsd-emulation@FreeBSD.ORG Sun Nov 30 17:58:13 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 774BD1065670; Sun, 30 Nov 2008 17:58:13 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.131.111.2]) by mx1.freebsd.org (Postfix) with ESMTP id 38AB38FC14; Sun, 30 Nov 2008 17:58:13 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from acrux.dbai.tuwien.ac.at (acrux [128.131.111.60]) by vexpert.dbai.tuwien.ac.at (Postfix) with ESMTP id 851B63911B; Sun, 30 Nov 2008 18:58:11 +0100 (CET) Received: by acrux.dbai.tuwien.ac.at (Postfix, from userid 1203) id 5085B10055; Sun, 30 Nov 2008 18:58:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by acrux.dbai.tuwien.ac.at (Postfix) with ESMTP id 4457810046; Sun, 30 Nov 2008 18:58:14 +0100 (CET) Date: Sun, 30 Nov 2008 18:58:14 +0100 (CET) From: Gerald Pfeifer To: Alex Kozlov In-Reply-To: <20081125224845.GA56243@ravenloft.kiev.ua> Message-ID: References: <20081125224845.GA56243@ravenloft.kiev.ua> User-Agent: Alpine 1.99 (LSU 1142 2008-08-13) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-emulation@freebsd.org, Daichi GOTO Subject: Re: wine-1.1.8 regression -- wine: could not load L"...": Invalid address X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2008 17:58:13 -0000 On Wed, 26 Nov 2008, Alex Kozlov wrote: >> The patch moves this to (address_space_limit - 10 * VIRTUAL_HEAP_SIZE). >> I'm not sure that's correct. I think simply 0x80000000 would be better, >> but that's what Alexandre can tell you. > I'm also not sure. That why this patch quick and dirty. Let see what > Julliard has to say. Thanks again, Alex, and thanks for the review, Tijl! (I had the same question on the second hunk. ;-) I will be on vacation and most likely pretty much, if not completely, offline for a while starting tomorrow, and once there is a "final" patch it would be greate if someone with write access could commit that patch. Daichi-san, who also was hurt by this problem, happens to be a ports committer, too, and I would be more than happy for him to commit the "final" patch, or some other fellow committer if Daichi-san is busy. Otherwise, I'll attend to this as soon as possible after my return (or during the trip), but that may take. Gerald From owner-freebsd-emulation@FreeBSD.ORG Sun Nov 30 22:19:43 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 C51261065670 for ; Sun, 30 Nov 2008 22:19:43 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from istc.kiev.ua (wolf.istc.kiev.ua [193.108.236.1]) by mx1.freebsd.org (Postfix) with ESMTP id 7E63D8FC08 for ; Sun, 30 Nov 2008 22:19:42 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from [91.123.146.100] (helo=ravenloft.kiev.ua) by istc.kiev.ua with esmtp (Exim 4.52) id 1L6udf-0000E2-EU; Mon, 01 Dec 2008 00:19:39 +0200 Date: Mon, 1 Dec 2008 00:19:35 +0200 From: Alex Kozlov To: Gerald Pfeifer , Tijl Coosemans , Daichi GOTO , freebsd-emulation@freebsd.org, spam@rm-rf.kiev.ua Message-ID: <20081130221935.GA79764@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: 2.0 (++) X-Spam-Report: Content analysis detailz: (2.0 points, 10.0 required) * 2.0 DNS_FROM_SECURITYSAGE RBL: Envelope sender in * blackholes.securitysage.com Cc: Subject: Re: wine-1.1.8 regression -- wine: could not load L"...": Invalid address X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2008 22:19:43 -0000 On Sun, Nov 30, 2008 at 06:58:14PM +0100, Gerald Pfeifer wrote: > On Wed, 26 Nov 2008, Alex Kozlov wrote: >>> The patch moves this to (address_space_limit - 10 * VIRTUAL_HEAP_SIZE). >>> I'm not sure that's correct. I think simply 0x80000000 would be better, >>> but that's what Alexandre can tell you. >> I'm also not sure. That why this patch quick and dirty. Let see what >> Julliard has to say. >From Alexandre POV most correct action will be to fix reserve_areas logic on FreeBSD. (I try that on this weekend, but with limited success. Very limited. Need more work, and I'm not sure that I will have enough time) As for the patch, place when alloc virtual_heap don't matter. So I think 0x80000000 is ok. > Thanks again, Alex, and thanks for the review, Tijl! (I had the same > question on the second hunk. ;-) This is garbage from my attempts to fix reserve_area. Sorry. -- Adios From owner-freebsd-emulation@FreeBSD.ORG Mon Dec 1 06:10: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 A89471065675 for ; Mon, 1 Dec 2008 06:10:47 +0000 (UTC) (envelope-from daichi@ongs.co.jp) Received: from natial.ongs.co.jp (natial.ongs.co.jp [202.216.246.90]) by mx1.freebsd.org (Postfix) with ESMTP id 7CB8C8FC1B for ; Mon, 1 Dec 2008 06:10:47 +0000 (UTC) (envelope-from daichi@ongs.co.jp) Received: from parancell.ongs.co.jp (dullmdaler.ongs.co.jp [202.216.246.94]) by natial.ongs.co.jp (Postfix) with ESMTPSA id D4798125424; Mon, 1 Dec 2008 14:53:51 +0900 (JST) Message-ID: <49337BEF.7000906@ongs.co.jp> Date: Mon, 01 Dec 2008 14:53:51 +0900 From: Daichi GOTO User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: Gerald Pfeifer References: <20081125224845.GA56243@ravenloft.kiev.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: wine-1.1.8 regression -- wine: could not load L"...": Invalid address 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, 01 Dec 2008 06:10:47 -0000 Gerald Pfeifer wrote: > On Wed, 26 Nov 2008, Alex Kozlov wrote: >>> The patch moves this to (address_space_limit - 10 * VIRTUAL_HEAP_SIZE). >>> I'm not sure that's correct. I think simply 0x80000000 would be better, >>> but that's what Alexandre can tell you. >> I'm also not sure. That why this patch quick and dirty. Let see what >> Julliard has to say. > > Thanks again, Alex, and thanks for the review, Tijl! (I had the same > question on the second hunk. ;-) > > I will be on vacation and most likely pretty much, if not completely, > offline for a while starting tomorrow, and once there is a "final" patch > it would be greate if someone with write access could commit that patch. > > Daichi-san, who also was hurt by this problem, happens to be a ports > committer, too, and I would be more than happy for him to commit the > "final" patch, or some other fellow committer if Daichi-san is busy. Hi wine port folks, here is daichi, nice to meet you :) I have no idea about this patch, but I'll support you committing stage. After send-pr including a patch fixing "Invalid address" issue that you think better, please mail me directly. I'll check it and do commit if it's possible. Thanks > Otherwise, I'll attend to this as soon as possible after my return (or > during the trip), but that may take. > > Gerald -- Daichi GOTO, http://people.freebsd.org/~daichi From owner-freebsd-emulation@FreeBSD.ORG Mon Dec 1 11:06: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 28EF4106564A for ; Mon, 1 Dec 2008 11:06:54 +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 146078FC21 for ; Mon, 1 Dec 2008 11:06:54 +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 mB1B6rsH052516 for ; Mon, 1 Dec 2008 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mB1B6rMS052512 for freebsd-emulation@FreeBSD.org; Mon, 1 Dec 2008 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 1 Dec 2008 11:06:53 GMT Message-Id: <200812011106.mB1B6rMS052512@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, 01 Dec 2008 11:06:54 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/129169 emulation [linux] [patch] Linux Emulation ENOTCONN error using n f ports/127018 emulation Linuxulator incapable of using FreeBSD's LDAP environm o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails o ports/121800 emulation x11-toolkits/linux-openmotif - OpenMotif upgrade to 2. o kern/97326 emulation [linux] file descriptor leakage in linux emulation o ports/91318 emulation [fix] graphics/linux_dri: works on amd64 too o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 14 problems total. From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 2 16:50: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 51E4B1065676 for ; Tue, 2 Dec 2008 16:50:47 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from mailrelay002.isp.belgacom.be (mailrelay002.isp.belgacom.be [195.238.6.175]) by mx1.freebsd.org (Postfix) with ESMTP id B65AF8FC28 for ; Tue, 2 Dec 2008 16:50:46 +0000 (UTC) (envelope-from tijl@ulyssis.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswEAC71NElR9Tde/2dsb2JhbACBbdEMgn8 Received: from 94.55-245-81.adsl-dyn.isp.belgacom.be (HELO kalimero.kotnet.org) ([81.245.55.94]) by relay.skynet.be with ESMTP; 02 Dec 2008 17:50:45 +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 mB2Gohf9003824; Tue, 2 Dec 2008 17:50:44 +0100 (CET) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: Alex Kozlov Date: Tue, 2 Dec 2008 17:50:42 +0100 User-Agent: KMail/1.9.10 References: <20081130221935.GA79764@ravenloft.kiev.ua> In-Reply-To: <20081130221935.GA79764@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Disposition: inline X-Length: 2128 X-UID: 90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200812021750.43465.tijl@ulyssis.org> Cc: freebsd-emulation@freebsd.org, Gerald Pfeifer , Daichi GOTO Subject: Re: wine-1.1.8 regression -- wine: could not load L"...": Invalid address 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, 02 Dec 2008 16:50:47 -0000 On Sunday 30 November 2008 23:19:35 Alex Kozlov wrote: >> On Wed, 26 Nov 2008, Alex Kozlov wrote: >>>> The patch moves this to (address_space_limit - 10 * VIRTUAL_HEAP_SIZE). >>>> I'm not sure that's correct. I think simply 0x80000000 would be better, >>>> but that's what Alexandre can tell you. >>> >>> I'm also not sure. That why this patch quick and dirty. Let see what >>> Julliard has to say. > > From Alexandre POV most correct action will be to fix reserve_areas logic > on FreeBSD. (I try that on this weekend, but with limited success. Very > limited. Need more work, and I'm not sure that I will have enough time) You tried porting the preloader? > As for the patch, place when alloc virtual_heap don't matter. So I think > 0x80000000 is ok. On second thought, you'll probably need something like 0x81000000 or even further, because the win9x shared heap is supposed to be at 0x80000000. Will you submit a patch for this (perhaps as a follow-up to ports/128926), then Daichi can commit it and we'll be settled for the time being. From owner-freebsd-emulation@FreeBSD.ORG Fri Dec 5 23:13:53 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 E7DD11065678 for ; Fri, 5 Dec 2008 23:13:53 +0000 (UTC) (envelope-from regisr@pobox.com) Received: from crocoite.regix.info (unknown [IPv6:2001:7a8:313c::1]) by mx1.freebsd.org (Postfix) with ESMTP id 5B6428FC1C for ; Fri, 5 Dec 2008 23:13:53 +0000 (UTC) (envelope-from regisr@pobox.com) Received: from crocoite.regix.info (localhost.regix.info [127.0.0.1]) by crocoite.regix.info (8.14.3/8.14.2) with SMTP id mB5NDpah062901 for ; Sat, 6 Dec 2008 00:13:51 +0100 (CET) (envelope-from regisr@pobox.com) Date: Sat, 6 Dec 2008 00:13:51 +0100 From: regisr To: freebsd-emulation@freebsd.org Message-Id: <20081206001351.218fa05c.regisr@pobox.com> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i386-portbld-freebsd6.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: wine-1.1.8 regression -- wine: could not load L"...": Invalid address 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, 05 Dec 2008 23:13:54 -0000 (I apologize, I don't have the previous message to follow the thread) With the patch of dlls/ntdll/virtual.c and 1.1.9.1,1 version of wine I can launch a program named "international.exe" which lauch "C:\\windows\\temp\\mvu87c.tmp\\pxplay.exe" : I have the sound but not the display. (previously without the patch the error 'could not load L"Z:\\...": Invalid address ' was displayed) Messages on xterm are: ------------------------------------------ %wine international.exe fixme:win:EnumDisplayDevicesW ((null),0,0x34f15c,0x00000000), stub! fixme:d3d:IWineD3DDeviceImpl_Release (0x1e65c48) Device released with resources still bound, acceptable but unexpected fixme:d3d:dumpResources Leftover resource 0x1e69968 with type 1,WINED3DRTYPE_SURFACE ----------------------------------------- It is a FreeBSD port trouble, it is OK with Ubuntu. Another program which had the same problem run, I have the display but I can't use the mouse, is this a wine configuration problem? I made some tries and ... the X server closed and return to xdm :-( I don't yet tried it with Linux. ... and a good new: without the patch a program which was OK with previous releases crashed with a memory error, now with the patch it is Ok. All programs use the full screen to display slideshows. -- regis From owner-freebsd-emulation@FreeBSD.ORG Sat Dec 6 22:11:21 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 7ABBC106564A for ; Sat, 6 Dec 2008 22:11:21 +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 0304D8FC20 for ; Sat, 6 Dec 2008 22:11:20 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id B3908192111; Sat, 6 Dec 2008 23:11:19 +0100 (CET) Received: from saturn.kn-bremen.de (noident@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id mB6M971Z037558; Sat, 6 Dec 2008 23:09:07 +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 mB6M96LR037557; Sat, 6 Dec 2008 23:09:06 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sat, 6 Dec 2008 23:09:06 +0100 To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org Message-ID: <20081206220906.GA34210@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: testing qemu svn r5890 on FreeBSD - virtio, and a patch enabling -clock dynticks 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, 06 Dec 2008 22:11:21 -0000 Hi! Jung-uk Kim sent me a patch to enable -clock dynticks on FreeBSD hosts (the configure check is mine, only FreeBSD >= 7.x has posix timers that this uses), I'll append it below. This is the experimental qemu-devel port update I used: http://people.freebsd.org/~nox/qemu/qemu-devel-20081206.patch As already mentioned I had to add a missing `#include ' (files/patch-qemu-common.h), as also posted here: http://lists.gnu.org/archive/html/qemu-devel/2008-12/msg00216.html I only had one (type of) guest that actually had virtio drivers (three versions of sidux isos), and the speed difference between virtio-blk and scsi was small. (I tested dd bs=64k count=500 /dev/null and similar with a raw image, both scsi and virtio were always faster than ide.) I noted tho that even virtio there was not half as fast as ide (and scsi) on KNOPPIX_V5.3.1DVD-2008-03-26-EN.iso, so either overhead has increased greatly from 2.6.24.4 to 2.6.26, or this has something to do with the sidux kernel using CONFIG_NO_HZ and the Knoppix one (apparently) not and qemu (possibly, I also suspected that with the usb slowness) not handling CONFIG_NO_HZ guests too well. scsi on a FreeBSD 7.1-BETA-i386-livefs.iso guest btw was even yet (noticeably) faster than on the Knoppix iso. It will be interesting how virtio-net will fare once that gets committed... Here comes the dynticks patch (files/patch-dynticks), it assumes that NetBSD either always has posix timers, or -lrt is not needed otherwise there. (FreeBSD before 7.x doesn't have -lrt.) --- qemu/Makefile.target.orig 2008-11-21 11:49:37.000000000 -0500 +++ qemu/Makefile.target 2008-12-03 15:46:24.000000000 -0500 @@ -598,7 +598,7 @@ OBJS+=block-raw-posix.o endif -LIBS+=-lz +LIBS += $(RTLIBS) -lz ifdef CONFIG_ALSA LIBS += -lasound endif Index: qemu/configure @@ -99,6 +99,7 @@ fmod_lib="" fmod_inc="" oss_lib="" +rt_lib="" vnc_tls="yes" bsd="no" linux="no" @@ -157,13 +158,15 @@ if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then kqemu="yes" fi +rt_lib="-lrt" ;; NetBSD) bsd="yes" audio_drv_list="oss" audio_possible_drivers="oss sdl esd" oss_lib="-lossaudio" -aio_lib="-lrt -lpthread" +aio_lib="-lpthread" +rt_lib="-lrt" ;; OpenBSD) bsd="yes" @@ -231,6 +234,7 @@ kqemu="yes" audio_possible_drivers="$audio_possible_drivers fmod" fi +rt_lib="-lrt" ;; esac @@ -1053,6 +1057,20 @@ iovec=yes fi +########################################## +# posix timer probe +cat > $TMPC < +int main(void) { timer_create(CLOCK_REALTIME, (struct sigevent *)NULL, (timer_t *)NULL); return 0; } +EOF +posixtimer=no +if $cc $ARCH_CFLAGS -o $TMPE $TMPC $rt_lib 2> /dev/null ; then + posixtimer=yes +else + rt_lib="" +fi +RTLIBS="$rt_lib" + # Check if tools are available to build documentation. if [ "x$NOPORTDOCS" != "x" -o -x "`which texi2html 2>/dev/null`" ] && \ [ -x "`which pod2man 2>/dev/null`" ]; then @@ -1174,6 +1192,7 @@ echo "LDFLAGS=$LDFLAGS" >> $config_mak echo "EXESUF=$EXESUF" >> $config_mak echo "AIOLIBS=$AIOLIBS" >> $config_mak +echo "RTLIBS=$RTLIBS" >> $config_mak case "$cpu" in i386) echo "ARCH=i386" >> $config_mak @@ -1425,6 +1444,9 @@ if test "$iovec" = "yes" ; then echo "#define HAVE_IOVEC 1" >> $config_h fi +if test "$posixtimer" = "yes" ; then + echo "#define HAVE_POSIX_TIMER 1" >> $config_h +fi # XXX: suppress that if [ "$bsd" = "yes" ] ; then Index: qemu/vl.c @@ -918,12 +918,16 @@ static int unix_start_timer(struct qemu_alarm_timer *t); static void unix_stop_timer(struct qemu_alarm_timer *t); -#ifdef __linux__ +#ifdef HAVE_POSIX_TIMER static int dynticks_start_timer(struct qemu_alarm_timer *t); static void dynticks_stop_timer(struct qemu_alarm_timer *t); static void dynticks_rearm_timer(struct qemu_alarm_timer *t); +#endif + +#ifdef __linux__ + static int hpet_start_timer(struct qemu_alarm_timer *t); static void hpet_stop_timer(struct qemu_alarm_timer *t); @@ -1001,9 +1005,11 @@ static struct qemu_alarm_timer alarm_timers[] = { #ifndef _WIN32 -#ifdef __linux__ +#ifdef HAVE_POSIX_TIMER {"dynticks", ALARM_FLAG_DYNTICKS, dynticks_start_timer, dynticks_stop_timer, dynticks_rearm_timer, NULL}, +#endif +#ifdef __linux__ /* HPET - if available - is preferred */ {"hpet", 0, hpet_start_timer, hpet_stop_timer, NULL, NULL}, /* ...otherwise try RTC */ @@ -1361,7 +1367,7 @@ return delta; } -#if defined(__linux__) || defined(_WIN32) +#if defined(HAVE_POSIX_TIMER) || defined(_WIN32) static uint64_t qemu_next_deadline_dyntick(void) { int64_t delta; @@ -1506,6 +1512,10 @@ close(rtc_fd); } +#endif /* defined(__linux__) */ + +#ifdef HAVE_POSIX_TIMER + static int dynticks_start_timer(struct qemu_alarm_timer *t) { struct sigevent ev; @@ -1577,7 +1587,7 @@ } } -#endif /* defined(__linux__) */ +#endif /* defined(HAVE_POSIX_TIMER) */ static int unix_start_timer(struct qemu_alarm_timer *t) { From owner-freebsd-emulation@FreeBSD.ORG Sat Dec 6 22:32:58 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 2B93F1065677 for ; Sat, 6 Dec 2008 22:32:58 +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 823798FC1D for ; Sat, 6 Dec 2008 22:32:57 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 6D0FE192111; Sat, 6 Dec 2008 23:32:56 +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 mB6MVeNI038131; Sat, 6 Dec 2008 23:31:40 +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 mB6MVeat038130; Sat, 6 Dec 2008 23:31:40 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sat, 6 Dec 2008 23:31:40 +0100 To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org Message-ID: <20081206223140.GA37972@saturn.kn-bremen.de> Mail-Followup-To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org References: <20081206220906.GA34210@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081206220906.GA34210@saturn.kn-bremen.de> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Subject: usb slowness again (was: testing qemu svn r5890 on FreeBSD - virtio, and a patch enabling -clock dynticks) 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, 06 Dec 2008 22:32:58 -0000 On Sat, Dec 06, 2008 at 11:09:06PM +0100, Juergen Lock wrote: > Hi! > > Jung-uk Kim sent me a patch to enable -clock dynticks on FreeBSD hosts > (the configure check is mine, only FreeBSD >= 7.x has posix timers that > this uses), I'll append it below. > > This is the experimental qemu-devel port update I used: > http://people.freebsd.org/~nox/qemu/qemu-devel-20081206.patch > As already mentioned I had to add a missing `#include ' > (files/patch-qemu-common.h), as also posted here: > http://lists.gnu.org/archive/html/qemu-devel/2008-12/msg00216.html > > I only had one (type of) guest that actually had virtio drivers (three > versions of sidux isos), and the speed difference between virtio-blk and > scsi was small. (I tested dd bs=64k count=500 /dev/null and > similar with a raw image, both scsi and virtio were always faster than ide.) > I noted tho that even virtio there was not half as fast as ide (and scsi) > on KNOPPIX_V5.3.1DVD-2008-03-26-EN.iso, so either overhead has increased > greatly from 2.6.24.4 to 2.6.26, or this has something to do with > the sidux kernel using CONFIG_NO_HZ and the Knoppix one (apparently) not > and qemu (possibly, I also suspected that with the usb slowness) not > handling CONFIG_NO_HZ guests too well. [...] Well I just tried -usb -usbdevice net:vlan=1 -net user,vlan=1 with the Knoppix iso and got the same thruput (< 40 K/s) for wget on a local file than I got with sidux. So its probably not CONFIG_NO_HZ, at least not the usb slowness. Just thought I'd mention... Juergen