hw/nvme: add support for zoned random write area
commite321b4cdc2dd0b5e806ecf759138be7f83774142
authorKlaus Jensen <k.jensen@samsung.com>
Thu, 4 Mar 2021 07:40:11 +0000 (4 08:40 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Mon, 14 Feb 2022 07:58:29 +0000 (14 08:58 +0100)
tree26b2ef800fefc07b33a88ace23f7784a0404b712
parent25872031e14edf6a47bff1c015a026afe5c1c967
hw/nvme: add support for zoned random write area

Add support for TP 4076 ("Zoned Random Write Area"), v2021.08.23
("Ratified").

This adds three new namespace parameters: "zoned.numzrwa" (number of
zrwa resources, i.e. number of zones that can have a zrwa),
"zoned.zrwas" (zrwa size in LBAs), "zoned.zrwafg" (granularity in LBAs
for flushes).

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