From: Shawn Starr <shawn.starr@rogers.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: qemu-devel@nongnu.org, gerd@kraxel.org
Subject: Re: [Qemu-devel] EHCI USB regression in 1.2.0 - ehci_state_fetchqtd() asserting
Date: Sun, 23 Sep 2012 14:00:10 -0400 [thread overview]
Message-ID: <2957571.vEYGqxexls@segfault.sh0n.net> (raw)
In-Reply-To: <505EDE70.8020309@redhat.com>
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,
> >>>
> >>> <snip>
> >>>
> >>>> 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:commandline>
<qemu:arg value='-set'/>
<qemu:arg value='device.redir0.debug=4'/>
</qemu:commandline>
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
next prev parent reply other threads:[~2012-09-23 18:00 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-19 16:42 [Qemu-devel] EHCI USB regression in 1.2.0 - ehci_state_fetchqtd() asserting Shawn Starr
2012-09-19 16:53 ` Shawn Starr
2012-09-20 15:37 ` Hans de Goede
2012-09-20 19:08 ` Shawn Starr
2012-09-20 23:28 ` Shawn Starr
[not found] ` <6177450.mT8I4ey0nz@segfault.sh0n.net>
2012-09-21 0:04 ` Shawn Starr
2012-09-21 12:19 ` Hans de Goede
2012-09-21 15:39 ` Shawn Starr
2012-09-21 17:35 ` Hans de Goede
2012-09-21 18:46 ` Shawn Starr
2012-09-23 10:03 ` Hans de Goede
2012-09-23 18:00 ` Shawn Starr [this message]
2012-09-23 18:20 ` Shawn Starr
2012-09-23 18:52 ` Shawn Starr
2012-09-24 9:52 ` Hans de Goede
2012-09-24 14:24 ` Shawn Starr
2012-09-24 9:50 ` Hans de Goede
2012-09-24 14:20 ` Shawn Starr
2012-09-24 14:36 ` Hans de Goede
2012-09-24 14:38 ` Shawn Starr
2012-10-02 15:26 ` Shawn Starr
2012-10-08 11:27 ` Hans de Goede
2012-10-08 13:01 ` Johannes Stezenbach
2012-10-08 13:51 ` Hans de Goede
2012-10-08 14:49 ` Johannes Stezenbach
2012-10-08 15:03 ` Hans de Goede
2012-10-08 16:11 ` Johannes Stezenbach
2012-10-08 20:10 ` Hans de Goede
2012-10-08 20:18 ` Shawn Starr
2012-10-08 21:32 ` Hans de Goede
2012-10-08 21:37 ` Shawn Starr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2957571.vEYGqxexls@segfault.sh0n.net \
--to=shawn.starr@rogers.com \
--cc=gerd@kraxel.org \
--cc=hdegoede@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).