From: Klaus Jensen <its@irrelevant.dk>
To: qemu-devel@nongnu.org
Subject: [PATCH v2 0/4] hw/block/nvme: support multiple namespaces
Date: Mon, 29 Jun 2020 23:48:21 +0200 [thread overview]
Message-ID: <20200629214825.1283673-1-its@irrelevant.dk> (raw)
From: Klaus Jensen <k.jensen@samsung.com>
v2: bummer, v1 didn't apply cleanly to master (it applied to Kevin's
block tree); rebased to make patchew happy
This adds a new 'nvme-ns' device that attaches to the nvme device
through a bus. This decouples the nvme controller and nvme namespaces
such that multiple namespaces may be attached to the controller.
With this in place, we can allocate a fresh pci vendor/device id and get
rid of the Intel id pair that causes the Linux kernel to apply a bunch
of quirks that the device no longer has.
Based-on: <20200629203155.1236860-1-its@irrelevant.dk>
("[PATCH 0/3] hw/block/nvme: support scatter gather lists")
Klaus Jensen (4):
hw/block/nvme: refactor identify active namespace id list
hw/block/nvme: support multiple namespaces
pci: allocate pci id for nvme
hw/block/nvme: change controller pci id
MAINTAINERS | 1 +
docs/specs/nvme.txt | 23 ++++
docs/specs/pci-ids.txt | 1 +
hw/block/Makefile.objs | 2 +-
hw/block/nvme-ns.c | 172 ++++++++++++++++++++++++++
hw/block/nvme-ns.h | 66 ++++++++++
hw/block/nvme.c | 273 +++++++++++++++++++++++++++--------------
hw/block/nvme.h | 45 +++----
hw/block/trace-events | 8 +-
hw/core/machine.c | 1 +
include/hw/pci/pci.h | 1 +
11 files changed, 472 insertions(+), 121 deletions(-)
create mode 100644 docs/specs/nvme.txt
create mode 100644 hw/block/nvme-ns.c
create mode 100644 hw/block/nvme-ns.h
--
2.27.0
next reply other threads:[~2020-06-29 21:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-29 21:48 Klaus Jensen [this message]
2020-06-29 21:48 ` [PATCH v2 1/4] hw/block/nvme: refactor identify active namespace id list Klaus Jensen
2020-06-29 21:48 ` [PATCH v2 2/4] hw/block/nvme: support multiple namespaces Klaus Jensen
2020-06-29 21:48 ` [PATCH v2 3/4] pci: allocate pci id for nvme Klaus Jensen
2020-06-29 21:48 ` [PATCH v2 4/4] hw/block/nvme: change controller pci id Klaus Jensen
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=20200629214825.1283673-1-its@irrelevant.dk \
--to=its@irrelevant.dk \
--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).