virtio: Use ioeventfd for virtqueue notify
Get series with b4
b4 am [email protected]Versions newest first
- v5 Latest4 patches 47 repliesIn review
Changes in v5 from the cover letter
* Fix spurious whitespace change in documentation
* Test and clear event notifier when deassigning to catch race condition
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | virtio-pci: Rename bugs field to flagshw/ | +7 | 0 replies | |
| 2/4 | virtio-pci: Use ioeventfd for virtqueue notifyhw/ hw/ hw/ | +179 | 16 replies | |
| 3/4 | virtio-pci: Don't use ioeventfd on old kernelshw/ kvm-all.c kvm-stub.c +1 more | +59 | 0 replies | |
| 4/4 | docs: Document virtio PCI -device ioeventfd=on|offdocs/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [Qemu-devel] [PATCH v5 0/4] virtio: Use ioeventfd for virtqueue notify
See below for the v5 changelog.
Due to lack of connectivity I am sending from GMail. Git should retain my [email protected] From address.
Virtqueue notify is currently handled synchronously in userspace virtio. This prevents the vcpu from executing guest code while hardware emulation code handles the notify.
On systems that support KVM, the ioeventfd mechanism can be used to make virtqueue notify a lightweight exit by deferring hardware emulation to the iothread and allowing the VM to continue execution. This model is similar to how vhost receives virtqueue notifies.
The result of this change is improved performance for userspace virtio devices. Virtio-blk throughput increases especially for multithreaded scenarios and virtio-net transmit throughput increases substantially.
Now that this code is in virtio-pci.c it is possible to explicitly enable devices for which virtio-ioeventfd should be used. Only virtio-blk and virtio-net are enabled at this time.
v5:
* Fix spurious whitespace change in documentation
* Test and clear event notifier when deassigning to catch race condition
v4:
* Simpler start/stop ioeventfd mechanism using bool ioeventfd_started state
* Support for migration
* Handle deassign race condition to avoid dropping a virtqueue kick
* Add missing kvm_enabled() check to kvm_has_many_ioeventfds()
* Documentation updates for qdev -device with ioeventfd=on|off