]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/block/nvme: Add Commands Supported and Effects log
authorDmitry Fomichev <dmitry.fomichev@wdc.com>
Tue, 8 Dec 2020 20:04:02 +0000 (05:04 +0900)
committerKlaus Jensen <k.jensen@samsung.com>
Mon, 8 Feb 2021 19:58:32 +0000 (20:58 +0100)
commit62e8faa468109ae66b55a038cbd268ad6e40472b
tree2d39066d8b4a6326501dd11697b38944f5f9ee54
parent3ec1d547a5b70482aac3a446c848f1a9eed165e6
hw/block/nvme: Add Commands Supported and Effects log

This log page becomes necessary to implement to allow checking for
Zone Append command support in Zoned Namespace Command Set.

This commit adds the code to report this log page for NVM Command
Set only. The parts that are specific to zoned operation will be
added later in the series.

All incoming admin and i/o commands are now only processed if their
corresponding support bits are set in this log. This provides an
easy way to control what commands to support and what not to
depending on set CC.CSS.

Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Reviewed-by: Niklas Cassel <Niklas.Cassel@wdc.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/block/nvme-ns.h
hw/block/nvme.c
hw/block/trace-events
include/block/nvme.h