diff options
author | Klaus Jensen | 2021-06-17 21:06:53 +0200 |
---|---|---|
committer | Klaus Jensen | 2021-06-29 07:16:25 +0200 |
commit | f1c97407c5728e284b4e2b331e08c0d88ba568da (patch) | |
tree | 61c814a07e72111b3186a0e8b03be565c2869d37 /hw/nvme/ctrl.c | |
parent | hw/nvme: use prinfo directly in nvme_check_prinfo and nvme_dif_check (diff) | |
download | qemu-f1c97407c5728e284b4e2b331e08c0d88ba568da.tar.gz qemu-f1c97407c5728e284b4e2b331e08c0d88ba568da.tar.xz qemu-f1c97407c5728e284b4e2b331e08c0d88ba568da.zip |
hw/nvme: add dw0/1 to the req completion trace event
Some commands report additional useful information in dw0 and dw1 of the
completion queue entry.
Add them to the trace.
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'hw/nvme/ctrl.c')
-rw-r--r-- | hw/nvme/ctrl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c index 589aad5253..c1d95e98cb 100644 --- a/hw/nvme/ctrl.c +++ b/hw/nvme/ctrl.c @@ -1290,6 +1290,8 @@ static void nvme_enqueue_req_completion(NvmeCQueue *cq, NvmeRequest *req) { assert(cq->cqid == req->sq->cqid); trace_pci_nvme_enqueue_req_completion(nvme_cid(req), cq->cqid, + le32_to_cpu(req->cqe.result), + le32_to_cpu(req->cqe.dw1), req->status); if (req->status) { |