git: 3286533a1cee - stable/13 - bhyve nvme: Fix reported VWC value
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Feb 2022 21:58:03 UTC
The branch stable/13 has been updated by chuck: URL: https://cgit.FreeBSD.org/src/commit/?id=3286533a1ceeb5d9283bff05b4b4faafcda2705d commit 3286533a1ceeb5d9283bff05b4b4faafcda2705d Author: Chuck Tuffli <chuck@FreeBSD.org> AuthorDate: 2022-01-30 07:10:42 +0000 Commit: Chuck Tuffli <chuck@FreeBSD.org> CommitDate: 2022-02-22 03:28:07 +0000 bhyve nvme: Fix reported VWC value v1.4 and later NVMe Controllers report "Flush all Namespaces" support differently. Fixes UNH IOL 16.0 Test 2.6, Case 3 (cherry picked from commit ff5ed0fac420d3441aac436d884d926d91c79b3c) --- usr.sbin/bhyve/pci_nvme.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c index 66ca3dcdf38e..cba5dfe293ca 100644 --- a/usr.sbin/bhyve/pci_nvme.c +++ b/usr.sbin/bhyve/pci_nvme.c @@ -561,6 +561,8 @@ pci_nvme_init_ctrldata(struct pci_nvme_softc *sc) cd->fna = NVME_CTRLR_DATA_FNA_FORMAT_ALL_MASK << NVME_CTRLR_DATA_FNA_FORMAT_ALL_SHIFT; + cd->vwc = NVME_CTRLR_DATA_VWC_ALL_NO << NVME_CTRLR_DATA_VWC_ALL_SHIFT; + cd->power_state[0].mp = 10; }