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, Jul 15, 5:47 AM
Unknown Object (File)
Wed, Jul 15, 5:47 AM
Unknown Object (File)
Wed, Jul 15, 2:45 AM
Unknown Object (File)
Mon, Jul 6, 9:13 AM
Unknown Object (File)
Sun, Jul 5, 10:58 PM
Unknown Object (File)
Jun 18 2026, 1:41 PM
Unknown Object (File)
May 15 2026, 12:54 PM
Unknown Object (File)
May 14 2026, 8:16 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