diff options
| author | Klaus Jensen <k.jensen@samsung.com> | 2020-11-23 15:54:55 +0530 |
|---|---|---|
| committer | Klaus Jensen <k.jensen@samsung.com> | 2021-03-18 12:34:51 +0100 |
| commit | bc3a65e99254cfe001bd16a569a5aa7d20f930e8 (patch) | |
| tree | 7a8af71f3ea29be60d657c2e1209bedf248298bf /qapi/qobject-output-visitor.c | |
| parent | 3754df04ec291b933c18285210793d02c9d9787a (diff) | |
| download | focaccia-qemu-bc3a65e99254cfe001bd16a569a5aa7d20f930e8.tar.gz focaccia-qemu-bc3a65e99254cfe001bd16a569a5aa7d20f930e8.zip | |
hw/block/nvme: add metadata support
Add support for metadata in the form of extended logical blocks as well as a separate buffer of data. The new `ms` nvme-ns device parameter specifies the size of metadata per logical block in bytes. The `mset` nvme-ns device parameter controls whether metadata is transfered as part of an extended lba (set to '1') or in a separate buffer (set to '0', the default). Regardsless of the scheme chosen with `mset`, metadata is stored at the end of the namespace backing block device. This requires the user provided PRP/SGLs to be walked and "split" into data and metadata scatter/gather lists if the extended logical block scheme is used, but has the advantage of not breaking the deallocated blocks support. Co-authored-by: Gollu Appalanaidu <anaidu.gollu@samsung.com> Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com> Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'qapi/qobject-output-visitor.c')
0 files changed, 0 insertions, 0 deletions