Page MenuHomeFreeBSD

amd64/vmm: Lock global PCI passthrough structures
ClosedPublic

Authored by markj on Feb 2 2026, 11:00 PM.
Tags
None
Referenced Files
F156664635: D55065.id171027.diff
Fri, May 15, 12:54 PM
F156580180: D55065.id.diff
Thu, May 14, 8:16 PM
F156570594: D55065.id171341.diff
Thu, May 14, 6:20 PM
Unknown Object (File)
Tue, May 12, 12:19 PM
Unknown Object (File)
Mon, May 11, 3:12 PM
Unknown Object (File)
Mon, May 11, 12:06 PM
Unknown Object (File)
Mon, May 11, 12:03 PM
Unknown Object (File)
Sun, May 10, 7:53 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