]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: fix NVMe Get Log Page command
authorChuck Tuffli <chuck@FreeBSD.org>
Mon, 29 Jun 2020 00:31:34 +0000 (00:31 +0000)
committerChuck Tuffli <chuck@FreeBSD.org>
Mon, 29 Jun 2020 00:31:34 +0000 (00:31 +0000)
commitf6f02911b608cf5d57fa037be11fc228f8430171
treee3ca5314f375b7c3eb9538a6700920e922827eae
parentf8fa74679ca186174430bbabfa433d39ce399daf
bhyve: fix NVMe Get Log Page command

Fix the logic in nvme_opc_get_log_page to calculate the number of DWORDS
(uint32_t) instead of WORDS (uint16_t) for the byte length. And only
return the allowed number of Log Page bytes as determined by the user
request and actual size of the requested log page.

Fixes UNH Test 1.3

Tested by: Jason Tubnor
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D24885
usr.sbin/bhyve/pci_nvme.c