Page MenuHomeFreeBSD

amd64/vmm: Lock global PCI passthrough structures
ClosedPublic

Authored by markj on Feb 2 2026, 11:00 PM.
Tags
None
Referenced Files
F174301227: D55065.id171027.diff
Fri, Oct 2, 4:36 AM
F174211010: D55065.diff
Thu, Oct 1, 9:44 AM
Unknown Object (File)
Wed, Sep 16, 12:25 AM
Unknown Object (File)
Wed, Sep 9, 1:33 AM
Unknown Object (File)
Aug 23 2026, 3:54 AM
Unknown Object (File)
Aug 21 2026, 10:23 PM
Unknown Object (File)
Aug 20 2026, 6:50 AM
Unknown Object (File)
Aug 20 2026, 6:50 AM
Subscribers

Details

Summary

There is a global list of ppt-claimed devices, accessed via several
vmm ioctls. The ioctls are locked by per-VM locks, but this isn't
sufficient to prevent multiple VMs from trying to bind a given device.

Add a sleepable lock and use that to synchronize all access to ppt
devices.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable