Re: [PATCH v5 01/14] hw/block/nvme: Report actual LBA data shift in LBAF

2020-09-28 Thread Klaus Jensen
On Sep 28 11:35, Dmitry Fomichev wrote: > Calculate the data shift value to report based on the set value of > logical_block_size device property. > > In the process, use a local variable to calculate the LBA format > index instead of the hardcoded value 0. This makes the code more > readable and

[PATCH v5 01/14] hw/block/nvme: Report actual LBA data shift in LBAF

2020-09-27 Thread Dmitry Fomichev
Calculate the data shift value to report based on the set value of logical_block_size device property. In the process, use a local variable to calculate the LBA format index instead of the hardcoded value 0. This makes the code more readable and it will make it easier to add support for multiple L