Page MenuHomeFreeBSD

D24083.diff
No OneTemporary

D24083.diff

Index: head/usr.sbin/bhyve/pci_nvme.c
===================================================================
--- head/usr.sbin/bhyve/pci_nvme.c
+++ head/usr.sbin/bhyve/pci_nvme.c
@@ -1153,7 +1153,8 @@
cmd->opc));
pci_nvme_status_genc(&compl.status, NVME_SC_INVALID_OPCODE);
}
-
+ sqhead = (sqhead + 1) % sq->size;
+
if (NVME_COMPLETION_VALID(compl)) {
struct nvme_completion *cp;
int phase;
@@ -1170,7 +1171,6 @@
cq->tail = (cq->tail + 1) % cq->size;
}
- sqhead = (sqhead + 1) % sq->size;
}
DPRINTF(("setting sqhead %u", sqhead));
@@ -1285,8 +1285,9 @@
compl = &cq->qbase[cq->tail];
- compl->sqhd = atomic_load_acq_short(&sq->head);
+ compl->cdw0 = cdw0;
compl->sqid = sqid;
+ compl->sqhd = atomic_load_acq_short(&sq->head);
compl->cid = cid;
// toggle phase

File Metadata

Mime Type
text/plain
Expires
Sat, Aug 29, 5:07 PM (10 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37527662
Default Alt Text
D24083.diff (814 B)

Event Timeline