Page MenuHomeFreeBSD

bhyve: usb: add a finer-grained mutex for the event thread
Needs ReviewPublic

Authored by kevans on Fri, Sep 18, 1:58 AM.

Details

Reviewers
None
Group Reviewers
bhyve
Summary

Nothing today will serialize er_enq_idx / er_events_cnt updates against
the ERDP handler recalculations. This isn't strictly a problem until
we add support for a USB passthru device (which adds another thread for
handling libusb events), but pushing it in advance makes the meatier
bits of passthru more reviewable.

Sponsored by: The FreeBSD Foundation (aokblast)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 77045
Build 73928: arc lint + arc unit