vtcon_attach() notifies the receive queues before DRIVER_OK
is set, violating §3.1.1, and waits for DEVICE_READY to be
consumed, which the device must not do before DRIVER_OK as
per section §2.1.2. Since the transport sets DRIVER_OK only
after attach returns, a compliant multiport device hangs
during attach. Implement the virtio_attach_completed method
and move both operations there.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 77955 Build 74838: arc lint + arc unit
Event Timeline
Comment Actions
No objection style-wise.
I am not familiar with this component, please seek external code review.
Approved for commit once you get a positive code review from somebody else.