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)
Thu, Jul 2, 5:45 PM
Unknown Object (File)
Tue, Jun 30, 1:20 PM
Unknown Object (File)
Fri, Jun 26, 3:13 PM
Unknown Object (File)
Thu, Jun 25, 1:14 AM
Unknown Object (File)
Fri, Jun 19, 6:31 AM
Unknown Object (File)
May 4 2026, 4:40 PM
Unknown Object (File)
May 1 2026, 4:05 PM
Unknown Object (File)
May 1 2026, 4:03 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