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)
Tue, Nov 18, 1:54 AM
Unknown Object (File)
Tue, Nov 18, 1:51 AM
Unknown Object (File)
Mon, Nov 17, 4:13 PM
Unknown Object (File)
Fri, Nov 14, 5:00 AM
Unknown Object (File)
Fri, Nov 7, 3:43 PM
Unknown Object (File)
Fri, Oct 31, 3:17 AM
Unknown Object (File)
Tue, Oct 28, 11:00 PM
Unknown Object (File)
Oct 10 2025, 12:56 AM

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 43488
Build 40376: 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.