From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFqTd-00014J-4H for qemu-devel@nongnu.org; Sun, 23 Sep 2012 14:00:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFqTb-0002sz-MO for qemu-devel@nongnu.org; Sun, 23 Sep 2012 14:00:21 -0400 Received: from nm39-vm1.bullet.mail.bf1.yahoo.com ([72.30.239.145]:45931) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TFqTb-0002qs-Di for qemu-devel@nongnu.org; Sun, 23 Sep 2012 14:00:19 -0400 From: Shawn Starr Date: Sun, 23 Sep 2012 14:00:10 -0400 Message-ID: <2957571.vEYGqxexls@segfault.sh0n.net> In-Reply-To: <505EDE70.8020309@redhat.com> References: <3321480.8UDes0xfFC@segfault.sh0n.net> <2554757.y6MMtg902O@segfault.sh0n.net> <505EDE70.8020309@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [Qemu-devel] EHCI USB regression in 1.2.0 - ehci_state_fetchqtd() asserting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hans de Goede Cc: qemu-devel@nongnu.org, gerd@kraxel.org On Sunday, September 23, 2012 12:03:28 PM Hans de Goede wrote: > Hi, > > On 09/21/2012 08:46 PM, Shawn Starr wrote: > > On Friday, September 21, 2012 07:35:42 PM Hans de Goede wrote: > >> Hi, > >> > >> On 09/21/2012 05:39 PM, Shawn Starr wrote: > >>> On Friday, September 21, 2012 02:19:08 PM Hans de Goede wrote: > >>>> Hi, > >>> > >>> > >>> > >>>> Ok, so your using host redirection here, see the device usb-host > >>>> > >>>>> In addition, if i disable usb-redirection device the cam works as it > >>>>> did > >>>>> before (although like before, the video image is upside down in some > >>>>> applications). > >>>> > >>>> When you say disable the usb-redirection device, do you mean removing > >>>> the host redirection, and selecting the cam for redirection in a > >>>> spice client (ie remote-viewer) instead, or... ? > >>>> > >>>> Can you please try, disabling host-redirection, then connecting to > >>>> the vm with remote-viewer and then selecting the cam from > >>>> remote-viewers UI? > >>>> > >>>> Thanks, > >>>> > >>>> Hans > >>> > >>> Hi Hans, > >>> > >>> I am using usb-host and it works. If I keep usb-host and add > >>> usb-redirection it shows those errors. > >> > >> Hmm, this sounds like you are using spice usb-redir too and the 2 are > >> fighting each other. Which spice-client are you using? And are you > >> plugging > >> in the device after starting up the vm ? > >> > >>> Your patch however did fix using host-usb alone. > >> > >> Good. > >> > >>> I don't have a setup that can let me use usb-redirection unfortunately. > >> > >> Why not? Looking at your qemu cmdline you are using spice. Hmm, I guesss > >> you may want to keep the device redirected when no client is connected?> > > Using spicec, it doesn't give me an option to connection devices. > > spicec is deprecated you really should be using remote-viewer instead. That > will give you an option to select devices. > I installed virt-viewer (which I didn't know about), however the display is black (i only see a cursor) I did attach the USB device with it and debug shows this: qemu-kvm: usb-redir: ep: 00 type: 0 interface: 0 qemu-kvm: usb-redir: ep: 80 type: 0 interface: 0 qemu-kvm: usb-redir: ep: 87 type: 3 interface: 0 qemu-kvm: usb-redir: attaching high speed device 046d:0990 version 0.8 class ef qemu-kvm: usb-redir: reset device qemu-kvm: usb-redir: ctrl-out type 0x80 req 0x6 val 0x100 index 0 len 64 id 1071296768 qemu-kvm: usb-redir: ctrl-in status 0 len 18 id 1071296768 qemu-kvm: usb-redir: reset device qemu-kvm: usb-redir: set address 1 qemu-kvm: usb-redir: ctrl-out type 0x80 req 0x6 val 0x100 index 0 len 18 id 1071296768 qemu-kvm: usb-redir: ctrl-in status 0 len 18 id 1071296768 qemu-kvm: usb-redir: ctrl-out type 0x80 req 0x6 val 0x200 index 0 len 255 id 1071296768 qemu-kvm: usb-redir: ctrl-in status 0 len 255 id 1071296768 qemu-kvm: usb-redir: ctrl-out type 0x80 req 0x6 val 0x200 index 0 len 1433 id 1071296768 qemu-kvm: usb-redir: ctrl-in status 0 len 1433 id 1071296768 qemu-kvm: usb-redir: ctrl-out type 0x80 req 0x6 val 0x302 index 1033 len 255 id 1071296768 qemu-kvm: usb-redir: ctrl-in status 0 len 18 id 1071296768 lsusb info: --> Bus 001 Device 004: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000 I am having issues with attaching display with spice, but I saw no errors on attach of USB device, I just am not able test this. XML: QEMU Line: -chardev spicevmc,id=charredir0,name=usbredir -device usb- redir,chardev=charredir0,id=redir0 -device virtio-balloon- pci,id=balloon0,bus=pci.0,addr=0x6 -set device.redir0.debug=4 > > I assume > > > > usb-redirection for devices *not* on the same machine as the running VM? > > If > > so, that use case I wasn't testing originally (although useful) > > spice's usbredirection works fine locally too, and it gives you a nice > UI to redirect usb devices, without needing to need usb-ids, etc. > > >> Anyway, if you could remove the host-redirection temporarily and try with > >> spice usb-redir and collect logs that would be great. If you don't have > >> time for that, that is ok too, then I'll consider this issue resolved. > > > > I consider the issue resolved solely on usb-host issue vs any regressions > > with usb-redirection itself which I never used/tried. > > > > However, if someone can point out how you can test this, I can do this > > also. > See above :) > > Regards, > > Hans