All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

  1. 02 Oct, 2013 1 commit
  2. 01 Sep, 2013 1 commit
  3. 22 Mar, 2013 1 commit
  4. 26 Feb, 2013 1 commit
  5. 21 Feb, 2013 1 commit
    • Stefan Hajnoczi's avatar
      slirp: switch to GPollFD · 8917c3bd
      Stefan Hajnoczi authored
      Slirp uses rfds/wfds/xfds more extensively than other QEMU components.
      
      The rarely-used out-of-band TCP data feature is used.  That means we
      need the full table of select(2) to g_poll(3) events:
      
        rfds -> G_IO_IN | G_IO_HUP | G_IO_ERR
        wfds -> G_IO_OUT | G_IO_ERR
        xfds -> G_IO_PRI
      
      I came up with this table by looking at Linux fs/select.c which maps
      select(2) to poll(2) internally.
      
      Another detail to watch out for are the global variables that reference
      rfds/wfds/xfds during slirp_select_poll().  sofcantrcvmore() and
      sofcantsendmore() use these globals to clear fd_set bits.  When
      sofcantrcvmore() is called, the wfds bit is cleared so that the write
      handler will no longer be run for this iteration of the event loop.
      
      This actually seems buggy to me since TCP connections can be half-closed
      and we'd still want to handle data in half-duplex fashion.  I think the
      real intention is to avoid running the read/write handler when the
      socket has been fully closed.  This is indicated with the SS_NOFDREF
      state bit so we now check for it before invoking the TCP write handler.
      Note that UDP/ICMP code paths don't care because they are
      connectionless.
      
      Note that slirp/ has a lot of tabs and sometimes mixed tabs with spaces.
      I followed the style of the surrounding code.
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: default avatarLaszlo Ersek <lersek@redhat.com>
      Message-id: 1361356113-11049-6-git-send-email-stefanha@redhat.com
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      8917c3bd
  6. 25 Jul, 2011 1 commit
    • Blue Swirl's avatar
      Wrap recv to avoid warnings · 00aa0040
      Blue Swirl authored
      Avoid warnings like these by wrapping recv():
        CC    slirp/ip_icmp.o
      /src/qemu/slirp/ip_icmp.c: In function 'icmp_receive':
      /src/qemu/slirp/ip_icmp.c:418:5: error: passing argument 2 of 'recv' from incompatible pointer type [-Werror]
      /usr/local/lib/gcc/i686-mingw32msvc/4.6.0/../../../../i686-mingw32msvc/include/winsock2.h:547:32: note: expected 'char *' but argument is of type 'struct icmp *'
      
      Remove also casts used to avoid warnings.
      Reviewed-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
      00aa0040
  7. 23 Jul, 2011 1 commit
  8. 25 Jul, 2010 1 commit
  9. 20 Apr, 2010 1 commit
  10. 07 Mar, 2010 1 commit
  11. 03 Dec, 2009 1 commit
  12. 27 Aug, 2009 1 commit
    • Ed Swierk's avatar
      slirp: Read host DNS config on demand · df7a86ed
      Ed Swierk authored
      Currently the qemu user-mode networking stack reads the host DNS
      configuration (/etc/resolv.conf or the Windows equivalent) only once
      when qemu starts.  This causes name lookups in the guest to fail if the
      host is moved to a different network from which the original DNS servers
      are unreachable, a common occurrence when the host is a laptop.
      
      This patch changes the slirp code to read the host DNS configuration on
      demand, caching the results for at most 1 second to avoid unnecessary
      overhead if name lookups occur in rapid succession.  On non-Windows
      hosts, /etc/resolv.conf is re-read only if the file has been replaced or
      if its size or mtime has changed.
      Signed-off-by: default avatarEd Swierk <eswierk@aristanetworks.com>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      df7a86ed
  13. 29 Jun, 2009 6 commits
  14. 13 Jun, 2009 1 commit
  15. 16 Mar, 2009 1 commit
  16. 07 Mar, 2009 1 commit
  17. 08 Jan, 2009 1 commit
  18. 13 Dec, 2008 1 commit
  19. 05 Dec, 2008 1 commit
  20. 01 Oct, 2008 1 commit
  21. 30 Aug, 2008 1 commit
  22. 09 May, 2008 1 commit
  23. 26 Oct, 2007 1 commit
  24. 17 Sep, 2007 1 commit
  25. 16 Sep, 2007 1 commit
  26. 03 May, 2006 1 commit
  27. 25 Apr, 2006 1 commit
  28. 11 Mar, 2006 1 commit
  29. 24 Nov, 2004 1 commit
  30. 21 Nov, 2004 1 commit
  31. 07 Oct, 2004 1 commit
  32. 12 Jul, 2004 1 commit
  33. 21 Apr, 2004 1 commit