Page MenuHomeFreeBSD

bhyve nvme: Fix LBA out-of-range calculation
ClosedPublic

Authored by chuck on Dec 19 2021, 4:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 31, 3:17 AM
Unknown Object (File)
Tue, Oct 28, 11:00 PM
Unknown Object (File)
Fri, Oct 10, 12:56 AM
Unknown Object (File)
Oct 6 2025, 2:56 AM
Unknown Object (File)
Oct 4 2025, 5:21 AM
Unknown Object (File)
Sep 29 2025, 4:07 PM
Unknown Object (File)
Sep 12 2025, 8:10 PM
Unknown Object (File)
Sep 6 2025, 12:38 PM

Details

Summary

The LBA out-of-range calculation was off by 1 because it did not account
for the Starting LBA being zero-based.

Fixes UNH ILO 16.0 Test 2.3, Cases 2, 4, and 5 and Test 2.4, Cases 2, 4,
and 5.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43857
Build 40745: arc lint + arc unit

Event Timeline

chuck requested review of this revision.Dec 19 2021, 4:17 PM
allanjude added a subscriber: allanjude.

Reviewed By: allanjude

This revision is now accepted and ready to land.Dec 23 2021, 5:14 PM

Fix regression reported in Alma Linux + Windows

This revision now requires review to proceed.Jan 11 2022, 5:42 PM

This patch fixed regression that was discovered during workload testing across various guest operating systems (as pointed out by @chuck above).

Tested and confirmed working on the following guest platforms with 14.0-CURRENT (20211223):

OpenBSD 6.9 - NVMe read/write OK
Windows 10 - NVMe read/write OK
Windows Server 2022 - NVMe read/write OK
Alma Linux 8.5 - NVMe read/write OK
FreeBSD 13.0 - NVMe read/write OK

This revision is now accepted and ready to land.Jan 20 2022, 5:12 PM
This revision was automatically updated to reflect the committed changes.