1. 30 4月, 2017 2 次提交
  2. 26 4月, 2017 1 次提交
  3. 25 4月, 2017 2 次提交
  4. 24 4月, 2017 2 次提交
  5. 14 3月, 2017 1 次提交
  6. 06 3月, 2017 11 次提交
  7. 01 3月, 2017 1 次提交
  8. 23 2月, 2017 1 次提交
  9. 15 2月, 2017 2 次提交
  10. 01 2月, 2017 1 次提交
  11. 28 1月, 2017 1 次提交
  12. 20 1月, 2017 2 次提交
  13. 19 1月, 2017 1 次提交
    • J
      vhost_net: device IOTLB support · c471ad0e
      Jason Wang 提交于
      This patches implements Device IOTLB support for vhost kernel. This is
      done through:
      
      1) switch to use dma helpers when map/unmap vrings from vhost codes
      2) introduce a set of VhostOps to:
         - setting up device IOTLB request callback
         - processing device IOTLB request
         - processing device IOTLB invalidation
      2) kernel support for Device IOTLB API:
      
      - allow vhost-net to query the IOMMU IOTLB entry through eventfd
      - enable the ability for qemu to update a specified mapping of vhost
      - through ioctl.
      - enable the ability to invalidate a specified range of iova for the
        device IOTLB of vhost through ioctl. In x86/intel_iommu case this is
        triggered through iommu memory region notifier from device IOTLB
        invalidation descriptor processing routine.
      
      With all the above, kernel vhost_net can co-operate with userspace
      IOMMU. For vhost-user, the support could be easily done on top by
      implementing the VhostOps.
      
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      c471ad0e
  14. 06 1月, 2017 1 次提交
    • P
      record/replay: add network support · 646c5478
      Pavel Dovgalyuk 提交于
      This patch adds support of recording and replaying network packets in
      irount rr mode.
      
      Record and replay for network interactions is performed with the network filter.
      Each backend must have its own instance of the replay filter as follows:
       -netdev user,id=net1 -device rtl8139,netdev=net1
       -object filter-replay,id=replay,netdev=net1
      
      Replay network filter is used to record and replay network packets. While
      recording the virtual machine this filter puts all packets coming from
      the outer world into the log. In replay mode packets from the log are
      injected into the network device. All interactions with network backend
      in replay mode are disabled.
      
      v5 changes:
       - using iov_to_buf function instead of loop
      Signed-off-by: NPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      646c5478
  15. 15 11月, 2016 1 次提交
    • D
      net: fix sending of data with -net socket, listen backend · e79cd406
      Daniel P. Berrange 提交于
      The use of -net socket,listen was broken in the following
      commit
      
        commit 16a3df40
        Author: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
        Date:   Fri May 13 15:35:19 2016 +0800
      
          net/net: Add SocketReadState for reuse codes
      
          This function is from net/socket.c, move it to net.c and net.h.
          Add SocketReadState to make others reuse net_fill_rstate().
          suggestion from jason.
      
      This refactored the state out of NetSocketState into a
      separate SocketReadState. This refactoring requires
      that a callback is provided to be triggered upon
      completion of a packet receive from the guest.
      
      The patch only registered this callback in the codepaths
      hit by -net socket,connect, not -net socket,listen. So
      as a result packets sent by the guest in the latter case
      get dropped on the floor.
      
      This bug is hidden because net_fill_rstate() silently
      does nothing if the callback is not set.
      
      This patch adds in the middle callback registration
      and also adds an assert so that QEMU aborts if there
      are any other codepaths hit which are missing the
      callback.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Reviewed-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      e79cd406
  16. 02 11月, 2016 1 次提交
  17. 29 10月, 2016 1 次提交
  18. 28 10月, 2016 1 次提交
  19. 26 10月, 2016 2 次提交
  20. 24 10月, 2016 5 次提交