1. 15 Sep, 2008 1 commit
    • aliguori's avatar
      Use common objects for qemu-img and qemu-nbd · 03ff3ca3
      aliguori authored
      Right now, we sprinkle #if defined(QEMU_IMG) && defined(QEMU_NBD) all over the
      code.  It's ugly and causes us to have to build multiple object files for
      linking against qemu and the tools.
      
      This patch introduces a new file, qemu-tool.c which contains enough for
      qemu-img, qemu-nbd, and QEMU to all share the same objects.
      
      This also required getting qemu-nbd to be a bit more Windows friendly.  I also
      changed the Windows block-raw to use normal IO instead of overlapping IO since
      we don't actually do AIO yet on Windows.  I changed the various #if 0's to
       #if WIN32_AIO to make it easier for someone to eventually fix AIO on Windows.
      
      After this patch, there are no longer any #ifdef's related to qemu-img and
      qemu-nbd.
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5226 c046a42c-6fe2-441c-8c8c-71466251a162
      03ff3ca3
  2. 14 Sep, 2008 2 commits
  3. 13 Sep, 2008 1 commit
    • aliguori's avatar
      usb: Support for removing device by host addr, improved auto filter syntax (Max Krasnyansky) · 5d0c5750
      aliguori authored
      This patch adds support for removing USB devices by host address.
      Which is usefull for things like libvirtd because there is no easy way to
      find guest USB address of the host device.
      In other words you can now do:
         usb_add host:3.5
         ...
         usb_del host:3.5
      Before the patch 'usb_del' did not support 'host:' notation.
      
      ----
      Syntax for specifying auto connect filters has been improved.
      Old syntax was
          host:bus.dev
          host:pid:vid
      New syntax is
          host:auto:bus.dev[:pid:vid]
      In both the cases any attribute can be set to "*".
      
      New syntax is more flexible and lets you do things like
          host:3.*:5533:* /* grab any device on bus 3 with vendor id 5533 */
      
      It's now possible to remove auto filters. For example:
          usb_del host:auto:3.*:5533:*
      
      Active filters are printed after all host devices in 'info usb' output.
      Which now looks like this:
      
        Device 1.1, speed 480 Mb/s
          Hub: USB device 1d6b:0002, EHCI Host Controller
        Device 1.4, speed 480 Mb/s
          Class 00: USB device 1058:0704, External HDD
        Auto filters:
          Device 3.* ID *:*
      Signed-off-by: default avatarMax Krasnyansky <maxk@kernel.org>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5205 c046a42c-6fe2-441c-8c8c-71466251a162
      5d0c5750
  4. 10 Sep, 2008 1 commit
    • aliguori's avatar
      Use signalfd() to work around signal/select race · baf35cb9
      aliguori authored
      This patch introduces signalfd() to work around the signal/select race in
      checking for AIO completions.  For platforms that don't support signalfd(), we
      emulate it with threads.
      
      There was a long discussion about this approach.  I don't believe there are any
      fundamental problems with this approach and I believe eliminating the use of
      signals is a good thing.
      
      I've tested Windows and Linux using Windows and Linux guests.  I've also checked
      for disk IO performance regressions.
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5187 c046a42c-6fe2-441c-8c8c-71466251a162
      baf35cb9
  5. 09 Sep, 2008 1 commit
  6. 02 Sep, 2008 1 commit
  7. 28 Aug, 2008 1 commit
  8. 24 Aug, 2008 1 commit
  9. 22 Aug, 2008 1 commit
  10. 21 Aug, 2008 6 commits
  11. 19 Aug, 2008 1 commit
  12. 17 Aug, 2008 1 commit
  13. 15 Aug, 2008 1 commit
  14. 12 Aug, 2008 1 commit
  15. 11 Aug, 2008 1 commit
  16. 01 Aug, 2008 2 commits
  17. 29 Jul, 2008 1 commit
  18. 28 Jul, 2008 1 commit
    • aliguori's avatar
      Attempt to detect unconnected ptys (Gerd Hoffman) · 279e694b
      aliguori authored
      This patch moves the pty char device imlementation away from the generic
      filehandle code.  It tries to detect as good as possible whenever there
      is someone connected to the slave pty device and only send data down the
      road in case someone is listening.  Unfortunaly we have to poll via
      timer once in a while to check the status because we have to use read()
      on the master pty to figure the status (returns -EIO when unconnected).
      
      Poll intervall for an idle guest is one second, when the guest sends
      data to the virtual device linked to the pty we check more frequently.
      
      The point for all of this is to avoid qemu blocking and not responding
      any more.  Writing to the master pty handle succeeds even when nobody is
      connected to (and reading from) to the slave end of the pty.  The kernel
      just bufferes the writes.  And as soon as the kernel buffer is full the
      write() call blocks forever ...
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4956 c046a42c-6fe2-441c-8c8c-71466251a162
      279e694b
  19. 23 Jul, 2008 1 commit
  20. 22 Jul, 2008 1 commit
  21. 19 Jul, 2008 1 commit
  22. 18 Jul, 2008 3 commits
  23. 17 Jul, 2008 2 commits
  24. 03 Jul, 2008 1 commit
  25. 01 Jul, 2008 2 commits
  26. 30 Jun, 2008 1 commit
  27. 29 Jun, 2008 1 commit
  28. 28 Jun, 2008 1 commit
  29. 20 Jun, 2008 1 commit