Page MenuHomeFreeBSD

D32658.diff
No OneTemporary

D32658.diff

diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c
--- a/usr.sbin/bhyve/pci_nvme.c
+++ b/usr.sbin/bhyve/pci_nvme.c
@@ -698,6 +698,11 @@
sc->health_log.temperature = NVME_TEMPERATURE;
sc->health_log.available_spare = 100;
sc->health_log.available_spare_threshold = 10;
+
+ /* Set Active Firmware Info to slot 1 */
+ sc->fw_log.afi = (1 << NVME_FIRMWARE_PAGE_AFI_SLOT_SHIFT);
+ memcpy(&sc->fw_log.revision[0], sc->ctrldata.fr,
+ sizeof(sc->fw_log.revision[0]));
}
static void

File Metadata

Mime Type
text/plain
Expires
Tue, May 19, 6:55 AM (19 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33298224
Default Alt Text
D32658.diff (505 B)

Event Timeline