]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/nvme: fix lbaf formats initialization
authorGollu Appalanaidu <anaidu.gollu@samsung.com>
Wed, 21 Apr 2021 12:51:00 +0000 (18:21 +0530)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 29 Jun 2021 05:16:25 +0000 (07:16 +0200)
commit421a30927140945c6aa957c2c0e7ad695984483d
treec8414bed0902ab1eab4ed15c203be0936a7e13bd
parent18de1526baa606789fbe11f17087543ab20a9c49
hw/nvme: fix lbaf formats initialization

Currently LBAF formats are being intialized based on metadata
size if and only if nvme-ns "ms" parameter is non-zero value.
Since FormatNVM command being supported device parameter "ms"
may not be the criteria to initialize the supported LBAFs.

And make LBAF array as read-only.

Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ns.c