]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: implement NVMe Format NVM command
authorChuck Tuffli <chuck@FreeBSD.org>
Mon, 29 Jun 2020 00:31:47 +0000 (00:31 +0000)
committerChuck Tuffli <chuck@FreeBSD.org>
Mon, 29 Jun 2020 00:31:47 +0000 (00:31 +0000)
commita0900f46d1ecd8a81176e790fac5e19842fe1f99
treede9c08c0b2f6a41f1e96667b3227740c50f5a1af
parent45cf82682cafec6c07680443fc2041d8061e791d
bhyve: implement NVMe Format NVM command

The Format NVM command mainly allows the host to specify the block size
and protection information used for the Namespace. As the bhyve
implementation simply maps the capabilities of the backing storage
through to the guest, there isn't anything to implement. But a side
effect of the format is the NVMe Controller shall not return any data
previously written (i.e. erase previously written data). This patch
implements this later behavior to provide a compliant implementation.

Fixes UNH Test 1.6

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