Page MenuHomeFreeBSD

Pull the check for VM ownership into ppt_find().
ClosedPublic

Authored by jhb on Nov 20 2020, 11:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 6, 12:15 AM
Unknown Object (File)
Thu, Dec 25, 12:12 AM
Unknown Object (File)
Nov 30 2025, 4:04 PM
Unknown Object (File)
Nov 28 2025, 7:28 PM
Unknown Object (File)
Nov 14 2025, 5:16 PM
Unknown Object (File)
Nov 6 2025, 1:05 AM
Unknown Object (File)
Oct 27 2025, 3:50 PM
Unknown Object (File)
Oct 26 2025, 3:49 PM
Subscribers

Details

Summary

This reduces some code duplication. One behavior change is that
ppt_assign_device() will now only succeed if the device is unowned.
Previously, a device could be assigned to the same VM multiple times,
but each time it was assigned, the device's state was reset.

Test Plan
  • booted a centos VM with a cxgbe VF passed in

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable