hw/block/nvme: move zoned constraints checks
commit49ad39c55a2086637bbde4616491dfee17a142e7
authorKlaus Jensen <k.jensen@samsung.com>
Tue, 9 Mar 2021 11:20:41 +0000 (9 12:20 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Mon, 17 May 2021 07:19:00 +0000 (17 09:19 +0200)
tree82118b22fa841ff9fcc14605461c78ff0f4f9769
parent83e85b614ddab2810b75583c6b3106ff42207a57
hw/block/nvme: move zoned constraints checks

Validation of the max_active and max_open zoned parameters are
independent of any other state, so move them to the early
nvme_ns_check_constraints parameter checks.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
hw/block/nvme-ns.c