Page MenuHomeFreeBSD

bhyve: ahci: Fix regression with no ports
ClosedPublic

Authored by freqlabs on Jan 20 2022, 6:42 PM.

Details

Summary

An AHCI controller may be specified with no connected ports. Avoid
dumping core in this case for compatibility with existing VM configs.

Fixes: 621b5090487de Refactor configuration management in bhyve.
MFC after: 1 week
Sponsored by: iXsystems, Inc.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.