Skip to content

hw/block/nvme: support multiple namespaces

Klaus Jensen qemu-devel 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/block/nvme: refactor identify active namespace id listhw/block/nvme.c+4 -40 replies
2/4hw/block/nvme: support multiple namespaceshw/block/Makefile.objs hw/block/nvme-ns.c hw/block/nvme-ns.h +3 more+431 -1160 replies
3/4pci: allocate pci id for nvmeMAINTAINERS docs/specs/nvme.txt docs/specs/pci-ids.txt +1 more+26 -00 replies
4/4hw/block/nvme: change controller pci idhw/block/nvme.c hw/block/nvme.h hw/core/machine.c+12 -20 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchKeith BuschMaxim LevitskyGerd Hoffmann
1/4R-b
2/4R-b
3/4A-b R-b A-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/4] hw/block/nvme: support multiple namespaces

From: Klaus Jensen <[email protected]>

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: <[email protected]> ("[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
Signature · 1 line
2.27.0