hw/nvme: only set command abort requested when cancelled due to Abort
authorKlaus Jensen <k.jensen@samsung.com>
Mon, 16 Dec 2024 12:53:08 +0000 (13:53 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Wed, 26 Feb 2025 11:40:35 +0000 (12:40 +0100)
commit304babd9401d8ce8fe139a70fe464332eef2cee0
tree2d5e4281c105d5e26345ecfa9c28f9468fd9c245
parent6ccca4b6bb9f994cc04e71004e1767a3476d2b23
hw/nvme: only set command abort requested when cancelled due to Abort

The Command Abort Requested status code should only be set if the
command was explicitly cancelled due to an Abort command. Or, in the
case the cancel was due to Submission Queue deletion, set the status
code to Command Aborted due to SQ Deletion.

Reviewed-by: Jesper Wendel Devantier <foss@defmacro.it>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ctrl.c