hw/block/nvme: reject io commands if only admin command set selected
commit1b48e4611a7a3ee3065d3bb8428f5f6acb5232fe
authorKlaus Jensen <k.jensen@samsung.com>
Tue, 29 Sep 2020 23:19:07 +0000 (30 01:19 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 27 Oct 2020 10:29:25 +0000 (27 11:29 +0100)
tree5ec1a14c661eb2103adf6bdcfac19246eaf17836
parent8c5cea85934eb7b580ced14f7f188e19880d4c1c
hw/block/nvme: reject io commands if only admin command set selected

If the host sets CC.CSS to 111b, all commands submitted to I/O queues
should be completed with status Invalid Command Opcode.

Note that this is technically a v1.4 feature, but it does not hurt to
implement before we finally bump the reported version implemented.

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