]> git.proxmox.com Git - mirror_qemu.git/commit - hw/usb/redirect.c
usb-redir: Add an already_in_flight packet-id queue
authorHans de Goede <hdegoede@redhat.com>
Wed, 12 Sep 2012 13:08:35 +0000 (15:08 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 13 Sep 2012 07:50:46 +0000 (09:50 +0200)
commit9a8d4067a63702dfb62d0ae3399600a853ad5daa
treeb774ca3b114508f443163f46e174740fda6ccf48
parent8e60452a954978f2f52026aa5f5cfd948e4e2be0
usb-redir: Add an already_in_flight packet-id queue

After a live migration, the usb-hcd will re-queue all packets by
walking over the schedule in the guest memory again, but requests which
were encountered on the migration source before will already be in flight,
so these should *not* be re-send to the usbredir-host.

This patch adds an already in flight packet ud queue, which will be filled by
the source before migration and then moved over to the migration dest, any
async handled packets are then checked against this queue to avoid sending
the same packet to the usbredir-host twice.

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