]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix bhyve's NVMe Completion Queue entry values
authorchuck <chuck@FreeBSD.org>
Fri, 4 Jan 2019 15:03:35 +0000 (15:03 +0000)
committerchuck <chuck@FreeBSD.org>
Fri, 4 Jan 2019 15:03:35 +0000 (15:03 +0000)
commit7c293fd5039e9fcea9a741adb857d09a89231f28
tree5196b472887586d092f3a0571048259ca389dd70
parentad72d5be86248959f7bfefcd92cdc891e3344cfe
Fix bhyve's NVMe Completion Queue entry values

The function which processes Admin commands was not returning the
Command Specific value in Completion Queue Entry, Dword 0 (CDW0). This
effects commands such as Set Features, Number of Queues which returns
the number of queues supported by the device in CDW0. In this case, the
host will only create 1 queue pair (Number of Queues is zero based).
This also masked a bug in the queue counting logic.

Reviewed by: imp, araujo
Approved by: imp (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D18703
usr.sbin/bhyve/pci_nvme.c