]> www.infradead.org Git - qemu-nvme.git/commit
hw/block/nvme: Introduce max active and open zone limits
authorDmitry Fomichev <dmitry.fomichev@wdc.com>
Mon, 28 Sep 2020 02:35:24 +0000 (11:35 +0900)
committerKeith Busch <kbusch@kernel.org>
Wed, 30 Sep 2020 21:58:36 +0000 (14:58 -0700)
commit16b3cf80ea18c7b25f672fb253fb6f3098fb455e
treea1f0e9702200ce566819d58ed01361a3775e588a
parent28cb03dbbea6a0d5ee4dd832e560b120f8204419
hw/block/nvme: Introduce max active and open zone limits

Added two module properties, "max_active" and "max_open" to control
the maximum number of zones that can be active or open. Once these
variables are set to non-default values, these limits are checked
during I/O and Too Many Active or Too Many Open command status is
returned if they are exceeded.

Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com>
Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
hw/block/nvme-ns.c
hw/block/nvme-ns.h
hw/block/nvme.c