hw/nvme: Return error for fused operations
commitc53a9a91021c2f57de9ab18393d0048bd0fe90c2
authorPankaj Raghav <p.raghav@samsung.com>
Wed, 15 Sep 2021 15:43:30 +0000 (15 17:43 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Fri, 24 Sep 2021 06:43:58 +0000 (24 08:43 +0200)
tree5bc5af87807ca9486f0f3d4f5f86541ac78dea32
parent07a3dfa7c41a94788881b649518507610c727994
hw/nvme: Return error for fused operations

Currently, FUSED operations are not supported by QEMU. As per the 1.4 SPEC,
controller should abort the command that requested a fused operation with
an INVALID FIELD error code if they are not supported.

Changes from v1:
Added FUSE flag check also to the admin cmd processing as the FUSED
operations are mentioned in the general SQE section in the SPEC.

Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ctrl.c