1. 15 3月, 2016 1 次提交
  2. 17 9月, 2013 1 次提交
  3. 22 2月, 2013 1 次提交
    • S
      slirp: switch to GPollFD · 8917c3bd
      Stefan Hajnoczi 提交于
      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: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Message-id: 1361356113-11049-6-git-send-email-stefanha@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8917c3bd
  4. 15 11月, 2012 1 次提交
  5. 01 8月, 2012 1 次提交
  6. 27 4月, 2012 1 次提交
  7. 22 10月, 2011 1 次提交
  8. 09 9月, 2011 1 次提交
  9. 28 8月, 2009 1 次提交
    • E
      slirp: Read host DNS config on demand · df7a86ed
      Ed Swierk 提交于
      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: NEd Swierk <eswierk@aristanetworks.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      df7a86ed
  10. 28 7月, 2009 1 次提交
  11. 29 6月, 2009 11 次提交
  12. 09 6月, 2009 1 次提交
    • J
      slirp: Reorder initialization · b8e8af38
      Jan Kiszka 提交于
      This patch reorders the initialization of slirp itself as well as its
      associated features smb and redirection. So far the first reference to
      slirp triggered the initialization, independent of the actual -net user
      option which may carry additional parameters. Now we save any request to
      add a smb export or some redirections until the actual initialization of
      the stack. This also allows to move a few parameters that were passed
      via global variable into the argument list of net_slirp_init.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NMark McLoughlin <markmc@redhat.com>
      b8e8af38
  13. 28 5月, 2009 1 次提交
  14. 27 5月, 2009 1 次提交
  15. 18 4月, 2009 1 次提交
  16. 07 3月, 2009 1 次提交
  17. 09 1月, 2009 2 次提交
  18. 27 10月, 2007 1 次提交
  19. 17 9月, 2007 1 次提交
  20. 13 9月, 2007 1 次提交
  21. 01 5月, 2006 1 次提交
  22. 16 4月, 2006 1 次提交
  23. 06 6月, 2005 1 次提交
  24. 06 9月, 2004 1 次提交
  25. 26 8月, 2004 1 次提交
  26. 13 7月, 2004 1 次提交
  27. 22 4月, 2004 1 次提交