Skip to content
Snippets Groups Projects
Commit 9ae39004 authored by Klaus Jensen's avatar Klaus Jensen
Browse files

hw/block/nvme: add missing mor/mar constraint checks


Firstly, if zoned.max_active is non-zero, zoned.max_open must be less
than or equal to zoned.max_active.

Secondly, if only zones.max_active is set, we have to explicitly set
zones.max_open or we end up with an invalid MAR/MOR configuration. This
is an artifact of the parameters not being zeroes-based like in the
spec.

Cc: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Reported-by: default avatarGollu Appalanaidu <anaidu.gollu@samsung.com>
Signed-off-by: default avatarKlaus Jensen <k.jensen@samsung.com>
Reviewed-by: default avatarDmitry Fomichev <dmitry.fomichev@wdc.com>
parent 92323c8c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment