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)
Wed, Apr 15, 12:44 AM
Unknown Object (File)
Sat, Apr 11, 1:35 AM
Unknown Object (File)
Tue, Mar 24, 6:11 PM
Unknown Object (File)
Mar 15 2026, 12:14 AM
Unknown Object (File)
Mar 14 2026, 11:31 PM
Unknown Object (File)
Mar 11 2026, 3:08 PM
Unknown Object (File)
Feb 24 2026, 7:28 PM
Unknown Object (File)
Feb 21 2026, 2:21 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