1. 14 6月, 2011 1 次提交
    • G
      usb: cancel async packets on unplug · 07771f6f
      Gerd Hoffmann 提交于
      This patch adds USBBusOps struct with (for now) only a single callback
      which is called when a device is about to be destroyed.  The USB Host
      adapters are implementing this callback and use it to cancel any async
      requests which might be in flight before the device actually goes away.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      07771f6f
  2. 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
  3. 12 1月, 2011 6 次提交
  4. 11 1月, 2011 1 次提交
  5. 12 12月, 2010 2 次提交
  6. 26 4月, 2010 1 次提交
  7. 02 4月, 2010 1 次提交
  8. 17 3月, 2010 1 次提交
  9. 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
  10. 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
  11. 12 12月, 2009 3 次提交
  12. 30 10月, 2009 3 次提交
  13. 07 10月, 2009 1 次提交
    • M
      New qdev_init_nofail() · e23a1b33
      Markus Armbruster 提交于
      Like qdev_init(), but terminate program via hw_error() instead of
      returning an error value.
      
      Use it instead of qdev_init() where terminating the program on failure
      is okay, either because it's during machine construction, or because
      we know that failure can't happen.
      
      Because relying in the latter is somewhat unclean, and the former is
      not always obvious, it would be nice to go back to qdev_init() in the
      not-so-obvious cases, only with proper error handling.  I'm leaving
      that for another day, because it involves making sure that error
      values are properly checked by all callers.
      
      Patchworks-ID: 35168
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      e23a1b33
  14. 05 10月, 2009 3 次提交
  15. 12 9月, 2009 1 次提交
    • B
      Fix sys-queue.h conflict for good · 72cf2d4f
      Blue Swirl 提交于
      Problem: Our file sys-queue.h is a copy of the BSD file, but there are
      some additions and it's not entirely compatible. Because of that, there have
      been conflicts with system headers on BSD systems. Some hacks have been
      introduced in the commits 15cc9235,
      f40d7537,
      96555a96 and
      3990d09a but the fixes were fragile.
      
      Solution: Avoid the conflict entirely by renaming the functions and the
      file. Revert the previous hacks.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      72cf2d4f
  16. 10 9月, 2009 2 次提交