summaryrefslogtreecommitdiffstats
path: root/hw/nvme/ctrl.c
diff options
context:
space:
mode:
authorKlaus Jensen2021-06-17 21:06:53 +0200
committerKlaus Jensen2021-06-29 07:16:25 +0200
commitf1c97407c5728e284b4e2b331e08c0d88ba568da (patch)
tree61c814a07e72111b3186a0e8b03be565c2869d37 /hw/nvme/ctrl.c
parenthw/nvme: use prinfo directly in nvme_check_prinfo and nvme_dif_check (diff)
downloadqemu-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.c2
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) {