Page MenuHomeFreeBSD

amd64/vmm: Lock global PCI passthrough structures
ClosedPublic

Authored by markj on Feb 2 2026, 11:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 13, 12:19 AM
Unknown Object (File)
Sun, Aug 9, 8:20 PM
Unknown Object (File)
Sat, Aug 8, 12:28 PM
Unknown Object (File)
Fri, Aug 7, 9:35 PM
Unknown Object (File)
Sun, Aug 2, 3:09 AM
Unknown Object (File)
Sun, Aug 2, 2:07 AM
Unknown Object (File)
Sat, Aug 1, 8:30 AM
Unknown Object (File)
Wed, Jul 29, 11:47 PM
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