1. 14 10月, 2013 1 次提交
  2. 31 8月, 2013 1 次提交
  3. 23 8月, 2013 2 次提交
  4. 30 7月, 2013 1 次提交
  5. 29 7月, 2013 1 次提交
  6. 04 7月, 2013 2 次提交
  7. 07 5月, 2013 1 次提交
    • H
      uhci: Use an intermediate buffer for usb packet data · 9822261c
      Hans de Goede 提交于
      Due to various unfortunate reasons we cannot reliable detect a guest
      cancelling a packet as soon as it happens, instead we detect cancels
      with some delay.
      
      When packets are handled async, and we directly pass the guest memory for
      the packet to the usb-device as iovec, this means that the usb-device can
      write to guest-memory which the guest has already re-used for other purposes
      -> not good!
      
      This patch fixes this by adding an intermediate buffer and writing back not
      only the result, but also the data, of async completed packets when scanning
      the schedule.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      9822261c
  8. 19 2月, 2013 1 次提交
  9. 08 1月, 2013 1 次提交
  10. 07 1月, 2013 6 次提交
  11. 19 12月, 2012 2 次提交
  12. 17 12月, 2012 1 次提交
  13. 29 11月, 2012 1 次提交
  14. 21 11月, 2012 3 次提交
  15. 09 11月, 2012 1 次提交
    • H
      usb: split packet result into actual_length + status · 9a77a0f5
      Hans de Goede 提交于
      Since with the ehci and xhci controllers a single packet can be larger
      then maxpacketsize, it is possible for the result of a single packet
      to be both having transferred some data as well as the transfer to have
      an error.
      
      An example would be an input transfer from a bulk endpoint successfully
      receiving 1 or more maxpacketsize packets from the device, followed
      by a packet signalling halt.
      
      While already touching all the devices and controllers handle_packet /
      handle_data / handle_control code, also change the return type of
      these functions to void, solely storing the status in the packet. To
      make the code paths for regular versus async packet handling more
      uniform.
      
      This patch unfortunately is somewhat invasive, since makeing the qemu
      usb core deal with this requires changes everywhere. This patch only
      prepares the usb core for this, all the hcd / device changes are done
      in such a way that there are no functional changes.
      
      This patch has been tested with uhci and ehci hcds, together with usb-audio,
      usb-hid and usb-storage devices, as well as with usb-redir redirection
      with a wide variety of real devices.
      
      Note that there is usually no need to directly set packet->actual_length
      form devices handle_data callback, as that is done by usb_packet_copy()
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      9a77a0f5
  16. 01 11月, 2012 5 次提交
  17. 25 10月, 2012 10 次提交