]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: NVMe set nominal health values
authorchuck <chuck@FreeBSD.org>
Mon, 24 Aug 2020 01:51:17 +0000 (01:51 +0000)
committerchuck <chuck@FreeBSD.org>
Mon, 24 Aug 2020 01:51:17 +0000 (01:51 +0000)
commit8195565c6adfb5a8b9d2070770306dc198a97dd3
tree0efdce4623feb4767a7a2e30254e63c201165507
parentfa9e237d3d475c832b322e07f0dd4f3bb7c78169
bhyve: NVMe set nominal health values

Some operating systems believe bhyve's emulated NVMe drive is failing
based on certain values in the SMART / Health Information log page being
zero. Fix is to set the reported temperature and available spare values
to reasonable defaults.

Submitted by: wanpengqian@gmail.com
Reviewed by:    grehan
MFC after:      2 weeks
Differential Revision: https://reviews.freebsd.org/D24202
usr.sbin/bhyve/pci_nvme.c