Page MenuHomeFreeBSD

bhyve nvme: Remove redundant AER Limit checks
ClosedPublic

Authored by chuck on Dec 19 2021, 4:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 30, 11:06 AM
Unknown Object (File)
Tue, Jul 28, 6:14 PM
Unknown Object (File)
Sun, Jul 26, 3:14 PM
Unknown Object (File)
Fri, Jul 24, 8:12 PM
Unknown Object (File)
Thu, Jul 23, 1:40 AM
Unknown Object (File)
Wed, Jul 22, 5:05 PM
Unknown Object (File)
Jun 26 2026, 5:08 AM
Unknown Object (File)
May 22 2026, 1:50 PM

Details

Summary

The NVMe emulation checked if the Asynchronous Event Request Limit
(a.k.a AERL) would be exceeded in pci_nvme_aer_add(), but this function
is only called from nvme_opc_async_event_req() which also checks for
exceeding the AERL.

While in the neighborhood, fix / enhance the debug logging.

Tested by:
MFC after: 2 weeks

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43483
Build 40371: 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:16 PM

I don't see the 'while in the area' changes, so omit that from the final commit message.

In D33570#759866, @imp wrote:

I don't see the 'while in the area' changes, so omit that from the final commit message.

Good catch. Fixed.

This revision was automatically updated to reflect the committed changes.