qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Lonnie Mendez <lmendez19@austin.rr.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Large USB patch
Date: Fri, 21 Apr 2006 02:04:36 -0500	[thread overview]
Message-ID: <44488404.8010800@austin.rr.com> (raw)
In-Reply-To: <444874B0.3070905@gmx.de>

nix.wie.weg@gmx.de wrote:

   lo

>Yes I am absolutly sure we need this changes. The usb protocoll is a
>very sophisticated work. There is an exactly defined sequence in which
>packets are send. (I have made some small documentation about this:
>http://217.20.126.200/tino/usb-order-of-events.pdf
>http://217.20.126.200/tino/usb-order-of-events.odg)
>If you do not keep track of this, you will never be able to get most
>devices running. The qemu-specialcase-1.patch is the result of ignoring
>these sequence. At the moment I'm not even sure, if we have to implement
>the states in which a device is in (I mean default state, adress state
>... USB Spec. 1.1 chapter 9).
>  
>
   Well I'm glad someone took a deeper look at it.  I never addressed it 
as a correct solution to the problem.  And indeed with the patch applied 
the transaction log is clean.

>>>changed the handling of special messages like usb_reset or usb_attach
>>>8. I made the necessary changes to usb-hid.c and usb-hub.c
>>>9. I wrote a lot of source comments
>>> 
>>>
>>>      
>>>
>>  I'm in favor of a new api but with only one controller there is
>>almost no point in doing this yet.  
>>    
>>
>Sorry I can't agree on that point with you. We will get more
>controller/devices if we can provide an easy api for implementing them.
>I would really be interrested  to see an EHCI Controller - maybe I will
>even implement it by myself.
>  
>
   Sounds good.  Not sure what I was going on about there.

>>It may make more sense to either be able to specify either grabbing
>>all or a few interfaces to proxy to the guest.  Also, libusb is ok for
>>a generic handler, but there is no way you'll get someone to jump
>>through all the hoops necessary to get usb working under windows with
>>libusb-win32 or even mac os x.  On win32 host you have to manually
>>create an inf file with the PID/VID and then install that for every
>>device you try to use.  It's not a good idea to use the filter driver
>>unless the corresponding host driver is unbinded (especially for mass
>>storage).  On mac os x you would supposedly creates codeless kernel
>>extensions with the PID/VID to unbind the device.  That could be done
>>through scripts, but none exist.
>>
>>    
>>
>On that point you have probably misunderstood me. I dont want to
>liquidate any native usb-host files. On the contrary, with that patch it
>is easier to get more such native interfaces running. We could even
>implement on some platforms more than one interface. I for instance
>would like it, if I could have libusb and linux native support enabled
>at the same time so I could make such things like:
>$ qemu -usb controller=uhci -usb device=libusb:002:003,addto=001:001
>-usb device=linux:001:002,addto=001:002
>and it should now not be so difficult to implement.
>  
>
   Yes, I have misunderstood you.  It sounds like a good plan.  I'll 
ready the bsd redirector around the api tomorrow if possible.  From some 
limited testing it fails rather early on a linux guest so it shouldn't 
be too hard to fix on that.  There is quite a bit here and the person 
that would merge this into CVS is Fabrice Bellard.  He would have to 
review all this before it ever touches CVS.

  reply	other threads:[~2006-04-21  7:04 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-20 19:59 [Qemu-devel] Large USB patch nix.wie.weg
2006-04-21  2:23 ` Lonnie Mendez
2006-04-21  5:59   ` nix.wie.weg
2006-04-21  7:04     ` Lonnie Mendez [this message]
2006-04-21 14:53 ` Lonnie Mendez
2006-04-21 15:00   ` Lonnie Mendez
2006-04-21 15:50   ` Lonnie Mendez
2006-04-21 16:19     ` Lonnie Mendez
2006-04-21 16:29       ` nix.wie.weg
2006-04-21 17:28         ` Lonnie Mendez
2006-04-21 18:06           ` Lonnie Mendez
2006-04-21 18:38             ` Lonnie Mendez
2006-04-21 20:50               ` Lonnie Mendez
2006-04-22  9:33                 ` nix.wie.weg
2006-04-22 14:36                   ` Lonnie Mendez
2006-04-22 15:36                     ` nix.wie.weg
2006-04-22 15:38                       ` nix.wie.weg
2006-04-22 16:00                     ` nix.wie.weg
2006-04-22 16:19                       ` Lonnie Mendez
2006-04-22 16:35                         ` nix.wie.weg
2006-04-23  3:38                           ` Lonnie Mendez
2006-04-23 21:54                             ` nix.wie.weg
2006-04-29  1:03                             ` Lonnie Mendez
2006-04-29  3:29                               ` Lonnie Mendez
2006-04-30  0:46                                 ` Lonnie Mendez
2006-04-30 20:56                                   ` Lonnie Mendez
2006-04-21 16:26     ` nix.wie.weg
2006-04-22 14:15 ` nix.wie.weg
2006-04-23 15:02 ` Fabrice Bellard
2006-04-23 16:11   ` nix.wie.weg
2006-04-24 23:50 ` [Qemu-devel] Update for cvs 2006-04-24 nix.wie.weg

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=44488404.8010800@austin.rr.com \
    --to=lmendez19@austin.rr.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).