OSDN Git Service

hw/block/nvme: Correct error status for unaligned ZA
authorDmitry Fomichev <dmitry.fomichev@wdc.com>
Mon, 18 Jan 2021 03:39:17 +0000 (12:39 +0900)
committerKlaus Jensen <k.jensen@samsung.com>
Mon, 8 Feb 2021 20:15:53 +0000 (21:15 +0100)
commitadd961300c8e29167465fe8206539c4e6bffde28
tree723213bbef4f83297cd89c7bee67015147c57fff
parent521ea778b264116310182db9c4d329c5aa867c59
hw/block/nvme: Correct error status for unaligned ZA

TP 4053 says (in section 2.3.1.1) -
... if a Zone Append command specifies a ZSLBA that is not the lowest
logical block address in that zone, then the controller shall abort
that command with a status code of Invalid Field In Command.

In the code, Zone Invalid Write is returned instead, fix this.

Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/block/nvme.c