qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/3] virtio: Use ioeventfd for virtqueue notify
@ 2010-11-11 13:47 Stefan Hajnoczi
  2010-11-11 13:47 ` [Qemu-devel] [PATCH 1/3] virtio-pci: Rename bugs field to flags Stefan Hajnoczi
                   ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: Stefan Hajnoczi @ 2010-11-11 13:47 UTC (permalink / raw)
  To: qemu-devel; +Cc: kvm, Michael S. Tsirkin

This is a rewrite of the virtio-ioeventfd patchset to work at the virtio-pci.c
level instead of virtio.c.  This results in better integration with the
host/guest notifier code and makes the code simpler (no more state machine).

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.

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2010-12-06 15:10 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-11 13:47 [Qemu-devel] [PATCH v2 0/3] virtio: Use ioeventfd for virtqueue notify Stefan Hajnoczi
2010-11-11 13:47 ` [Qemu-devel] [PATCH 1/3] virtio-pci: Rename bugs field to flags Stefan Hajnoczi
2010-11-11 13:47 ` [Qemu-devel] [PATCH 2/3] virtio-pci: Use ioeventfd for virtqueue notify Stefan Hajnoczi
2010-11-11 15:53   ` [Qemu-devel] " Michael S. Tsirkin
2010-11-12  9:18     ` Stefan Hajnoczi
2010-11-12  9:25       ` Michael S. Tsirkin
2010-11-12 13:10         ` Stefan Hajnoczi
2010-11-11 16:45   ` Christoph Hellwig
2010-11-12  9:20     ` Stefan Hajnoczi
2010-11-14 10:34       ` Avi Kivity
2010-11-14 10:37         ` Stefan Hajnoczi
2010-11-14 11:05           ` Avi Kivity
2010-11-14 12:19             ` Avi Kivity
2010-11-15 11:20               ` Stefan Hajnoczi
2010-12-01 11:44                 ` Stefan Hajnoczi
2010-12-01 12:30                   ` Avi Kivity
2010-12-01 21:34                     ` Stefan Hajnoczi
2010-12-06 15:09                       ` Avi Kivity
2010-11-11 16:59   ` Avi Kivity
2010-11-11 17:12     ` Michael S. Tsirkin
2010-11-11 17:55       ` Gleb Natapov
2010-11-11 13:47 ` [Qemu-devel] [PATCH 3/3] virtio-pci: Don't use ioeventfd on old kernels Stefan Hajnoczi
2010-11-11 17:46 ` [Qemu-devel] Re: [PATCH v2 0/3] virtio: Use ioeventfd for virtqueue notify Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).