Skip to content
Snippets Groups Projects
Commit 146f720c authored by Klaus Jensen's avatar Klaus Jensen
Browse files

hw/block/nvme: end-to-end data protection


Add support for namespaces formatted with protection information. The
type of end-to-end data protection (i.e. Type 1, Type 2 or Type 3) is
selected with the `pi` nvme-ns device parameter. If the number of
metadata bytes is larger than 8, the `pil` nvme-ns device parameter may
be used to control the location of the 8-byte DIF tuple. The default
`pil` value of '0', causes the DIF tuple to be transferred as the last
8 bytes of the metadata. Set to 1 to store this in the first eight bytes
instead.

Co-authored-by: default avatarGollu Appalanaidu <anaidu.gollu@samsung.com>
Signed-off-by: default avatarGollu Appalanaidu <anaidu.gollu@samsung.com>
Signed-off-by: default avatarKlaus Jensen <k.jensen@samsung.com>
Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
parent bc3a65e9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment