qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	qemu-block@nongnu.org, Karl Rister <krister@redhat.com>,
	Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>,
	borntraeger@de.ibm.com, Stefan Hajnoczi <stefanha@redhat.com>
Subject: [Qemu-devel] [PATCH 0/4] RFC: A VFIO based block driver for NVMe device
Date: Wed, 21 Dec 2016 00:31:35 +0800	[thread overview]
Message-ID: <20161220163139.12016-1-famz@redhat.com> (raw)

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

             reply	other threads:[~2016-12-20 16:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-20 16:31 Fam Zheng [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161220163139.12016-1-famz@redhat.com \
    --to=famz@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=krister@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).