A FreeBSD guest logs two errors for every emulated NVMe controller when it attaches:
nvme0: temperature threshold not supported nvme0: SET_FEATURES (09) sqid:0 cid:10 nsid:0 cdw10:00000008 cdw11:00000000 nvme0: FEATURE NOT CHANGEABLE (01/0e) crd:0 m:0 dnr:0 p:1 sqid:0 cid:10 cdw0:0
nvme_ctrlr_configure_aer() reads the Over Temperature Threshold and takes 0 as "not supported"; the feature started out as 0. Report 343 K (70 C) until the guest sets one. That is above the composite temperature the SMART log reports (296 K), so no warning is raised.
nvme_ctrlr_configure_int_coalescing() sets Interrupt Coalescing, a mandatory feature that had no set callback (the //XXX in pci_nvme_init_features()), so the controller answered Feature Not Changeable. Accept and keep the value; Get Features returns it. Coalescing is advisory: completions are still posted at once.
This change was developed with an AI assistant (Claude) under my direction; the same change runs in keelOS's bhyve.
Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com>
Sponsored by: keelos.dev