Skip to content

hw/block/nvme: support namespace attachment

Minwoo Im qemu-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 2 repliesIn review
  2. v38 patches 5 repliesSuperseded
  3. v2 posting 2/27 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/20 of 6 patches2 repliesSuperseded
v16 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Replace changed ns list to bitmap to not only represent relationship between controller and namespace, but also avoid duplications of nsids in the list. (Klaus)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8hw/block/nvme: support namespace detachhw/block/nvme-ns.c hw/block/nvme-ns.h hw/block/nvme-subsys.h +2 more+64 -20 replies
2/8hw/block/nvme: fix namespaces array to 1-basedhw/block/nvme-subsys.h+1 -10 replies
3/8hw/block/nvme: fix allocated namespace list to 256hw/block/nvme-subsys.h hw/block/nvme.h+7 -10 replies
4/8hw/block/nvme: support allocated namespace typehw/block/nvme-subsys.h hw/block/nvme.c+60 -160 replies
5/8hw/block/nvme: refactor nvme_select_ns_iocshw/block/nvme.c+21 -150 replies
6/8hw/block/nvme: support namespace attachment commandhw/block/nvme-subsys.h hw/block/nvme.c hw/block/nvme.h +2 more+83 -10 replies
7/8hw/block/nvme: support changed namespace asyncrohous eventhw/block/nvme-ns.h hw/block/nvme.c hw/block/nvme.h +1 more+69 -00 replies
8/8hw/block/nvme: support Identify NS Attached Controller Listhw/block/nvme.c hw/block/trace-events include/block/nvme.h+44 -00 replies

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKlaus JensenKeith Busch
SeriesR-b
1/8T-b R-b
2/8T-b R-b
3/8T-b R-b
4/8T-b R-b
5/8T-b R-b
6/8
7/8
8/8T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH V4 0/8] hw/block/nvme: support namespace attachment

Hello,

This series supports namespace attachment: attach and detach. This is the fourth version of series with replacing changed namespace list to bitmap to indicate changed namespace IDs.

Please review.

Thanks,

Since V3:
- Replace changed ns list to bitmap to not only represent relationship between controller and namespace, but also avoid duplications of nsids in the list. (Klaus)

Since V2:
- Added command effects (namespace inventory changed) for namespace attach command. (Keith)
- Added [7/8] patch to support asynchronus event when namespace inventory is updated. (Keith)
- Added review and tested tag from Klaus to all the patches, but [6/8]

    and [7/8].

Since V1:
- Fix to take 'ctrl' which is given from the command rather than 'n'.

    (Klaus)

- Add a [7/7] patch to support CNS 12h Identify command (Namespace Attached Controller list).

Minwoo Im (8):
hw/block/nvme: support namespace detach hw/block/nvme: fix namespaces array to 1-based hw/block/nvme: fix allocated namespace list to 256 hw/block/nvme: support allocated namespace type hw/block/nvme: refactor nvme_select_ns_iocs hw/block/nvme: support namespace attachment command hw/block/nvme: support changed namespace asyncrohous event hw/block/nvme: support Identify NS Attached Controller List

 hw/block/nvme-ns.c     |   1 +
 hw/block/nvme-ns.h     |   2 +
 hw/block/nvme-subsys.h |  28 +++-
 hw/block/nvme.c        | 300 ++++++++++++++++++++++++++++++++++++-----
 hw/block/nvme.h        |  37 +++++
 hw/block/trace-events  |   3 +
 include/block/nvme.h   |  14 ++
 7 files changed, 349 insertions(+), 36 deletions(-)
Signature · 1 line
2.27.0