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)
Sun, Apr 19, 11:41 AM
Unknown Object (File)
Sun, Apr 19, 11:41 AM
Unknown Object (File)
Sun, Apr 19, 11:41 AM
Unknown Object (File)
Tue, Apr 14, 2:31 AM
Unknown Object (File)
Tue, Apr 14, 12:15 AM
Unknown Object (File)
Sun, Apr 12, 10:47 AM
Unknown Object (File)
Sat, Apr 11, 9:33 AM
Unknown Object (File)
Tue, Apr 7, 3:44 AM
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