All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] RFC: A VFIO based block driver for NVMe device
@ 2016-12-20 16:31 Fam Zheng
  2016-12-20 16:31 ` [Qemu-devel] [PATCH 1/4] ramblock-notifier: new Fam Zheng
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Fam Zheng @ 2016-12-20 16:31 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, qemu-block, Karl Rister, Kevin Wolf, Max Reitz,
	borntraeger, Stefan Hajnoczi

This series adds a new protocol driver that is intended to achieve about 20%
better performance for latency bound workloads (i.e. synchronous I/O) than
linux-aio when guest is exclusively accessing a NVMe device, by talking to the
device directly instead of through kernel file system layers and its NVMe
driver.

This applies on top of Stefan's block-next tree which has the busy polling
patches - the new driver also supports it.

A git branch is also available as:

    https://github.com/famz/qemu nvme

See patch 4 for benchmark numbers.

Tests are done on QEMU's NVMe emulation and a real Intel P3700 SSD NVMe card.
Most of dd/fio/mkfs/kernel build and OS installation testings work well, but an
weird write fault looking similar to [1] is consistently seen when installing
RHEL 7.3 guest, which is still under investigation.

[1]: http://lists.infradead.org/pipermail/linux-nvme/2015-May/001840.html

Also, the ram notifier is not enough for hot plugged block device because in
that case the notifier is installed _after_ ram blocks are added so it won't
get the events.

Fam Zheng (3):
  util: Add a notifier list for qemu_vfree()
  util: Add VFIO helper library
  block: Add VFIO based NVMe driver

Paolo Bonzini (1):
  ramblock-notifier: new

 block/Makefile.objs         |    1 +
 block/nvme.c                | 1026 +++++++++++++++++++++++++++++++++++++++++++
 exec.c                      |    5 +
 include/exec/memory.h       |    6 +-
 include/exec/ram_addr.h     |   46 +-
 include/exec/ramlist.h      |   72 +++
 include/qemu/notify.h       |    1 +
 include/qemu/vfio-helpers.h |   29 ++
 numa.c                      |   29 ++
 stubs/Makefile.objs         |    1 +
 stubs/ram.c                 |   10 +
 util/Makefile.objs          |    1 +
 util/oslib-posix.c          |    9 +
 util/vfio-helpers.c         |  713 ++++++++++++++++++++++++++++++
 xen-mapcache.c              |    3 +
 15 files changed, 1903 insertions(+), 49 deletions(-)
 create mode 100644 block/nvme.c
 create mode 100644 include/exec/ramlist.h
 create mode 100644 include/qemu/vfio-helpers.h
 create mode 100644 stubs/ram.c
 create mode 100644 util/vfio-helpers.c

-- 
2.9.3

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

end of thread, other threads:[~2017-01-11  6:41 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-20 16:31 [Qemu-devel] [PATCH 0/4] RFC: A VFIO based block driver for NVMe device Fam Zheng
2016-12-20 16:31 ` [Qemu-devel] [PATCH 1/4] ramblock-notifier: new Fam Zheng
2016-12-22  9:56   ` Paolo Bonzini
2017-01-11  5:38   ` Stefan Weil
2017-01-11  5:48     ` Stefan Weil
2017-01-11  6:41       ` Fam Zheng
2016-12-20 16:31 ` [Qemu-devel] [PATCH 2/4] util: Add a notifier list for qemu_vfree() Fam Zheng
2016-12-20 16:31 ` [Qemu-devel] [PATCH 3/4] util: Add VFIO helper library Fam Zheng
2016-12-21 15:46   ` Paolo Bonzini
2016-12-21 16:19     ` Fam Zheng
2016-12-21 17:02       ` Paolo Bonzini
2016-12-20 16:31 ` [Qemu-devel] [PATCH 4/4] block: Add VFIO based NVMe driver Fam Zheng
2016-12-20 16:39   ` Paolo Bonzini
2016-12-21 11:59   ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2016-12-21 14:05     ` Fam Zheng
2016-12-20 23:04 ` [Qemu-devel] [PATCH 0/4] RFC: A VFIO based block driver for NVMe device no-reply
2016-12-21  1:38   ` Fam Zheng
2016-12-21  0:48 ` no-reply
2016-12-29  4:09 ` Tian, Kevin
2016-12-30  0:46   ` Fam Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.