From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 15 11:07:00 2011 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 57F021065672 for ; Mon, 15 Aug 2011 11:07:00 +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 2CE8A8FC20 for ; Mon, 15 Aug 2011 11:07:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7FB70k5014700 for ; Mon, 15 Aug 2011 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7FB6x2D014698 for freebsd-emulation@FreeBSD.org; Mon, 15 Aug 2011 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Aug 2011 11:06:59 GMT Message-Id: <201108151106.p7FB6x2D014698@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, 15 Aug 2011 11:07:00 -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/159646 emulation [linux] [patch] bump Linux version in linuxulator f kern/156691 emulation [vmware] [panic] panic when using hard disks as RAW de o kern/156353 emulation [ibcs2] ibcs2 binaries that execute on 4.x not working o kern/155577 emulation [boot] BTX halted after install. Reboot during install o kern/155040 emulation [linux] [patch] Linux recvfrom doesn't handle proto fa o kern/153990 emulation [hyper-v]: Will not install into Hyper-V on Server 200 o kern/153887 emulation [linux] Linux emulator not understand STB_GNU_UNIQUE b o kern/153243 emulation [ibcs2] Seg fault whne running COFF binary using iBCS2 o kern/151714 emulation [linux] print/acroread9 not usable due to lack of supp a bin/150262 emulation [patch] truss(1) -f doesn't follow descendants of the a kern/150186 emulation [parallels] [panic] Parallels Desktop: CDROM disconnec o ports/148097 emulation [patch] suggested addition to linux_base-* packages to o ports/148096 emulation emulators/linux_base-* can not be built from ports on o kern/147793 emulation [vmware] [panic] cdrom handling, panic, possible race o kern/146237 emulation [linux] Linux binaries not reading directories mounted p kern/144584 emulation [linprocfs][patch] bogus values in linprocfs o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o kern/140156 emulation [linux] cdparanoia fails to read drive data f kern/138944 emulation [parallels] [regression] Parallels no longer works in o kern/138880 emulation [linux] munmap segfaults after linux_mmap2 stresstest o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage s kern/133144 emulation [linux] linuxulator 2.6 crashes with nvidias libGL.so. o kern/129169 emulation [linux] [patch] Linux Emulation ENOTCONN error using n o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails o kern/86619 emulation [linux] linux emulator interacts oddly with cp a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain 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/36952 emulation [patch] [linux] ldd(1) command of linux does not 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 31 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 15 20:29:38 2011 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 4FBB11065670; Mon, 15 Aug 2011 20:29:38 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 0315E8FC08; Mon, 15 Aug 2011 20:29:37 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 2B3B11E000E0; Mon, 15 Aug 2011 22:29:36 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p7FKQv9m095547; Mon, 15 Aug 2011 22:26:57 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p7FKQvRl095546; Mon, 15 Aug 2011 22:26:57 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Mon, 15 Aug 2011 22:26:56 +0200 To: freebsd-emulation@FreeBSD.org Message-ID: <20110815202656.GA94934@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: hselasky@FreeBSD.org, freebsd-usb@FreeBSD.org, qemu-devel@nongnu.org Subject: qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed() 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, 15 Aug 2011 20:29:38 -0000 Hi! I just prepared a preliminary update of the emulators/qemu-devel port to 0.15.0 [1], and among other things it now also has a usb network redirection feature using usbredir [2], which uses libusb 1.0 and a function that is missing in our version, libusb_get_device_speed(). I added a stub to the code that always returns LIBUSB_SPEED_UNKNOWN (files/patch-usbredirhost-usbredirhost.c in the usbredir port [2]), question for Hans (I guess), would there be an easy way to make a `proper' implementation? If anyone wants to help me test qemu 0.15.0, thanx! I also updated the net.c and net.h udp patches for gns3 for this qemu version: (the other gns3 patchfiles for qemu 0.14 still apply) http://people.freebsd.org/~nox/qemu/qemu-0.15.0-gns3-patches/ I added this note to the qemu-devel pkg-message about the usb redirection [1]: ------------snip------ - If you want to test the new (in 0.15.0) usb network redirection (USBREDIR option) see this thread by Hans de Goede redhat.com>: http://thread.gmane.org/gmane.comp.emulators.qemu/110176/focus=110183 Quote: Example usage: 1) Start usbredirserver for a usb device: sudo usbredirserver 045e:0772 2) Start qemu with usb2 support + a chardev talking to usbredirserver + a usb-redir device using this chardev: qemu ... \ -readconfig docs/ich9-ehci-uhci.cfg \ -chardev socket,id=usbredirchardev,host=localhost,port=4000 \ -device usb-redir,chardev=usbredirchardev,id=usbredirdev [you would replace docs/ich9-ehci-uhci.cfg with e.g. /usr/local/share/doc/qemu/docs/ich9-ehci-uhci.cfg, but turns out ehci seems broken for me here with FreeBSD guests at least, I get: FETCHENTRY: entry at 22C5484 is of type 2 which is not supported yet processing error - resetting ehci HC Assertion failed: (0), function ehci_advance_state, file /data/ports/emulators/qemu-devel/work/qemu-0.15.0/hw/usb-ehci.c, line 2045. Starting the same without ehci (-readconfig) works, tho usbredirserver crashes when qemu exits.] ------------snip------ Thanx! :) Juergen [1] Changelog: http://wiki.qemu.org/ChangeLog/0.15 Preliminary port: http://people.freebsd.org/~nox/qemu/qemu-devel-0.15.0.shar Patch against current qemu-devel port: http://people.freebsd.org/~nox/qemu/qemu-devel-0.15.0.patch [2] usbredir 0.3: http://cgit.freedesktop.org/~jwrdegoede/usbredir/ Preliminary port: http://people.freebsd.org/~nox/qemu/usbredir.shar From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 15 23:50:19 2011 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 E4EC2106564A for ; Mon, 15 Aug 2011 23:50:19 +0000 (UTC) (envelope-from ttsestt@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 77CE88FC0C for ; Mon, 15 Aug 2011 23:50:19 +0000 (UTC) Received: by fxe4 with SMTP id 4so5040262fxe.13 for ; Mon, 15 Aug 2011 16:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=IMQJkvIULSC04/MXJxrqcKFdrCYspSvUNUOZlIskoSA=; b=NYG0nWpOjBoghf77Zmtxe1hlWb2ICLw8F97e5e837/r8qLP0yl3ZwYqPZznMz2IMBc tL/xwi9YXIWa0AXUR2+5335eT7sD0MOwOzsZXKFijqhp4NUH9rtt5nxCWo41+sHe4tqP tyaNx3hs2V9n6G97bf4Kihu2Cm+aVTXQXj3PQ= Received: by 10.223.54.66 with SMTP id p2mr6061374fag.143.1313450428707; Mon, 15 Aug 2011 16:20:28 -0700 (PDT) Received: from localhost ([87.236.194.158]) by mx.google.com with ESMTPS id j23sm1627192faa.46.2011.08.15.16.20.26 (version=SSLv3 cipher=OTHER); Mon, 15 Aug 2011 16:20:28 -0700 (PDT) From: Test Rat To: Juergen Lock References: <20110815202656.GA94934@triton8.kn-bremen.de> Date: Tue, 16 Aug 2011 03:20:15 +0400 In-Reply-To: <20110815202656.GA94934@triton8.kn-bremen.de> (Juergen Lock's message of "Mon, 15 Aug 2011 22:26:56 +0200") Message-ID: <86obzq9s9c.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-emulation@FreeBSD.org Subject: Re: qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed() 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, 15 Aug 2011 23:50:20 -0000 Juergen Lock writes: > Hi! > > I just prepared a preliminary update of the emulators/qemu-devel > port to 0.15.0 [...] > Patch against current qemu-devel port: > > http://people.freebsd.org/~nox/qemu/qemu-devel-0.15.0.patch Any plans to add option/port for SGABIOS or make it default? It works fine here, screen seems to be limited to 25 lines and I had to remove `-D' from /boot.config. $ qemu -nographic -drive file=/dev/ada1 Could not open option rom 'sgabios.bin': No such file or directory From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 15 23:52:42 2011 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 E7517106566C for ; Mon, 15 Aug 2011 23:52:42 +0000 (UTC) (envelope-from ttsestt@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7E0C58FC17 for ; Mon, 15 Aug 2011 23:52:42 +0000 (UTC) Received: by wyh15 with SMTP id 15so2287882wyh.13 for ; Mon, 15 Aug 2011 16:52:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Fpd/2raaJpoLVgc2mDLJU/L8NOER3rdq1FTG5kGT7/k=; b=i8xUOBpq72aXYyoN3GcediFfUwH3yCe9glz5cBZRo+qyuNHWkv5vUrA5o7QnGDRAS7 HD/tunJ7KXcb5z62+0iZNNRoQZvbA+AYWoJgIcPXjsj5T1XNLCPHsLTOlvKCVVh0Zoxb 8YbAZJU4eqELzHysJYOvpPCeQFPvDtC8vDNaA= Received: by 10.227.42.131 with SMTP id s3mr3914800wbe.104.1313452361450; Mon, 15 Aug 2011 16:52:41 -0700 (PDT) Received: from localhost (tor4.anonymizer.ccc.de [80.237.226.74]) by mx.google.com with ESMTPS id fg5sm4944730wbb.40.2011.08.15.16.52.38 (version=SSLv3 cipher=OTHER); Mon, 15 Aug 2011 16:52:40 -0700 (PDT) From: Test Rat To: Juergen Lock References: <20110815202656.GA94934@triton8.kn-bremen.de> <86obzq9s9c.fsf@gmail.com> Date: Tue, 16 Aug 2011 03:52:21 +0400 In-Reply-To: <86obzq9s9c.fsf@gmail.com> (Test Rat's message of "Tue, 16 Aug 2011 03:20:15 +0400") Message-ID: <86ei0m9qru.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-emulation@FreeBSD.org Subject: Re: qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed() 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, 15 Aug 2011 23:52:43 -0000 Test Rat writes: > Juergen Lock writes: > >> Hi! >> >> I just prepared a preliminary update of the emulators/qemu-devel >> port to 0.15.0 > [...] >> Patch against current qemu-devel port: >> >> http://people.freebsd.org/~nox/qemu/qemu-devel-0.15.0.patch > > Any plans to add option/port for SGABIOS or make it default? > It works fine here, screen seems to be limited to 25 lines > and I had to remove `-D' from /boot.config. > > $ qemu -nographic -drive file=/dev/ada1 > Could not open option rom 'sgabios.bin': No such file or directory Nevermind, after doing my homework it seems sgabios.bin is going to be included into the distfile. http://lists.nongnu.org/archive/html/qemu-devel/2011-05/msg00915.html From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 16 07:49:55 2011 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 EA85B1065670; Tue, 16 Aug 2011 07:49:54 +0000 (UTC) (envelope-from hselasky@freebsd.org) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 0CE4D8FC15; Tue, 16 Aug 2011 07:49:53 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=0STrgBBJ/IeSzGUncdVPgrlXwYQACyAaeTEJnWJdz8Q= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=fJEGAQ7EGC8A:10 a=dBRESv0yCI8A:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=4dUV7anAB9YGbLdZuTQA:9 a=4NtnIaRTLMHL91dE4QwA:7 a=pILNOxqGKmIA:10 a=8PRmaPxWSHiRE86-vQ4A:9 a=GIi2Wv7FhjRqQxNC:21 a=NSU_4XTvM9YSOr7i:21 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 166471043; Tue, 16 Aug 2011 09:39:51 +0200 Received-SPF: softfail receiver=mailfe08.swip.net; client-ip=188.126.198.129; envelope-from=hselasky@freebsd.org From: Hans Petter Selasky To: Juergen Lock Date: Tue, 16 Aug 2011 09:37:27 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <20110815202656.GA94934@triton8.kn-bremen.de> In-Reply-To: <20110815202656.GA94934@triton8.kn-bremen.de> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_34hSO7DjUed8dDm" Message-Id: <201108160937.27850.hselasky@freebsd.org> Cc: "freebsd-emulation@FreeBSD.org" , "qemu-devel@nongnu.org" , "freebsd-usb@FreeBSD.org" Subject: Re: qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed() 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, 16 Aug 2011 07:49:55 -0000 --Boundary-00=_34hSO7DjUed8dDm Content-Type: Text/Plain; charset="windows-1252" Content-Transfer-Encoding: 7bit On Monday 15 August 2011 22:26:56 Juergen Lock wrote: > Hi! > > I just prepared a preliminary update of the emulators/qemu-devel > port to 0.15.0 [1], and among other things it now also has a > usb network redirection feature using usbredir [2], which uses > libusb 1.0 and a function that is missing in our version, > libusb_get_device_speed(). I added a stub to the code that > always returns LIBUSB_SPEED_UNKNOWN > (files/patch-usbredirhost-usbredirhost.c in the usbredir port [2]), > question for Hans (I guess), would there be an easy way to make a > `proper' implementation? > > If anyone wants to help me test qemu 0.15.0, thanx! Please try the attached patch to libusb in /usr/src/lib/libusb . You only need to rebuild libusb: make all install clean > FETCHENTRY: entry at 22C5484 is of type 2 which is not supported > yet processing error - resetting ehci HC Try my patch first. EHCI needs to know device speed. --HPS --Boundary-00=_34hSO7DjUed8dDm Content-Type: text/plain; charset="windows-1252"; name="libusb_speed.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="libusb_speed.txt" === libusb.h ================================================================== --- libusb.h (revision 224768) +++ libusb.h (local) @@ -151,6 +151,14 @@ LIBUSB_ERROR_OTHER = -99, }; +enum libusb_speed { + LIBUSB_SPEED_UNKNOWN = 0, + LIBUSB_SPEED_LOW = 1, + LIBUSB_SPEED_FULL = 2, + LIBUSB_SPEED_HIGH = 3, + LIBUSB_SPEED_SUPER = 4, +}; + enum libusb_transfer_status { LIBUSB_TRANSFER_COMPLETED, LIBUSB_TRANSFER_ERROR, @@ -304,6 +312,7 @@ void libusb_free_device_list(libusb_device ** list, int unref_devices); uint8_t libusb_get_bus_number(libusb_device * dev); uint8_t libusb_get_device_address(libusb_device * dev); +enum libusb_speed libusb_get_device_speed(libusb_device * dev); int libusb_clear_halt(libusb_device_handle *devh, uint8_t endpoint); int libusb_get_max_packet_size(libusb_device * dev, uint8_t endpoint); libusb_device *libusb_ref_device(libusb_device * dev); === libusb10.c ================================================================== --- libusb10.c (revision 224768) +++ libusb10.c (local) @@ -272,6 +272,27 @@ return (libusb20_dev_get_address(dev->os_priv)); } +enum libusb_speed +libusb_get_device_speed(libusb_device *dev) +{ + if (dev == NULL) + return (0); /* should not happen */ + + switch (libusb20_dev_get_speed(dev->os_priv)) { + case LIBUSB20_SPEED_LOW: + return (LIBUSB_SPEED_LOW); + case LIBUSB20_SPEED_FULL: + return (LIBUSB_SPEED_FULL); + case LIBUSB20_SPEED_HIGH: + return (LIBUSB_SPEED_HIGH); + case LIBUSB20_SPEED_SUPER: + return (LIBUSB_SPEED_SUPER); + default: + break; + } + return (LIBUSB_SPEED_UNKNOWN); +} + int libusb_get_max_packet_size(libusb_device *dev, uint8_t endpoint) { --Boundary-00=_34hSO7DjUed8dDm-- From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 16 07:50:06 2011 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 D0FAA1065673 for ; Tue, 16 Aug 2011 07:50:06 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 2C4FE8FC15 for ; Tue, 16 Aug 2011 07:50:05 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=b20eX9+WwT+rchjRp65q2r9rWd5NV3fsbYwDDw8k8E8= c=1 sm=1 a=fJEGAQ7EGC8A:10 a=WQU8e4WWZSUA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=4dUV7anAB9YGbLdZuTQA:9 a=4NtnIaRTLMHL91dE4QwA:7 a=pILNOxqGKmIA:10 a=8PRmaPxWSHiRE86-vQ4A:9 a=GIi2Wv7FhjRqQxNC:21 a=NSU_4XTvM9YSOr7i:21 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 164351699; Tue, 16 Aug 2011 09:40:02 +0200 To: Juergen Lock From: Hans Petter Selasky X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq,NwSZ4V" =?iso-8859-15?q?=7CLR=2E+tj=7Dg5=0A=09=25V?=,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( =?iso-8859-15?q?=0A=09=3AAuzV9=3A=2EhESm-x4h240C=609=3Dw?= Date: Tue, 16 Aug 2011 09:37:39 +0200 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_D5hSOoqXjo4E+bg" Message-Id: <201108160937.39168.hselasky@c2i.net> Cc: "freebsd-emulation@FreeBSD.org" , "qemu-devel@nongnu.org" , "freebsd-usb@FreeBSD.org" Subject: Re: qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed() 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, 16 Aug 2011 07:50:07 -0000 --Boundary-00=_D5hSOoqXjo4E+bg Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit On Monday 15 August 2011 22:26:56 Juergen Lock wrote: > Hi! > > I just prepared a preliminary update of the emulators/qemu-devel > port to 0.15.0 [1], and among other things it now also has a > usb network redirection feature using usbredir [2], which uses > libusb 1.0 and a function that is missing in our version, > libusb_get_device_speed(). I added a stub to the code that > always returns LIBUSB_SPEED_UNKNOWN > (files/patch-usbredirhost-usbredirhost.c in the usbredir port [2]), > question for Hans (I guess), would there be an easy way to make a > `proper' implementation? > > If anyone wants to help me test qemu 0.15.0, thanx! Please try the attached patch to libusb in /usr/src/lib/libusb . You only need to rebuild libusb: make all install clean > FETCHENTRY: entry at 22C5484 is of type 2 which is not supported > yet processing error - resetting ehci HC Try my patch first. EHCI needs to know device speed. --HPS --Boundary-00=_D5hSOoqXjo4E+bg Content-Type: text/plain; charset="windows-1252"; name="libusb_speed.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="libusb_speed.txt" === libusb.h ================================================================== --- libusb.h (revision 224768) +++ libusb.h (local) @@ -151,6 +151,14 @@ LIBUSB_ERROR_OTHER = -99, }; +enum libusb_speed { + LIBUSB_SPEED_UNKNOWN = 0, + LIBUSB_SPEED_LOW = 1, + LIBUSB_SPEED_FULL = 2, + LIBUSB_SPEED_HIGH = 3, + LIBUSB_SPEED_SUPER = 4, +}; + enum libusb_transfer_status { LIBUSB_TRANSFER_COMPLETED, LIBUSB_TRANSFER_ERROR, @@ -304,6 +312,7 @@ void libusb_free_device_list(libusb_device ** list, int unref_devices); uint8_t libusb_get_bus_number(libusb_device * dev); uint8_t libusb_get_device_address(libusb_device * dev); +enum libusb_speed libusb_get_device_speed(libusb_device * dev); int libusb_clear_halt(libusb_device_handle *devh, uint8_t endpoint); int libusb_get_max_packet_size(libusb_device * dev, uint8_t endpoint); libusb_device *libusb_ref_device(libusb_device * dev); === libusb10.c ================================================================== --- libusb10.c (revision 224768) +++ libusb10.c (local) @@ -272,6 +272,27 @@ return (libusb20_dev_get_address(dev->os_priv)); } +enum libusb_speed +libusb_get_device_speed(libusb_device *dev) +{ + if (dev == NULL) + return (0); /* should not happen */ + + switch (libusb20_dev_get_speed(dev->os_priv)) { + case LIBUSB20_SPEED_LOW: + return (LIBUSB_SPEED_LOW); + case LIBUSB20_SPEED_FULL: + return (LIBUSB_SPEED_FULL); + case LIBUSB20_SPEED_HIGH: + return (LIBUSB_SPEED_HIGH); + case LIBUSB20_SPEED_SUPER: + return (LIBUSB_SPEED_SUPER); + default: + break; + } + return (LIBUSB_SPEED_UNKNOWN); +} + int libusb_get_max_packet_size(libusb_device *dev, uint8_t endpoint) { --Boundary-00=_D5hSOoqXjo4E+bg-- From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 16 17:30:25 2011 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 C6E071065673; Tue, 16 Aug 2011 17:30:25 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id CD30C8FC17; Tue, 16 Aug 2011 17:30:24 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=b20eX9+WwT+rchjRp65q2r9rWd5NV3fsbYwDDw8k8E8= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=fJEGAQ7EGC8A:10 a=WQU8e4WWZSUA:10 a=N659UExz7-8A:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=6I5d2MoRAAAA:8 a=20KFwNOVAAAA:8 a=TSbVqHtbAAAA:8 a=voznR72gjcC1rhOVUJ4A:9 a=pILNOxqGKmIA:10 a=akYS_eu778kA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 164683112; Tue, 16 Aug 2011 19:30:22 +0200 From: Hans Petter Selasky To: Juergen Lock Date: Tue, 16 Aug 2011 19:27:57 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <20110815202656.GA94934@triton8.kn-bremen.de> In-Reply-To: <20110815202656.GA94934@triton8.kn-bremen.de> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Message-Id: <201108161927.57212.hselasky@c2i.net> Cc: Hans de Goede , "freebsd-emulation@FreeBSD.org" , "qemu-devel@nongnu.org" , "freebsd-usb@FreeBSD.org" Subject: Re: qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed() 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, 16 Aug 2011 17:30:25 -0000 On Monday 15 August 2011 22:26:56 Juergen Lock wrote: > Hi! > > I just prepared a preliminary update of the emulators/qemu-devel > port to 0.15.0 [1], and among other things it now also has a > usb network redirection feature using usbredir [2], which uses > libusb 1.0 and a function that is missing in our version, > libusb_get_device_speed(). I added a stub to the code that > always returns LIBUSB_SPEED_UNKNOWN > (files/patch-usbredirhost-usbredirhost.c in the usbredir port [2]), > question for Hans (I guess), would there be an easy way to make a > `proper' implementation? > > If anyone wants to help me test qemu 0.15.0, thanx! > > I also updated the net.c and net.h udp patches for gns3 for this qemu > version: (the other gns3 patchfiles for qemu 0.14 still apply) > > http://people.freebsd.org/~nox/qemu/qemu-0.15.0-gns3-patches/ > > I added this note to the qemu-devel pkg-message about the usb > redirection [1]: > > ------------snip------ > - If you want to test the new (in 0.15.0) usb network redirection (USBREDIR > option) see this thread by Hans de Goede redhat.com>: > > > http://thread.gmane.org/gmane.comp.emulators.qemu/110176/focus=110183 Hi, It is also crashing here: usbredirserver 0c76:1607 usbredirparser info: Peer version: qemu usb-redir guest 0.15.0 Bus error (core dumped) qemu -cdrom xxx.iso -readconfig /usr/local/share/doc/qemu/docs/ich9-ehci- uhci.cfg -chardev socket,id=usbredirchardev,host=localhost,port=4000 -device usb-redir,chardev=usbredirchardev,id=usbredirdev *** EHCI support is under development *** FETCHENTRY: entry at 3DBFD04 is of type 2 which is not supported yet processing error - resetting ehci HC Assertion failed: (0), function ehci_advance_state, file /usr/ports/emulators/qemu-devel/work/qemu-0.15.0/hw/usb-ehci.c, line 2045. Abort (core dumped) Maybe Hans de Goede should do some testing with FreeBSD-current ? I just submitted the patch for FreeBSD-current that implements libusb_get_device_speed(). --HPS From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 16 20:23:58 2011 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 1BDD7106564A for ; Tue, 16 Aug 2011 20:23:58 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id CFC668FC0A for ; Tue, 16 Aug 2011 20:23:57 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 9C67E1E002C4; Tue, 16 Aug 2011 22:23:56 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p7GJTwCg084281; Tue, 16 Aug 2011 21:29:58 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p7GJTwrI084280; Tue, 16 Aug 2011 21:29:58 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 16 Aug 2011 21:29:58 +0200 To: Test Rat Message-ID: <20110816192958.GA84056@triton8.kn-bremen.de> References: <20110815202656.GA94934@triton8.kn-bremen.de> <86obzq9s9c.fsf@gmail.com> <86ei0m9qru.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86ei0m9qru.fsf@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-emulation@FreeBSD.org, Juergen Lock Subject: Re: qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed() 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, 16 Aug 2011 20:23:58 -0000 On Tue, Aug 16, 2011 at 03:52:21AM +0400, Test Rat wrote: > Test Rat writes: > > > Juergen Lock writes: > > > >> Hi! > >> > >> I just prepared a preliminary update of the emulators/qemu-devel > >> port to 0.15.0 > > [...] > >> Patch against current qemu-devel port: > >> > >> http://people.freebsd.org/~nox/qemu/qemu-devel-0.15.0.patch > > > > Any plans to add option/port for SGABIOS or make it default? > > It works fine here, screen seems to be limited to 25 lines > > and I had to remove `-D' from /boot.config. > > > > $ qemu -nographic -drive file=/dev/ada1 > > Could not open option rom 'sgabios.bin': No such file or directory > > Nevermind, after doing my homework it seems sgabios.bin is going to > be included into the distfile. > > http://lists.nongnu.org/archive/html/qemu-devel/2011-05/msg00915.html Well adding that to the build was easy enough, I made an svn snapshot (r8) from: https://code.google.com/p/sgabios/ svn checkout http://sgabios.googlecode.com/svn/trunk/ sgabios-read-only and put it in my MASTER_SITES_LOCAL/nox, and also at: http://people.freebsd.org/~nox/qemu/sgabios-read-only-r8.tar.gz for people to manually grab it and put it in /usr/ports/distfiles/qemu/0.15.0 until the mirrors have synced. I put the updated qemu-devel 0.15.0 port at the same place: http://people.freebsd.org/~nox/qemu/qemu-devel-0.15.0.shar http://people.freebsd.org/~nox/qemu/qemu-devel-0.15.0.patch HTH, :) Juergen From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 16 20:23:58 2011 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 22035106566C; Tue, 16 Aug 2011 20:23:58 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id CFCC18FC0C; Tue, 16 Aug 2011 20:23:57 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id D7A231E00259; Tue, 16 Aug 2011 22:23:56 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p7GJsNcY084701; Tue, 16 Aug 2011 21:54:23 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p7GJsNvi084700; Tue, 16 Aug 2011 21:54:23 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 16 Aug 2011 21:54:23 +0200 To: Hans Petter Selasky Message-ID: <20110816195422.GB84056@triton8.kn-bremen.de> References: <201108160937.39168.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201108160937.39168.hselasky@c2i.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Hans de Goede , "freebsd-emulation@FreeBSD.org" , Juergen Lock , "freebsd-usb@FreeBSD.org" , "qemu-devel@nongnu.org" Subject: Re: qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed() 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, 16 Aug 2011 20:23:58 -0000 On Tue, Aug 16, 2011 at 09:37:39AM +0200, Hans Petter Selasky wrote: > On Monday 15 August 2011 22:26:56 Juergen Lock wrote: > > Hi! > > > > I just prepared a preliminary update of the emulators/qemu-devel > > port to 0.15.0 [1], and among other things it now also has a > > usb network redirection feature using usbredir [2], which uses > > libusb 1.0 and a function that is missing in our version, > > libusb_get_device_speed(). I added a stub to the code that > > always returns LIBUSB_SPEED_UNKNOWN > > (files/patch-usbredirhost-usbredirhost.c in the usbredir port [2]), > > question for Hans (I guess), would there be an easy way to make a > > `proper' implementation? > > > > If anyone wants to help me test qemu 0.15.0, thanx! > > Please try the attached patch to libusb in /usr/src/lib/libusb . > > You only need to rebuild libusb: make all install clean > > > FETCHENTRY: entry at 22C5484 is of type 2 which is not supported > > yet processing error - resetting ehci HC > > Try my patch first. EHCI needs to know device speed. Thanx, tho it turns out: a) the FETCHENTRY:.. crash also happens without any device redirection with FreeBSD 8.2 (at least) guests and ehci enabled (-readconfig docs/ich9-ehci-uhci.cfg), and b) if I test this with your patch (working libusb_get_device_speed() that doesn't just always return LIBUSB_SPEED_UNKNOWN) and redirecting an usb 2.0 device with ehci enabled using usbredir then qemu complains like: qemu: Warning: speed mismatch trying to attach usb device USB Redirectio n Device to bus usb.0 and ignores the redirected device. So for now I have added a #define IGNORE_LIBUSB_GET_DEVICE_SPEED to the (updated) preliminary usbredir FreeBSD port, http://people.freebsd.org/~nox/qemu/usbredir.shar so that usbredirhost_open() now always works with: device_connect.speed = usb_redir_speed_unknown; Question: do people also see this problem on Linux? This post has an usage example: http://thread.gmane.org/gmane.comp.emulators.qemu/110176/focus=110183 Or is the problem just that with the example usage, sudo usbredirserver 045e:0772 ... qemu ... \ -readconfig docs/ich9-ehci-uhci.cfg \ -chardev socket,id=usbredirchardev,host=localhost,port=4000 \ -device usb-redir,chardev=usbredirchardev,id=usbredirdev qemu 0.15.0 tries to attach the redirected usb 2.0 device to the uhci bus instead of to the ehci one and if yes, how can I fix that? Thanx! :) Juergen From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 16 20:24:06 2011 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 AEF351065670; Tue, 16 Aug 2011 20:24:06 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 3987B8FC15; Tue, 16 Aug 2011 20:24:06 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 803ED1E00078; Tue, 16 Aug 2011 22:24:05 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p7GKMmDd087005; Tue, 16 Aug 2011 22:22:48 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p7GKMmUH087004; Tue, 16 Aug 2011 22:22:48 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 16 Aug 2011 22:22:48 +0200 To: Juergen Lock Message-ID: <20110816202248.GA86610@triton8.kn-bremen.de> References: <201108160937.39168.hselasky@c2i.net> <20110816195422.GB84056@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110816195422.GB84056@triton8.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Hans de Goede , "freebsd-emulation@FreeBSD.org" , "qemu-devel@nongnu.org" , "freebsd-usb@FreeBSD.org" , Hans Petter Selasky Subject: Re: qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed() 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, 16 Aug 2011 20:24:06 -0000 On Tue, Aug 16, 2011 at 09:54:23PM +0200, Juergen Lock wrote: > On Tue, Aug 16, 2011 at 09:37:39AM +0200, Hans Petter Selasky wrote: > > On Monday 15 August 2011 22:26:56 Juergen Lock wrote: > > > Hi! > > > > > > I just prepared a preliminary update of the emulators/qemu-devel > > > port to 0.15.0 [1], and among other things it now also has a > > > usb network redirection feature using usbredir [2], which uses > > > libusb 1.0 and a function that is missing in our version, > > > libusb_get_device_speed(). I added a stub to the code that > > > always returns LIBUSB_SPEED_UNKNOWN > > > (files/patch-usbredirhost-usbredirhost.c in the usbredir port [2]), > > > question for Hans (I guess), would there be an easy way to make a > > > `proper' implementation? > > > > > > If anyone wants to help me test qemu 0.15.0, thanx! > > > > Please try the attached patch to libusb in /usr/src/lib/libusb . > > > > You only need to rebuild libusb: make all install clean > > > > > FETCHENTRY: entry at 22C5484 is of type 2 which is not supported > > > yet processing error - resetting ehci HC > > > > Try my patch first. EHCI needs to know device speed. > > Thanx, tho it turns out: > > a) the FETCHENTRY:.. crash also happens without any device redirection > with FreeBSD 8.2 (at least) guests and ehci enabled (-readconfig > docs/ich9-ehci-uhci.cfg), and > > b) if I test this with your patch (working libusb_get_device_speed() > that doesn't just always return LIBUSB_SPEED_UNKNOWN) and redirecting > an usb 2.0 device with ehci enabled using usbredir then qemu > complains like: > > qemu: Warning: speed mismatch trying to attach usb device USB Redirectio > n Device to bus usb.0 > > and ignores the redirected device. So for now I have added a > #define IGNORE_LIBUSB_GET_DEVICE_SPEED to the (updated) preliminary > usbredir FreeBSD port, > > http://people.freebsd.org/~nox/qemu/usbredir.shar > > so that usbredirhost_open() now always works with: > > device_connect.speed = usb_redir_speed_unknown; > > Question: do people also see this problem on Linux? This post has > an usage example: > > http://thread.gmane.org/gmane.comp.emulators.qemu/110176/focus=110183 > > Or is the problem just that with the example usage, > > sudo usbredirserver 045e:0772 > ... > qemu ... \ > -readconfig docs/ich9-ehci-uhci.cfg \ > -chardev socket,id=usbredirchardev,host=localhost,port=4000 \ > -device usb-redir,chardev=usbredirchardev,id=usbredirdev > > qemu 0.15.0 tries to attach the redirected usb 2.0 device to the > uhci bus instead of to the ehci one and if yes, how can I fix that? Nevermind, I didn't actually put the -readconfig parameter first. :( (It didn't occur to me that the order would matter...) But now I found that: a) seabios hangs at boot when I redirect an usb 2.0 flashkey with ehci enabled (at least with -cdrom), and b) with ehci disabled I still get the speed mismatch warning and the device is ignored. Maybe the speed mismatch check should be relaxed if there isn't a bus as fast as the device, and the device be attached to the fastest available bus instead? (i.e. also the same is likely to happen with usb 3.0 devices?) Thanx, Juergen (who will leave the FreeBSD usbredir port using usb_redir_speed_unknown for now I guess...) From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 16 21:07:44 2011 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 3DE0C1065674 for ; Tue, 16 Aug 2011 21:07:44 +0000 (UTC) (envelope-from spawk@acm.poly.edu) Received: from acm.poly.edu (acm.poly.edu [128.238.9.200]) by mx1.freebsd.org (Postfix) with ESMTP id D58628FC1A for ; Tue, 16 Aug 2011 21:07:43 +0000 (UTC) Received: (qmail 68391 invoked from network); 16 Aug 2011 20:41:01 -0000 Received: from unknown (HELO ?10.50.50.200?) (spawk@64.147.100.2) by acm.poly.edu with CAMELLIA256-SHA encrypted SMTP; 16 Aug 2011 20:41:01 -0000 Message-ID: <4E4AD5D6.6090803@acm.poly.edu> Date: Tue, 16 Aug 2011 16:40:54 -0400 From: Boris Kochergin User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:5.0) Gecko/20110701 Thunderbird/5.0 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Funny sleep behavior with 8.2-R/amd64 on Linux KVM 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, 16 Aug 2011 21:07:44 -0000 Hi. I have KVM running on a Linux machine: # uname -a Linux [censored] 2.6.18-238.19.1.el5 #1 SMP Fri Jul 15 07:31:24 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux I created it as follows: virt-install --name [censored] --vcpus 2 --ram 2048 --disk path=/var/lib/libvirt/images/[censored]/[censored],size=10,sparse=false --cdrom=/xen/iso/FreeBSD-8.2-RELEASE-amd64-disc1.iso --network bridge:br0 --network bridge:br1 --vnc --noautoconsole --hvm --accelerate --os-variant=freebsd7 --os-type unix Everything seems fine except one thing: it looks like the system, when asked to sleep, sleeps for three times as long as it was asked to: # time sleep 1 0.000u 0.000s 0:03.02 0.0% 0+0k 0+0io 0pf+0w This is also evident in increased top(1) update delays, delays between ping(8) sending packets, and so forth. Any thoughts? From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 17 03:04:06 2011 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 D00171065675 for ; Wed, 17 Aug 2011 03:04:06 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8FA3E8FC13 for ; Wed, 17 Aug 2011 03:04:06 +0000 (UTC) Received: by vxh11 with SMTP id 11so674556vxh.13 for ; Tue, 16 Aug 2011 20:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=yguxqsaDvPvu2PzLgJtrEWGngYX9/EOGcmnbcyPbzdk=; b=oEJrjCe1Va9gyuDYkmGjBkmD1naOKck4PsAgeC62gPG4oavSZrt8nEU57O3IsPfcoi WU+lfu38YrvoJAq5wRo4PHSjvaOrVB/bRrvIN4PZtlrvX0iReIIc0uLhUwfVyFHtqjce roxdUJ7fv9AEFw0+gq49FxjEBFSfDWso9o0Tg= MIME-Version: 1.0 Received: by 10.220.72.138 with SMTP id m10mr137199vcj.41.1313548527002; Tue, 16 Aug 2011 19:35:27 -0700 (PDT) Received: by 10.220.188.13 with HTTP; Tue, 16 Aug 2011 19:35:26 -0700 (PDT) Date: Wed, 17 Aug 2011 06:35:26 +0400 Message-ID: From: Andrey Fesenko To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Call for Testers: VirtualBox 4.1.0 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, 17 Aug 2011 03:04:07 -0000 not build after world update r224900 # uname -a FreeBSD beastie.mydomain.local 9.0-BETA1 FreeBSD 9.0-BETA1 #0 r224900: Wed Aug 17 04:48:06 MSK 2011 andrey@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 end build log ... missing-include-dirs -fdiagnostics-show-option -c /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4. 1.0_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/alloc-r0drv-freebsd.c ctfconvert -L VERSION alloc-r0drv-freebsd.o cc -O2 -pipe -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -w -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I include -I. -Ir0drv -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large -function-growth=1000 -fno-common -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx - msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-prote ctor -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winl ine -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-opt ion -c /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/v boxdrv/r0drv/freebsd/initterm-r0drv-freebsd.c ctfconvert -L VERSION initterm-r0drv-freebsd.o cc -O2 -pipe -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -w -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I include -I. -Ir0drv -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large -function-growth=1000 -fno-common -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx - msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-prote ctor -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winl ine -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-opt ion -c /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/v boxdrv/r0drv/freebsd/memobj-r0drv-freebsd.c /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/ r0drv/freebsd/memobj-r0drv-freebsd.c: In function 'rtR0MemObjFreeBSDPhysPageInit': /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/ r0drv/freebsd/memobj-r0drv-freebsd.c:398: error: 'PG_UNMANAGED' undeclared (first use in this function) /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/ r0drv/freebsd/memobj-r0drv-freebsd.c:398: error: (Each undeclared identifier is reported only once /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/ r0drv/freebsd/memobj-r0drv-freebsd.c:398: error: for each function it appears in.) *** Error code 1 Stop in /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/b in/src/vboxdrv. *** Error code 1 Stop in /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src. *** Error code 1 Stop in /usr/ports/emulators/virtualbox-ose-kmod. *** Error code 1 Stop in /usr/ports/emulators/virtualbox-ose-kmod. ===>>> make failed for emulators/virtualbox-ose-kmod ===>>> Aborting update ===>>> Update for emulators/virtualbox-ose-kmod failed ===>>> Aborting update ===>>> Upgrade of png-1.4.5_1 to png-1.4.8 complete ===>>> You can restart from the point of failure with this command line: portmaster emulators/virtualbox-ose emulators/virtualbox-ose-kmod From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 17 12:28:53 2011 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 9215E106567A for ; Wed, 17 Aug 2011 12:28:53 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id 377E08FC15 for ; Wed, 17 Aug 2011 12:28:53 +0000 (UTC) Received: from home.bluelife.at (93.104.210.95) by groupware.itac.at (Axigen) with (AES256-SHA encrypted) ESMTPSA id 28051B; Wed, 17 Aug 2011 14:29:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Wed, 17 Aug 2011 14:28:52 +0200 From: Bernhard Froehlich To: Andrey Fesenko In-Reply-To: References: Message-ID: <4189b2893f746c77137703eac760b4ac@bluelife.at> X-Sender: decke@bluelife.at User-Agent: Roundcube Webmail/0.5.4 X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B0201.4E4BB404.0082,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: freebsd-emulation@freebsd.org Subject: Re: Call for Testers: VirtualBox 4.1.0 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, 17 Aug 2011 12:28:53 -0000 On Wed, 17 Aug 2011 06:35:26 +0400, Andrey Fesenko wrote: > not build after world update r224900 > # uname -a > FreeBSD beastie.mydomain.local 9.0-BETA1 FreeBSD 9.0-BETA1 #0 r224900: > Wed Aug 17 04:48:06 MSK 2011 > andrey@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 > > end build log > ... > missing-include-dirs -fdiagnostics-show-option -c > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4. > 1.0_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/alloc-r0drv-freebsd.c > ctfconvert -L VERSION alloc-r0drv-freebsd.o > cc -O2 -pipe -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX > -DRT_WITH_VBOX -w -DVBOX_WITH_HARDENING > -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -fno-strict-aliasing > -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I > include -I. -Ir0drv -I. -I@ -I@/contrib/altq -finline-limit=8000 > --param inline-unit-growth=100 --param large > -function-growth=1000 -fno-common -fno-omit-frame-pointer -mno-sse > -mcmodel=kernel -mno-red-zone -mno-mmx - > msoft-float -fno-asynchronous-unwind-tables -ffreestanding > -fstack-protector -std=iso9899:1999 -fstack-prote > ctor -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winl > ine -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions > -Wmissing-include-dirs -fdiagnostics-show-opt > ion -c > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/v > boxdrv/r0drv/freebsd/initterm-r0drv-freebsd.c > ctfconvert -L VERSION initterm-r0drv-freebsd.o > cc -O2 -pipe -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX > -DRT_WITH_VBOX -w -DVBOX_WITH_HARDENING > -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -fno-strict-aliasing > -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I > include -I. -Ir0drv -I. -I@ -I@/contrib/altq -finline-limit=8000 > --param inline-unit-growth=100 --param large > -function-growth=1000 -fno-common -fno-omit-frame-pointer -mno-sse > -mcmodel=kernel -mno-red-zone -mno-mmx - > msoft-float -fno-asynchronous-unwind-tables -ffreestanding > -fstack-protector -std=iso9899:1999 -fstack-prote > ctor -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winl > ine -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions > -Wmissing-include-dirs -fdiagnostics-show-opt > ion -c > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/v > boxdrv/r0drv/freebsd/memobj-r0drv-freebsd.c > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/ > r0drv/freebsd/memobj-r0drv-freebsd.c: In function > 'rtR0MemObjFreeBSDPhysPageInit': > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/ > r0drv/freebsd/memobj-r0drv-freebsd.c:398: error: 'PG_UNMANAGED' > undeclared (first use in this function) > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/ > r0drv/freebsd/memobj-r0drv-freebsd.c:398: error: (Each undeclared > identifier is reported only once > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.0_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/ > r0drv/freebsd/memobj-r0drv-freebsd.c:398: error: for each function it > appears in.) > *** Error code 1 You can either take the patch that was committed a few day ago to the ports tree: http://www.freebsd.org/cgi/cvsweb.cgi/ports/emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c?rev=1.3 or for your convenience i've created a new cft with VirtualBox 4.1.2 that also includes this patch: http://home.bluelife.at/ports/virtualbox-cft-20110817.tar.gz -- Bernhard Fröhlich http://www.bluelife.at/ From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 17 14:28:04 2011 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 D0D09106566B for ; Wed, 17 Aug 2011 14:28:04 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8EA9E8FC0A for ; Wed, 17 Aug 2011 14:28:04 +0000 (UTC) Received: by vws18 with SMTP id 18so892350vws.13 for ; Wed, 17 Aug 2011 07:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=b+41F7w7wvJ/6n6WU0/Xv85iHhLsmHzxNCfK56hrFwU=; b=fqp51TxDFJqGDE0behjad1sPwcbSdTku3CjoKMSXgWnQzHkQW3iSg3wxKUR76X7mC4 lJMMFd6VmmXWqytTOjYAghtvygWLGTOLtWrb4TWzEdsEdrG/kkAQaqcVPI190vmm/xZ8 7NXw+LOIIV1u/op9RvXG6zQpa2iHeeVA+J+50= MIME-Version: 1.0 Received: by 10.220.120.12 with SMTP id b12mr310517vcr.111.1313591282051; Wed, 17 Aug 2011 07:28:02 -0700 (PDT) Received: by 10.220.188.13 with HTTP; Wed, 17 Aug 2011 07:28:01 -0700 (PDT) In-Reply-To: <4189b2893f746c77137703eac760b4ac@bluelife.at> References: <4189b2893f746c77137703eac760b4ac@bluelife.at> Date: Wed, 17 Aug 2011 18:28:01 +0400 Message-ID: From: Andrey Fesenko To: Bernhard Froehlich Content-Type: text/plain; charset=UTF-8 Cc: freebsd-emulation@freebsd.org Subject: Re: Call for Testers: VirtualBox 4.1.0 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, 17 Aug 2011 14:28:04 -0000 On Wed, Aug 17, 2011 at 4:28 PM, Bernhard Froehlich wrote: > On Wed, 17 Aug 2011 06:35:26 +0400, Andrey Fesenko wrote: >> not build after world update r224900 >> # uname -a >> FreeBSD beastie.mydomain.local 9.0-BETA1 FreeBSD 9.0-BETA1 #0 r224900: > > You can either take the patch that was committed a few day ago to the > ports tree: > > http://www.freebsd.org/cgi/cvsweb.cgi/ports/emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c?rev=1.3 > > or for your convenience i've created a new cft with VirtualBox 4.1.2 > that also includes this patch: > > http://home.bluelife.at/ports/virtualbox-cft-20110817.tar.gz > Ok. Thanks this version build. New error kBuild < 0.1.999 in the ports :( Need updates B-deps Source '/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.2_OSE/env.sh' once before you start to build VBox: source /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.2_OSE/env.sh kmk +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ Hardening is enabled which means that the VBox binaries will not run from the binary directory. The binaries have to be installed suid root and some more prerequisites have to be fulfilled which is normally done by installing the final package. For development, the hardening feature can be disabled by specifying the --disable-hardening parameter. Please never disable that feature for the final distribution! +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ Enjoy! ===> Building for virtualbox-ose-4.1.2 cd /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.2_OSE && /bin/sh env.sh && VBOX_LIBPATH_X11=/usr/local VBOX_FREEBSD_SRC=/usr/src/sys /usr/local/bin/kmk Config.kmk:157: *** You must update kBuild! Requires 0.1.999 or later, found 0.1.5-r2373. Stop. *** Error code 2 Stop in /usr/ports/emulators/virtualbox-ose. *** Error code 1 From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 17 19:55:38 2011 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 41FD5106564A for ; Wed, 17 Aug 2011 19:55:38 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id CC4CC8FC17 for ; Wed, 17 Aug 2011 19:55:37 +0000 (UTC) Received: from home.bluelife.at (93.104.210.95) by groupware.itac.at (Axigen) with (AES256-SHA encrypted) ESMTPSA id 33306F; Wed, 17 Aug 2011 21:55:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Wed, 17 Aug 2011 21:55:37 +0200 From: Bernhard Froehlich To: Andrey Fesenko In-Reply-To: References: <4189b2893f746c77137703eac760b4ac@bluelife.at> Message-ID: X-Sender: decke@bluelife.at User-Agent: Roundcube Webmail/0.5.4 X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B0202.4E4C1CB8.00F6,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: freebsd-emulation@freebsd.org Subject: Re: Call for Testers: VirtualBox 4.1.0 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, 17 Aug 2011 19:55:38 -0000 On Wed, 17 Aug 2011 18:28:01 +0400, Andrey Fesenko wrote: > On Wed, Aug 17, 2011 at 4:28 PM, Bernhard Froehlich > wrote: >> On Wed, 17 Aug 2011 06:35:26 +0400, Andrey Fesenko wrote: >>> not build after world update r224900 >>> # uname -a >>> FreeBSD beastie.mydomain.local 9.0-BETA1 FreeBSD 9.0-BETA1 #0 r224900: >> >> You can either take the patch that was committed a few day ago to the >> ports tree: >> >> http://www.freebsd.org/cgi/cvsweb.cgi/ports/emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c?rev=1.3 >> >> or for your convenience i've created a new cft with VirtualBox 4.1.2 >> that also includes this patch: >> >> http://home.bluelife.at/ports/virtualbox-cft-20110817.tar.gz >> > > Ok. Thanks this version build. > > New error kBuild < 0.1.999 in the ports :( Need updates B-deps Sorry, i've forgot to include the updated devel/kBuild port in the archive. It's added now. So you first need to update the devel/kBuild port to 0.1.9998 and then go on with the vbox ports. -- Bernhard Fröhlich http://www.bluelife.at/ From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 17 21:14:57 2011 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 DD4101065674; Wed, 17 Aug 2011 21:14:57 +0000 (UTC) (envelope-from kraxel@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx1.freebsd.org (Postfix) with ESMTP id B81028FC0C; Wed, 17 Aug 2011 21:14:57 +0000 (UTC) Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7HLEqMJ021742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 17 Aug 2011 17:14:52 -0400 Received: from rincewind.home.kraxel.org (ovpn-113-66.phx2.redhat.com [10.3.113.66]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p7HLEp3n002561; Wed, 17 Aug 2011 17:14:51 -0400 Message-ID: <4E4C2F4A.8080207@redhat.com> Date: Wed, 17 Aug 2011 23:14:50 +0200 From: Gerd Hoffmann User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110805 Red Hat/3.1.12-1.el6_1 Thunderbird/3.1.12 MIME-Version: 1.0 To: Juergen Lock References: <201108160937.39168.hselasky@c2i.net> <20110816195422.GB84056@triton8.kn-bremen.de> In-Reply-To: <20110816195422.GB84056@triton8.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Cc: Hans de Goede , "freebsd-emulation@FreeBSD.org" , "qemu-devel@nongnu.org" , "freebsd-usb@FreeBSD.org" , Hans Petter Selasky Subject: Re: [Qemu-devel] qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed() 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, 17 Aug 2011 21:14:58 -0000 Hi, > a) the FETCHENTRY:.. crash also happens without any device redirection > with FreeBSD 8.2 (at least) guests and ehci enabled (-readconfig > docs/ich9-ehci-uhci.cfg), and That will likely happen with a freebsd guest on a linux host too, looks like freebsd asks ehci to do something which isn't (fully) implemented in the emulation code. Will have a look. > qemu ... \ > -readconfig docs/ich9-ehci-uhci.cfg \ > -chardev socket,id=usbredirchardev,host=localhost,port=4000 \ > -device usb-redir,chardev=usbredirchardev,id=usbredirdev > > qemu 0.15.0 tries to attach the redirected usb 2.0 device to the > uhci bus instead of to the ehci one and if yes, how can I fix that? -device usb-redir,bus=ehci.0,... HTH, Gerd From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 19 14:12:36 2011 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 27C6F106566B for ; Fri, 19 Aug 2011 14:12:36 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id ADDA78FC0C for ; Fri, 19 Aug 2011 14:12:35 +0000 (UTC) Received: from [46.75.208.64] (46.75.208.64) by groupware.itac.at (Axigen) with (CAMELLIA256-SHA encrypted) ESMTPSA id 1ACF63; Fri, 19 Aug 2011 16:12:51 +0200 From: Bernhard =?ISO-8859-1?Q?Fr=F6hlich?= To: Jason Andresen X-Mailer: Modest 3.90.7 References: <4189b2893f746c77137703eac760b4ac@bluelife.at> <20110819093618.45752285.jandrese@vt.edu> In-Reply-To: <20110819093618.45752285.jandrese@vt.edu> Content-Type: text/plain; charset=utf-8 Content-ID: <1313763179.3503.2.camel@Nokia-N900-42-11> Date: Fri, 19 Aug 2011 16:13:00 +0200 Message-Id: <1313763180.3503.3.camel@Nokia-N900-42-11> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B0207.4E4E6F52.00A2,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: freebsd-emulation@freebsd.org Subject: Re: Call for Testers: VirtualBox 4.1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bernhard =?ISO-8859-1?Q?Fr=F6hlich?= List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2011 14:12:36 -0000 On Fr., 19. Aug. 2011 15:36:18 CEST, Jason Andresen wrote: > On Wed, 17 Aug 2011 21:55:37 +0200 > Bernhard Froehlich wrote: > > > Sorry, i've forgot to include the updated devel/kBuild port in the > > archive. It's added now. So you first need to update the devel/kBuild > > port to 0.1.9998 and then go on with the vbox ports. > > I just fetched and built your new version of kBuild from the port this > morning, but when I go to compile virtualbox I get the same error: > > ===>  Building for virtualbox-ose-4.1.0 > cd /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.0_OSE && > /bin/sh env.sh && VBOX_LIBPATH_X11=/usr/local > VBOX_FREEBSD_SRC=/usr/src/sys /usr/local/bin/kmk  Config.kmk:160: *** > You must update kBuild! KMK_REVISION=2537 KBUILD_KMK_REVISION=0 > KBUILD_PATH=/usr/local/share/kBuild.  Stop. *** Error code 2 > > Stop in /usr/ports/emulators/virtualbox-ose. > *** Error code 1 > > > 1 (63 .../ports/emulators/virtualbox-ose): ls -l > /var/db/pkg/kBuild-0.1.9998  total 32 > -rw-r--r--  1 root  wheel        19 Aug 19 09:30 +COMMENT > -rw-r--r--  1 root  wheel    9093 Aug 19 09:30 +CONTENTS > -rw-r--r--  1 root  wheel      115 Aug 19 09:30 +DESC > -rw-r--r--  1 root  wheel  17550 Aug 19 09:30 +MTREE_DIRS > > Apparently the KBUILD_KMK_REVISION isn't getting set properly in the > port for some reason? No. The problem is that virtualbox 4.1.0 requires the old kBuild from ports and from 4.1.2 onwards it requires the latest development version of kbuild. But virtualbox 4.1.0 is not upward compatible so it needs to be patched to get it build with a newer kbuild. This is already on the todo but needs some work and time. From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 19 14:36:31 2011 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 853811065672 for ; Fri, 19 Aug 2011 14:36:31 +0000 (UTC) (envelope-from jandrese@vt.edu) Received: from vms173009pub.verizon.net (vms173009pub.verizon.net [206.46.173.9]) by mx1.freebsd.org (Postfix) with ESMTP id 667258FC08 for ; Fri, 19 Aug 2011 14:36:31 +0000 (UTC) Received: from escaflowne.ceyah.org ([unknown] [71.191.197.2]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LQ6001X6GGIUBA0@vms173009.mailsrvcs.net> for freebsd-emulation@freebsd.org; Fri, 19 Aug 2011 08:36:19 -0500 (CDT) Date: Fri, 19 Aug 2011 09:36:18 -0400 From: Jason Andresen To: Bernhard Froehlich Message-id: <20110819093618.45752285.jandrese@vt.edu> In-reply-to: References: <4189b2893f746c77137703eac760b4ac@bluelife.at> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; amd64-portbld-freebsd8.2) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: Call for Testers: VirtualBox 4.1.0 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, 19 Aug 2011 14:36:31 -0000 On Wed, 17 Aug 2011 21:55:37 +0200 Bernhard Froehlich wrote: > Sorry, i've forgot to include the updated devel/kBuild port in the > archive. It's added now. So you first need to update the devel/kBuild > port to 0.1.9998 and then go on with the vbox ports. I just fetched and built your new version of kBuild from the port this morning, but when I go to compile virtualbox I get the same error: ===> Building for virtualbox-ose-4.1.0 cd /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.0_OSE && /bin/sh env.sh && VBOX_LIBPATH_X11=/usr/local VBOX_FREEBSD_SRC=/usr/src/sys /usr/local/bin/kmk Config.kmk:160: *** You must update kBuild! KMK_REVISION=2537 KBUILD_KMK_REVISION=0 KBUILD_PATH=/usr/local/share/kBuild. Stop. *** Error code 2 Stop in /usr/ports/emulators/virtualbox-ose. *** Error code 1 1 (63 .../ports/emulators/virtualbox-ose): ls -l /var/db/pkg/kBuild-0.1.9998 total 32 -rw-r--r-- 1 root wheel 19 Aug 19 09:30 +COMMENT -rw-r--r-- 1 root wheel 9093 Aug 19 09:30 +CONTENTS -rw-r--r-- 1 root wheel 115 Aug 19 09:30 +DESC -rw-r--r-- 1 root wheel 17550 Aug 19 09:30 +MTREE_DIRS Apparently the KBUILD_KMK_REVISION isn't getting set properly in the port for some reason? -- \__/ Jason Andresen -- My opinions are my own. \__/19\__/1A\__/1B\__/ /21\ That's the thing about people who think they hate computers. /2C\ \__/ What they really hate is lousy programmers. __/3B\__/ /41\ -- Larry Niven and Jerry Pournelle in "Oath of Fealty" /4B\__/4C\ \__/51\__/52\__/53\__/54\__/55\__/56\__/57\__/58\__/59\__/5A\__/5B\__/