Fix bhyve's NVMe Identify Namespace data
The NVMe Identify Namespace data structure's Number of LBA Formats (NLBAF) field is a 0's based value (i.e. 0x0 means 1). Since the emulation only supports a single format, set NLBAF to 0x0, not 1. Reviewed by: imp, araujo, rgrimes Approved by: imp (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D19579
This commit is contained in:
parent
ee072597f3
commit
7bb1073842
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345170
@ -358,7 +358,7 @@ pci_nvme_init_nsdata(struct pci_nvme_softc *sc)
|
||||
nd->nuse = nd->nsze;
|
||||
|
||||
/* Get LBA and backstore information from backing store */
|
||||
nd->nlbaf = 1;
|
||||
nd->nlbaf = 0; /* NLBAF is a 0's based value (i.e. 1 LBA Format) */
|
||||
/* LBA data-sz = 2^lbads */
|
||||
nd->lbaf[0] = sc->nvstore.sectsz_bits << NVME_NS_DATA_LBAF_LBADS_SHIFT;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user