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: NGollu Appalanaidu <anaidu.gollu@samsung.com> Signed-off-by: NGollu Appalanaidu <anaidu.gollu@samsung.com> Signed-off-by: NKlaus Jensen <k.jensen@samsung.com> Reviewed-by: NKeith Busch <kbusch@kernel.org>
Showing
hw/block/nvme-dif.c
0 → 100644
hw/block/nvme-dif.h
0 → 100644
想要评论请 注册 或 登录