]> www.infradead.org Git - qemu-nvme.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>
Thu, 17 Jun 2021 09:25:12 +0000 (11:25 +0200)
commite4403ae45eaab278c25c3ab64db4418ca9fe51e3
tree8d042c00d4bee43fab1f6a57e27676c8c2c4ece9
parent8d490b1cb93dcfadbe3d315b90bf6e2be2692bda
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