hw/block/nvme: support command retry
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest1 patch 1 replyIn review
Changes in v2 from the cover letter
[Klaus, I didn't put your review tag due to the following changes ;)]
- Remove [1/3] patch because there are already !NVME_DNR error cases
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | hw/block/nvme: support command retry delayhw/ hw/ include/ | +81 | 1 reply |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Klaus Jensen |
|---|---|
| 1/1 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V2 0/1] hw/block/nvme: support command retry
Hello,
This series has been discussed and reviewed in [1]. This is the second series to support Advanced Command Retry Enable(ACRE).
At the first shot, It was designed to provide HMP commands to inject artificial state to the NVMe device. But, as discussed, rather than making a device with a artificial state, more natural way is needed:
Some states triggered by lower layer of the command processing like AIO errors. Therefore, rather than providing HMP command, This version just checks the NVME_DNR bit from the status, then it will enable the retry delay field(CRDT).
Since RFC V1:
[Klaus, I didn't put your review tag due to the following changes ;)]
- Remove [1/3] patch because there are already !NVME_DNR error cases
in nvme_aio_err(). (Klaus)
- Remove [3/3] patch to trigger retry status situation more naturally not injecting the intended state to the NVMe device. (Keith)
- Remove nvme_should_retry() by not considering the status code, especially NVME_COMMAND_INTERRUPTED.
- Change cmd-retry-delay param type to uint32_t because we don't need to check if it's given or not. So, zero can be started with.
[1] https://lists.nongnu.org/archive/html/qemu-block/2021-02/msg00843.html
Minwoo Im (1):
hw/block/nvme: support command retry delay
hw/block/nvme.c | 68 +++++++++++++++++++++++++++++++++++++++++++- hw/block/nvme.h | 2 ++ include/block/nvme.h | 13 ++++++++- 3 files changed, 81 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1