]> www.infradead.org Git - qemu-nvme.git/commit
hw/block/nvme: reject io commands if only admin command set selected
authorKlaus Jensen <k.jensen@samsung.com>
Tue, 29 Sep 2020 23:19:07 +0000 (01:19 +0200)
committerKeith Busch <kbusch@kernel.org>
Wed, 30 Sep 2020 21:28:27 +0000 (14:28 -0700)
commitad2444891fa103145fbe0e3da0ffff7182d532a1
tree6dc1119d6f4308513b3a76eaa52e122879c2dcfc
parente1ab0c17fe7e52523005e2af52c8b6aa05c85a10
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.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/block/nvme.c
include/block/nvme.h