From: Hans de Goede <hdegoede@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PULL for usb-next]: Move usb-redir over to using more usb-core infra + misc ehci fixes
Date: Tue, 04 Sep 2012 11:31:49 +0200 [thread overview]
Message-ID: <5045CA85.20807@redhat.com> (raw)
In-Reply-To: <5045BD7B.6050500@redhat.com>
Hi,
On 09/04/2012 10:36 AM, Gerd Hoffmann wrote:
> Hi,
>
>> I've made a tree with my current usb-redir work for upstream here:
>> including some more ehci fixes is here, can you please add the
>> patches from there to your usb-next tree?
>
> In general it is better to work against master not usb-next as usb-next
> is a moving target. A little hard in this case as there is a noticable
> usb queue waiting for 1.3 development open and you have dependencies on
> patches queued up ...
>
Understood, I'll start basing my work on master again once the necessary
deps for my work are in master.
>
>> usb-redir: Convert to new libusbredirparser 0.5 API
>
> This one adds a hard dependency on the latest libusbredirparser. Can we
> make this optional without too much fuss, so qemu continues to build
> with older versions, at least for a while? For example disable live
> migration support if we find an older libusbredir version?
I very carefully designed the libusbredirparser API and ABI so that
extensions could be added without breaking API or ABI, but the problem
is the new 64 bit ids, all callbacks for received packets, and all
helpers for sending packets take the id as a function argument which
is now changing from an uint32_t to an uint64_t, which means break API
and ABI :|
Note that at the wire level the capability negotiation makes things
still work with clients which only do 32 bit ids (which are fine as
long as XHCI is not involved), and like wise 64 bit id capable clients
will work fine with older qemu-s.
Fulfilling your request would mean wrapping 90% of all function
prototypes in hw/usb/redirect.c with #ifdef magic. Which I find rather
ugly. If you prefer the ifdef's over the hard version requirement,
I can do the ifdef-s, but my preference is to just put the hard
version dependency on the latest usbredir in there.
Regards,
Hans
next prev parent reply other threads:[~2012-09-04 9:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-03 14:02 [Qemu-devel] [PULL for usb-next]: Move usb-redir over to using more usb-core infra + misc ehci fixes Hans de Goede
2012-09-04 8:36 ` Gerd Hoffmann
2012-09-04 9:31 ` Hans de Goede [this message]
2012-09-04 10:05 ` Gerd Hoffmann
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=5045CA85.20807@redhat.com \
--to=hdegoede@redhat.com \
--cc=kraxel@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).