1. 29 3月, 2017 1 次提交
  2. 21 12月, 2016 1 次提交
  3. 14 9月, 2016 1 次提交
    • D
      hw: replace most use of qemu_chr_fe_write with qemu_chr_fe_write_all · 6ab3fc32
      Daniel P. Berrange 提交于
      The qemu_chr_fe_write method will return -1 on EAGAIN if the
      chardev backend write would block. Almost no callers of the
      qemu_chr_fe_write() method check the return value, instead
      blindly assuming data was successfully sent. In most cases
      this will lead to silent data loss on interactive consoles,
      but in some cases (eg RNG EGD) it'll just cause corruption
      of the protocol being spoken.
      
      We unfortunately can't fix the virtio-console code, due to
      a bug in the Linux guest drivers, which would cause the
      entire Linux kernel to hang if we delay processing of the
      incoming data in any way. Fixing this requires first fixing
      the guest driver to not hold spinlocks while writing to the
      hvc device backend.
      
      Fixes bug: https://bugs.launchpad.net/qemu/+bug/1586756Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-Id: <1473170165-540-4-git-send-email-berrange@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      6ab3fc32
  4. 16 8月, 2016 1 次提交
  5. 08 8月, 2016 1 次提交
  6. 04 7月, 2016 3 次提交
  7. 07 4月, 2016 1 次提交
  8. 01 4月, 2016 2 次提交
  9. 23 3月, 2016 1 次提交
  10. 15 3月, 2016 5 次提交
  11. 05 2月, 2016 1 次提交
    • P
      slirp: Clean up includes · 7df7482b
      Peter Maydell 提交于
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1454089805-5470-10-git-send-email-peter.maydell@linaro.org
      7df7482b
  12. 04 2月, 2016 3 次提交
  13. 10 6月, 2014 1 次提交
  14. 09 6月, 2014 1 次提交
  15. 25 4月, 2014 1 次提交
  16. 17 9月, 2013 4 次提交
  17. 23 8月, 2013 1 次提交
  18. 16 4月, 2013 1 次提交
  19. 22 2月, 2013 2 次提交
    • 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
    • S
      slirp: slirp/slirp.c coding style cleanup · cf1d078e
      Stefan Hajnoczi 提交于
      The slirp glue code uses tabs in some places.  Since the next patch will
      modify the file, convert tabs to spaces and fix checkpatch.pl issues.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Message-id: 1361356113-11049-5-git-send-email-stefanha@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      cf1d078e
  20. 30 1月, 2013 1 次提交
  21. 19 12月, 2012 2 次提交
  22. 15 11月, 2012 1 次提交
  23. 07 8月, 2012 1 次提交
  24. 04 8月, 2012 1 次提交
  25. 27 4月, 2012 1 次提交
  26. 13 3月, 2012 1 次提交