1. 28 1月, 2012 2 次提交
  2. 17 1月, 2012 1 次提交
    • G
      usb: add USBEndpoint · d8e17efd
      Gerd Hoffmann 提交于
      Start maintaining endpoint state at USBDevice level.  Add USBEndpoint
      struct and some helper functions to deal with it.  For now it contains
      the endpoint type only.  Moved over some bits from usb-linux.c
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      d8e17efd
  3. 06 1月, 2012 1 次提交
  4. 15 12月, 2011 1 次提交
  5. 22 11月, 2011 2 次提交
  6. 07 9月, 2011 1 次提交
    • G
      usb: claim port at device initialization time. · 891fb2cd
      Gerd Hoffmann 提交于
      This patch makes qemu assign a port when creating the device, not when
      attaching it.  For most usb devices this isn't a noticable difference
      because they are in attached state all the time.
      
      The change affects usb-host devices which live in detached state while
      the real device is unplugged from the host.  They have a fixed port
      assigned all the time now instead of getting grabbing one on attach and
      releasing it at detach, i.e. they stop floating around at the usb bus.
      
      The change also allows to simplify usb-hub.  It doesn't need the
      handle_attach() callback any more to configure the downstream ports.
      This can be done at device initialitation time now.  The changed
      initialization order (first grab upstream port, then register downstream
      ports) also fixes some icky corner cases.  For example it is not possible
      any more to plug the hub into one of its own downstream ports.
      
      The usb host adapters must care too.  USBPort->dev being non-NULL
      doesn't imply any more the device is in attached state.  The host
      adapters must additionally check the USBPort->dev->attached flag.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      891fb2cd
  7. 21 8月, 2011 1 次提交
  8. 08 7月, 2011 1 次提交
  9. 05 7月, 2011 4 次提交
  10. 23 6月, 2011 3 次提交
  11. 14 6月, 2011 3 次提交
  12. 25 1月, 2011 2 次提交
    • B
      usb-bus: use snprintf · ea87e95f
      Blue Swirl 提交于
      Avoid this warning from OpenBSD linker:
        LINK  i386-softmmu/qemu
      ../usb-bus.o(.text+0x27c): In function `usb_get_fw_dev_path':
      /src/qemu/hw/usb-bus.c:294: warning: sprintf() is often misused,
      please use snprintf()
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      ea87e95f
    • G
      usb core: add migration support · c1ecb40a
      Gerd Hoffmann 提交于
      Yes, seriously.  There is no migration support at all for usb devices.
      They loose state, especially the device address, and stop responding
      because of that.  Oops.
      
      Luckily there is so much broken usb hardware out there that the guest
      usually just kicks the device hard (via port reset and
      reinitialization), then continues without a hitch.  So we got away with
      that in a surprising high number of cases.
      
      The arrival of remote wakeup (which enables autosuspend support) changes
      that picture though.  The usb devices also forget that it they are
      supposed to wakeup, so they don't do that.  The host also doesn't notice
      the device stopped working in case it suspended the device and thus
      expects it waking up instead of polling it.  Result is that your mouse
      is dead.
      
      Lets start fixing that.  Add a vmstate struct for USBDevice.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      c1ecb40a
  13. 12 1月, 2011 6 次提交
  14. 11 1月, 2011 1 次提交
  15. 12 12月, 2010 2 次提交
  16. 26 4月, 2010 1 次提交
  17. 02 4月, 2010 1 次提交
  18. 17 3月, 2010 1 次提交
  19. 16 3月, 2010 1 次提交
    • M
      error: Replace qemu_error() by error_report() · 1ecda02b
      Markus Armbruster 提交于
      error_report() terminates the message with a newline.  Strip it it
      from its arguments.
      
      This fixes a few error messages lacking a newline:
      net_handle_fd_param()'s "No file descriptor named %s found", and
      tap_open()'s "vnet_hdr=1 requested, but no kernel support for
      IFF_VNET_HDR available" (all three versions).
      
      There's one place that passes arguments without newlines
      intentionally: load_vmstate().  Fix it up.
      1ecda02b
  20. 25 2月, 2010 1 次提交
    • P
      Fix -usbdevice crash · d44168ff
      Paul Brook 提交于
      If -usbdevice is used on a machine with no USB busses, usb_create
      will fail and return NULL.  Patch below handles this failure gracefully
      rather than crashing when we try to init the device.
      Signed-off-by: NPaul Brook <paul@codesourcery.com>
      d44168ff
  21. 12 12月, 2009 3 次提交
  22. 30 10月, 2009 1 次提交