Skip to content
Snippets Groups Projects
  1. Dec 16, 2013
  2. Dec 06, 2013
  3. Oct 10, 2013
    • Avi Kivity's avatar
      build: define _KERNEL everywhere · 95ce17e3
      Avi Kivity authored
      We have _KERNEL defines scattered throughout the code, which makes
      understanding it difficult.
      
      Define it just once, and adjust the source to build.
      
      We define it in an overridable variable, so that non-kernel imported code
      can undo it.
      95ce17e3
  4. Sep 15, 2013
    • Nadav Har'El's avatar
      Add copyright statement to drivers/* · c0e0ebf2
      Nadav Har'El authored
      Add Cloudius copyright and license statement to drivers/*.
      
      A couple of header files were based on Linux's BSD-licensed header files
      (e.g., include/uapi/linux/virtio_net.h) so they included the BSD license,
      but not any copyright statement, so we can just replace that by our own
      statement of the BSD license.
      c0e0ebf2
  5. Jul 28, 2013
  6. Jul 24, 2013
  7. Jul 11, 2013
    • Dor Laor's avatar
      Move from a request array approach back to allocation. · 5bcb95d9
      Dor Laor authored
      virtio_blk pre-allocates requests into a cache to avoid re-allocation
      (possibly an unneeded optimization with the current allocator).  However,
      it doesn't take into account that requests can be completed out-of-order,
      and simply reuses requests in a cyclic order. Noted by Avi although
      I had it made using a peak into the index ring but its too complex
      solution. There is no performance degradation w/ smp due to the good
      allocator we have today.
      5bcb95d9
  8. Jul 10, 2013
    • Dor Laor's avatar
      Allow parallel execution of {add|get}_buff, prevent fast path allocs · 350fa518
      Dor Laor authored
      virtio-vring and it's users (net/blk) were changed so no request
      header will be allocated on run time except for init. In order to
      do that, I have to change get_buf and break it into multiple parts:
      
              // Get the top item from the used ring
              void* get_buf_elem(u32 *len);
              // Let the host know we consumed the used entry
              // We separate that from get_buf_elem so no one
              // will re-cycle the request header location until
              // we're finished with it in the upper layer
              void get_buf_finalize();
              // GC the used items that were already read to be emptied
              // within the ring. Should be called by add_buf
              // It was separated from the get_buf flow to allow parallelism of the two
              void get_buf_gc();
      
      As a result, it was simple to get rid of the shared lock that protected
      _avail_head variable before. Today only the thread that calls add_buf
      updates this variable (add_buf calls get_buf_gc internally).
      
      There are two new locks instead:
        - virtio-net tx_gc lock - very rarely it can be accessed
          by the tx_gc thread or normally by the tx xmit thread
        - virtio-blk make_requests - there are parallel requests
      350fa518
    • Dor Laor's avatar
      Trivial: Move code above, preparation for preventing past path allocations for... · cc8cc19e
      Dor Laor authored
      Trivial: Move code above, preparation for preventing past path allocations for the virtio request data
      cc8cc19e
  9. Jul 04, 2013
  10. Jun 20, 2013
    • Dor Laor's avatar
      Add mergeable buffers support for virtio-net · d487ffd1
      Dor Laor authored
      The feature allows the hypervisor to batch several packets together
      as one large SG list. Once such header is received, the guest rx
      routine interates over the list and assembles a mega mbuf.
      
      The patch also simplifies the rx path by using a single buffer for
      the virtio data and its header. This shrinks the sg list from size of
      two into a single one.
      
      The issue is that at the moment I haven't seen packets w/ mbuf > 1
      being received. Linux guest does receives such packets here and there.
      It may be due to the use of offload features that enalrge the packet size
      d487ffd1
  11. Jun 06, 2013
    • Guy Zana's avatar
      msix: provide high priority handler when registering interrupt · 66066b07
      Guy Zana authored
      we have to disable virio interrupts before msix EOI so disabling
      must be done in the ISR handler context. This patch adds an std::function
      isr to the bindings.
      
      references to the rx and tx queues are saved as well (_rx_queue and _tx_queue),
      so they can be used in the ISR context.
      
      this patch reduces virtio net rx interrupts by a factor of 450.
      66066b07
  12. May 20, 2013
  13. May 14, 2013
  14. Mar 22, 2013
  15. Mar 07, 2013
  16. Mar 05, 2013
    • Avi Kivity's avatar
      virtio: fold virtio_device into virtio_driver · 5c5b95fe
      Avi Kivity authored
      virtio_device is now a simple set of accessors around pci::device.  Since
      the only users of virtio_device are virtio_driver and its subclasses, we
      can simply fold it into virtio_driver, eliminating the middleman.
      
      Resolves two FIXMEs where we leaked virtio_device objects created during
      probing.
      5c5b95fe
  17. Feb 28, 2013
  18. Feb 25, 2013
  19. Jan 27, 2013
  20. Jan 21, 2013
  21. Jan 15, 2013
  22. Jan 14, 2013
Loading