From: Klaus Birkelund <klaus@birkelund.eu>
To: Eric Blake <eblake@redhat.com>
Cc: Keith Busch <keith.busch@intel.com>,
Kevin Wolf <kwolf@redhat.com>,
qemu-devel@nongnu.org, qemu-block@nongnu.org,
Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 8/8] nvme: add an OpenChannel 2.0 NVMe device (ocssd)
Date: Mon, 20 May 2019 19:33:31 +0200 [thread overview]
Message-ID: <20190520173331.GA18987@apples.localdomain> (raw)
In-Reply-To: <f94686a4-b402-36c6-8070-185c0416b303@redhat.com>
On Mon, May 20, 2019 at 11:45:00AM -0500, Eric Blake wrote:
> On 5/17/19 3:42 AM, Klaus Birkelund Jensen wrote:
> > This adds a new 'ocssd' block device that emulates an OpenChannel 2.0
> > device. The device is backed by a new 'ocssd' block backend that is
> > based on the raw format driver but includes a header that holds the
> > device geometry and write data requirements. This new block backend is
> > special in that the size is not specified explicitly but in terms of
> > sector size, number of chunks, number of parallel units, etc. This
> > called for the addition of the `no_size_required` field in `struct
> > BlockDriver` to not fail image creation when the size parameter is
> > missing.
> >
> > The ocssd device is an individual device but shares a lot of code with
> > the nvme device. Thus, some core functionality of nvme/nvme.c has been
> > exported for use by nvme/ocssd.c.
> >
> > Thank you to the following people for their contributions to the
> > original qemu-nvme (github.com/OpenChannelSSD/qemu-nvme) implementation.
> >
> > Matias Bjørling <mb@lightnvm.io>
> > Javier González <javier@javigon.com>
> > Simon Andreas Frimann Lund <ocssd@safl.dk>
> > Hans Holmberg <hans@owltronix.com>
> > Jesper Devantier <contact@pseudonymous.me>
> > Young Tack Jin <youngtack.jin@circuitblvd.com>
> >
> > Signed-off-by: Klaus Birkelund Jensen <klaus.jensen@cnexlabs.com>
> > ---
> > MAINTAINERS | 14 +-
> > Makefile.objs | 1 +
> > block.c | 2 +-
> > block/Makefile.objs | 2 +-
> > block/nvme.c | 2 +-
> > block/ocssd.c | 690 ++++++++
> > hw/block/Makefile.objs | 2 +-
> > hw/block/{ => nvme}/nvme.c | 192 ++-
> > hw/block/nvme/ocssd.c | 2647 +++++++++++++++++++++++++++++++
> > hw/block/nvme/ocssd.h | 140 ++
> > hw/block/nvme/trace-events | 136 ++
> > hw/block/trace-events | 109 --
> > include/block/block_int.h | 3 +
> > include/block/nvme.h | 12 +-
> > include/block/ocssd.h | 231 +++
> > {hw => include/hw}/block/nvme.h | 61 +
> > include/hw/pci/pci_ids.h | 2 +
> > qapi/block-core.json | 47 +-
> > 18 files changed, 4121 insertions(+), 172 deletions(-)
> > create mode 100644 block/ocssd.c
> > rename hw/block/{ => nvme}/nvme.c (94%)
> > create mode 100644 hw/block/nvme/ocssd.c
> > create mode 100644 hw/block/nvme/ocssd.h
> > create mode 100644 hw/block/nvme/trace-events
> > create mode 100644 include/block/ocssd.h
> > rename {hw => include/hw}/block/nvme.h (63%)
>
> Feels big; are you sure this can't be split into smaller pieces to ease
> review?
>
I know, but I'm not sure how to meaningfully split it up. Would you
prefer that I move files in one commit? Changed stuff to nvme.{c,h} is
mostly removing static from functions and creating a prototype in the
header files to allow the ocssd device to use the functions. The commit
should be restricted to just adding the ocssd device. Any features and
additions required in the nvme device are added in previous commits.
> I'm focusing just on the qapi portions:
>
Thank you for the review of that, but it looks like this will all be
dropped from a v2 (see mail from Kevin), because it's simply bad
design to have the driver and device depend so closely on each other.
Thanks,
Klaus
next prev parent reply other threads:[~2019-05-20 17:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-17 8:42 [Qemu-devel] [PATCH 0/8] nvme: v1.3, sgls, metadata and new 'ocssd' device Klaus Birkelund Jensen
2019-05-17 8:42 ` [Qemu-devel] [PATCH 1/8] nvme: move device parameters to separate struct Klaus Birkelund Jensen
2019-05-17 8:42 ` [Qemu-devel] [PATCH 2/8] nvme: bump supported spec to 1.3 Klaus Birkelund Jensen
2019-05-17 8:42 ` [Qemu-devel] [PATCH 3/8] nvme: simplify PRP mappings Klaus Birkelund Jensen
2019-05-17 8:42 ` [Qemu-devel] [PATCH 4/8] nvme: allow multiple i/o's per request Klaus Birkelund Jensen
2019-05-17 8:42 ` [Qemu-devel] [PATCH 5/8] nvme: add support for metadata Klaus Birkelund Jensen
2019-05-22 6:12 ` [Qemu-devel] [Qemu-block] " Klaus Birkelund
2019-05-17 8:42 ` [Qemu-devel] [PATCH 6/8] nvme: add support for scatter gather lists Klaus Birkelund Jensen
2019-05-17 8:42 ` [Qemu-devel] [PATCH 7/8] nvme: keep a copy of the NVMe command in request Klaus Birkelund Jensen
2019-05-17 8:42 ` [Qemu-devel] [PATCH 8/8] nvme: add an OpenChannel 2.0 NVMe device (ocssd) Klaus Birkelund Jensen
2019-05-20 16:45 ` Eric Blake
2019-05-20 17:33 ` Klaus Birkelund [this message]
2019-05-20 13:01 ` [Qemu-devel] [PATCH 0/8] nvme: v1.3, sgls, metadata and new 'ocssd' device Kevin Wolf
2019-05-20 13:32 ` Klaus Birkelund
[not found] ` <20190520193445.GA22742@apples.localdomain>
[not found] ` <20190521080115.GA4971@linux.fritz.box>
2019-05-21 20:14 ` Klaus Birkelund
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=20190520173331.GA18987@apples.localdomain \
--to=klaus@birkelund.eu \
--cc=eblake@redhat.com \
--cc=keith.busch@intel.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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).