1. 27 11月, 2012 3 次提交
  2. 26 11月, 2012 23 次提交
  3. 25 11月, 2012 4 次提交
  4. 24 11月, 2012 7 次提交
  5. 23 11月, 2012 1 次提交
  6. 21 11月, 2012 2 次提交
    • H
      usb-redir: Don't handle interrupt output packets async · 723aedd5
      Hans de Goede 提交于
      Instead report them as successfully completed directly on submission, this
      has 2 advantages:
      
      1) This matches the timing of interrupt output packets on real hardware,
      with the previous async handling, if an ep has an interval of say 500 ms,
      then there would be 500+ ms between the submission and the guest seeing the
      completion, as we wont do the write back until the qh gets polled again. And
      in the mean time the guest may very well have timed out, as the guest can
      reasonable expect a much quicker completion.
      
      2) This fixes interrupt output packets potentially getting send twice
      surrounding a migration. As we delay the writeback to guest memory until
      the qh gets polled again, there is a window between completion and writeback
      where migration can happen, in this case the destination will not know
      about the completion, and it will execute the packet *again*
      
      But it does also come with a disadvantage:
      
      1) If the actual interrupt out to the real usb device fails, there is no
      way to report this back to the guest.
      
      This patch assumes however that interrupt outs in practice never fail, as
      they are only used by specialized drivers, which are unlikely to issue illegal
      requests (unlike general class drivers which often issue requests which some
      devices don't implement). And that thus the advantages outway the disadvantage.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      723aedd5
    • H
      usb-redir: Split usb_handle_interrupt_data into separate in/out functions · 234e810c
      Hans de Goede 提交于
      No functional changes.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      234e810c