]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: NVMe set nominal health values
authorChuck Tuffli <chuck@FreeBSD.org>
Mon, 24 Aug 2020 01:51:17 +0000 (01:51 +0000)
committerChuck Tuffli <chuck@FreeBSD.org>
Mon, 24 Aug 2020 01:51:17 +0000 (01:51 +0000)
commitc4a86c1fc0d934d46d79f0124a7e8f84b8bddc58
tree0efdce4623feb4767a7a2e30254e63c201165507
parentcc249d78007c7caaa7bdc3fa7d0fffc31ab38337
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