From: Gerd Hoffmann <kraxel@redhat.com>
To: Juergen Gross <jgross@suse.com>
Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org,
stefano.stabellini@eu.citrix.com
Subject: Re: [Qemu-devel] [Patch V1 2/3] xen/usb: add capability for passing through isoc jobs to host devices
Date: Fri, 04 Sep 2015 15:25:09 +0200 [thread overview]
Message-ID: <1441373109.19555.7.camel@redhat.com> (raw)
In-Reply-To: <1441277113-30693-3-git-send-email-jgross@suse.com>
On Do, 2015-09-03 at 12:45 +0200, Juergen Gross wrote:
> When Xen is using the qemu usb framework for pure passthrough of I/Os
> to host devices the handling of isoc jobs is rather complicated if
> multiple isoc frames are transferred with one call.
>
> Instead of calling the framework with each frame individually, using
> timers to avoid polling in a loop and sampling all responses to
> construct a sum response for the user, just add a capability to
> use the libusb isoc framework instead. This capability is selected
> via a device specific property.
>
> When the property is selected the host usb driver will use xen specific
> callbacks to signal the end of isoc I/Os. For now these callbacks will
> just be nops, they'll be filled with sensible actions when the xen
> pv-usb backend is being added.
So you basically add support for async isoc requests. Fine.
There is nothing xen specific in this though, except that xen is (so
far) the only user. It isn't going to work for uhci and ehci, put
possibly xhci can join the party.
So, the signaling needs to be different. The host adapter needs to
signal somehow that it can handle async iso packets. One way would be
to flag this per usb bus, another one per usb packet. Also all xen
naming and the xen inlude should go away. BTW: does this build without
xen-devel installed?
Can we get rid of the callbacks? By filling the USBPacket iovec with
the iso request chunks for example?
cheers,
Gerd
next prev parent reply other threads:[~2015-09-04 13:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-03 10:45 [Qemu-devel] [Patch V1 0/3] usb, xen: add pvUSB backend Juergen Gross
2015-09-03 10:45 ` [Qemu-devel] [Patch V1 1/3] xen: introduce dummy system device Juergen Gross
2015-09-07 15:29 ` Stefano Stabellini
2015-09-09 11:01 ` [Qemu-devel] [Xen-devel] " Juergen Gross
2015-09-03 10:45 ` [Qemu-devel] [Patch V1 2/3] xen/usb: add capability for passing through isoc jobs to host devices Juergen Gross
2015-09-04 13:25 ` Gerd Hoffmann [this message]
2015-09-09 11:37 ` Juergen Gross
2015-09-09 12:01 ` Gerd Hoffmann
2015-09-09 13:10 ` Juergen Gross
2015-09-09 14:43 ` Gerd Hoffmann
2015-09-15 19:17 ` [Qemu-devel] [Xen-devel] " Konrad Rzeszutek Wilk
2015-09-03 10:45 ` [Qemu-devel] [Patch V1 3/3] xen: add pvUSB backend Juergen Gross
2015-09-07 17:38 ` Stefano Stabellini
2015-09-09 11:22 ` [Qemu-devel] [Xen-devel] " Juergen Gross
2015-09-09 13:13 ` Stefano Stabellini
2015-10-27 18:54 ` Konrad Rzeszutek Wilk
2016-03-07 12:43 ` Juergen Gross
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=1441373109.19555.7.camel@redhat.com \
--to=kraxel@redhat.com \
--cc=jgross@suse.com \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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).