hw/block/nvme: metadata and end-to-end data protection support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest13 patches 8 repliesIn review
- v412 patches 2 repliesSuperseded
- v3 RFC12 patches 13 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 RFC | 8 patches | 5 replies | Superseded | |
| v1 RFC | 3 patches | 5 replies | Superseded |
Changes in v5 from the cover letter
* add a required fix for zone management receive when metadata is involved
* add a couple of refactor patches for the zoned init code to make the format nvm patch more straight forward wrt. formatting of zoned namespaces.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | hw/block/nvme: fix zone management receive reporting too many zoneshw/ | +3 | 2 replies | |
| 2/13 | hw/block/nvme: add metadata supporthw/ hw/ hw/ +1 more | +632 | 0 replies | |
| 3/13 | hw/block/nvme: end-to-end data protectionhw/ hw/ hw/ +6 more | +857 | 0 replies | |
| 4/13 | hw/block/nvme: add verify commandhw/ hw/ hw/ +3 more | +156 | 0 replies | |
| 5/13 | hw/block/nvme: add non-mdts command size limit for verifyhw/ hw/ | +31 | 0 replies | |
| 6/13 | hw/block/nvme: support multiple lba formatshw/ | +52 | 0 replies | |
| 7/13 | hw/block/nvme: prefer runtime helpers instead of device parametershw/ hw/ | +4 | 1 reply | |
| 8/13 | hw/block/nvme: pull lba format initializationhw/ | +41 | 1 reply | |
| 9/13 | hw/block/nvme: parameterize nvme_ns_nlbashw/ | +10 | 3 replies | |
| 10/13 | hw/block/nvme: remove invalid zone resource checkshw/ | +0 | 0 replies | |
| 11/13 | hw/block/nvme: move zoned constraints checkshw/ | +28 | 0 replies | |
| 12/13 | hw/block/nvme: split zone check/set geometryhw/ | +47 | 0 replies | |
| 13/13 | hw/block/nvme: add support for the format nvm commandhw/ hw/ hw/ +3 more | +210 | 0 replies |
Reviews trailers per patch
9 of 13 patches have a Reviewed-by or Acked-by.
| Patch | Keith Busch | Gollu Appalanaidu | Dmitry Fomichev | Minwoo Im |
|---|---|---|---|---|
| 1/13 | R-b | |||
| 2/13 | R-b | Co-authored-by | ||
| 3/13 | R-b | Co-authored-by | ||
| 4/13 | R-b | |||
| 5/13 | R-b | |||
| 6/13 | R-b | |||
| 7/13 | R-b | |||
| 8/13 | R-b | |||
| 9/13 | R-b | |||
| 10/13 | ||||
| 11/13 | ||||
| 12/13 | ||||
| 13/13 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v5 00/13] hw/block/nvme: metadata and end-to-end data protection support
From: Klaus Jensen <[email protected]>
This is v5 of a series that adds support for metadata and end-to-end data protection.
First, on the subject of metadata, in v1, support was restricted to extended logical blocks, which was pretty trivial to implement, but required special initialization and broke DULBE. In v2, metadata is always stored continuously at the end of the underlying block device. This has the advantage of not breaking DULBE since the data blocks remains aligned and allows bdrv_block_status to be used to determinate allocation status. It comes at the expense of complicating the extended LBA emulation, but on the other hand it also gains support for metadata transfered as a separate buffer.
The end-to-end data protection support blew up in terms of required changes. This is due to the fact that a bunch of new commands has been added to the device since v1 (zone append, compare, copy), and they all require various special handling for protection information. If potential reviewers would like it split up into multiple patches, each adding pi support to one command, shout out.
Support for metadata and end-to-end data protection is all joint work with Gollu Appalanaidu.
v5:
* add a required fix for zone management receive when metadata is involved
* add a couple of refactor patches for the zoned init code to make the format nvm patch more straight forward wrt. formatting of zoned namespaces.
v4:
* promoted from RFC
* moved most eedp additions to nvme-dif.{c,h}. (Keith)
v3:
* added patch with Verify command
* added patches for multiple LBA formats and Format NVM
* changed NvmeSG to be a union (Keith)
Gollu Appalanaidu (1):
hw/block/nvme: add verify command
Klaus Jensen (10):
hw/block/nvme: fix zone management receive reporting too many zones hw/block/nvme: add metadata support
hw/block/nvme: end-to-end data protection
hw/block/nvme: add non-mdts command size limit for verify hw/block/nvme: prefer runtime helpers instead of device parameters hw/block/nvme: pull lba format initialization hw/block/nvme: parameterize nvme_ns_nlbas
hw/block/nvme: remove invalid zone resource checks hw/block/nvme: move zoned constraints checks hw/block/nvme: split zone check/set geometry
Minwoo Im (2):
hw/block/nvme: support multiple lba formats hw/block/nvme: add support for the format nvm command
hw/block/nvme-dif.h | 53 ++ hw/block/nvme-ns.h | 61 +- hw/block/nvme.h | 34 ++ include/block/nvme.h | 29 +- hw/block/nvme-dif.c | 508 +++++++++++++++++ hw/block/nvme-ns.c | 259 ++++++--- hw/block/nvme.c | 1267 +++++++++++++++++++++++++++++++++++++---- hw/block/meson.build | 2 +- hw/block/trace-events | 22 +- 9 files changed, 2018 insertions(+), 217 deletions(-) create mode 100644 hw/block/nvme-dif.h create mode 100644 hw/block/nvme-dif.c
Signature · 1 line
2.30.1