]> git.proxmox.com Git - qemu.git/commit
usb-redir: Get rid of local shadow copy of packet headers
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Aug 2012 07:05:38 +0000 (09:05 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Sep 2012 05:43:00 +0000 (07:43 +0200)
commit104981d52b63dc3d68f39d4442881c667f44bbb9
tree63f4f167e2743596a19674f77ee3511eb563de27
parentcb897117cdedd488f19985c8ec5ea05971103a27
usb-redir: Get rid of local shadow copy of packet headers

The shadow copy only serves as an extra check (besides the packet-id) to
ensure the packet we get back is a reply to the packet we think it is.

This check has never triggered in all the time usb-redir is in use now,
and since the verified data in the returned packet-header is not used
otherwise, removing the check does not open any possibilities for the
usbredirhost to confuse us.

This is a preparation patch for completely getting rid of the async-packet
struct in usb-redir, instead relying on the (new) per ep queues in the
qemu usb core.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/redirect.c