From Fedora Project Wiki
(Let wrangler process submission, will look at at next weeks fesco meeting if it's readyforfesco)
No edit summary
Line 23: Line 23:


Using a kernel module reduces latency and improves packets per second for small packets.
Using a kernel module reduces latency and improves packets per second for small packets.


== Scope ==
== Scope ==


The work is all upstream in the kernel and qemu.  Guest code is already
The work is all upstream in the kernel and qemu.  Guest code is already upstream. Host/qemu work is in progress.  For Fedora 13 will likely have to backport some of it.                                                       
upstream. Host/qemu work is in progress.  For Fedora 13 will likely have to
backport some of it.                                                       
 
Milestones:


Reached:
=== Milestones Reached ===


- Guest Kernel:
- Guest Kernel:
Line 54: Line 49:
   profile and tune
   profile and tune


In progress:
=== In progress ===
- finalize qemu command line
- finalize qemu command line
- qemu: migration                                 
- qemu: migration                                 
Line 91: Line 86:
== User Experience ==
== User Experience ==


Users should see faster networking at least in cases of SRIOV or a dedicated
Users should see faster networking at least in cases of SRIOV or a dedicated per-guest network device.
per-guest network device.


== Dependencies ==
== Dependencies ==
Line 102: Line 96:


== Documentation ==
== Documentation ==
* '''FIXME'''


== Release Notes ==
== Release Notes ==
* '''FIXME'''KVM networking is enhanced by kernel acceleration


== Comments and Discussion ==
== Comments and Discussion ==
* See [[Talk:Features/VHostNet]]
* See [[Talk:Features/VHostNet]]
[[Category:FeatureReadyForFesco]]


[[Category:Virtualization|VHostNet]]
[[Category:Virtualization|VHostNet]]
[[Category:F13 Virt Features|VHostNet]]
[[Category:F13 Virt Features|VHostNet]]
[[Category:FeatureReadyForWrangler]]
<!-- Category:FeatureReadyForWrangler -->

Revision as of 05:02, 29 January 2010

Enable kernel acceleration for kvm networking

Summary

Enable kernel acceleration for kvm networking

Owner

Current status

  • Targeted release: Fedora 13
  • Last updated: 2009-07-22
  • Percentage of completion: code complete, changes in response to upstream review are being incorporated

Detailed Description

vhost net moves the task of converting virtio descriptors to skbs and back from qemu userspace to the kernel driver. It is activated by using -netdevice options (instead of -net) and adding vhost=on flag.

Benefit to Fedora

Using a kernel module reduces latency and improves packets per second for small packets.

Scope

The work is all upstream in the kernel and qemu. Guest code is already upstream. Host/qemu work is in progress. For Fedora 13 will likely have to backport some of it.

Milestones Reached

- Guest Kernel:

 MSI-X support in virtio net

- Host Kernel:

 iosignalfd, irqfd, eventfd polling
 finalize kernel/user interface    
 socket polling                    
 virtio transport with copy from/to user
 TX credits using destructor (or: poll device status)
 TSO/GSO                                             
 profile and tune                                    

- qemu:

 MSI-X support in virtio net
 connect to kernel backend with MSI-X     
 PCI interrupts emulation                 
 TSO/GSO        
 profile and tune

In progress

- finalize qemu command line - qemu: migration

Code posted, but won't be upstream in time and probably not important enough to backport

 raw sockets support in qemu, promisc mode

Delayed, will likely not make it by F13 ship date

 mergeable buffers
 programming MAC/vlan filtering

Test Plan

Guest:

  • WHQL networking tests

Networking:

  • Various MTU sizes
  • Broadcasts, multicasts,
  • Ethtool
  • Latency tests
  • Bandwidth tests
  • UDP testing
  • Guest to guest communication
  • More types of protocol testing
  • Guest vlans
  • Tests combination of multiple vnics on the guests
  • With/without {IP|TCP|UDP} offload

Virtualization:

  • Live migration

Kernel side:

  • Load/unload driver

User Experience

Users should see faster networking at least in cases of SRIOV or a dedicated per-guest network device.

Dependencies

  • kernel acceleration is implemented in the kernel rpm and depends on changes in qemu-kvm to work correctly.

Contingency Plan

  • We don't turn it on by default if it turns out to be unstable.

Documentation

  • FIXME

Release Notes

  • FIXMEKVM networking is enhanced by kernel acceleration

Comments and Discussion