aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Tuffli <chuck@FreeBSD.org>2020-12-14 17:12:48 +0000
committerChuck Tuffli <chuck@FreeBSD.org>2020-12-14 17:12:48 +0000
commit760d6774d775e8cbef9b1e42d7b1b0077f9e03ae (patch)
tree02a68ba3f16d91cd55aa2bd199146ffed2a8f369
parentafa53e3372114192a6c7e5fd8dc2682e97a61e34 (diff)
downloadsrc-760d6774d775e8cbef9b1e42d7b1b0077f9e03ae.tar.gz
src-760d6774d775e8cbef9b1e42d7b1b0077f9e03ae.zip
MFC r364602: bhyve: NVMe set nominal health values
Notes
Notes: svn path=/stable/12/; revision=368637
-rw-r--r--usr.sbin/bhyve/pci_nvme.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c
index 0d95a702124e..2679874d73fc 100644
--- a/usr.sbin/bhyve/pci_nvme.c
+++ b/usr.sbin/bhyve/pci_nvme.c
@@ -604,6 +604,11 @@ pci_nvme_init_logpages(struct pci_nvme_softc *sc)
/* Set read/write remainder to round up according to spec */
sc->read_dunits_remainder = 999;
sc->write_dunits_remainder = 999;
+
+ /* Set nominal Health values checked by implementations */
+ sc->health_log.temperature = 310;
+ sc->health_log.available_spare = 100;
+ sc->health_log.available_spare_threshold = 10;
}
static void