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)
Mon, May 4, 4:40 PM
Unknown Object (File)
Fri, May 1, 4:05 PM
Unknown Object (File)
Fri, May 1, 4:03 PM
Unknown Object (File)
Thu, Apr 30, 6:37 PM
Unknown Object (File)
Thu, Apr 30, 8:59 AM
Unknown Object (File)
Tue, Apr 28, 6:40 AM
Unknown Object (File)
Sun, Apr 19, 11:41 AM
Unknown Object (File)
Sun, Apr 19, 11:41 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