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)
Fri, Oct 17, 5:54 AM
Unknown Object (File)
Fri, Oct 17, 5:54 AM
Unknown Object (File)
Thu, Oct 16, 8:33 PM
Unknown Object (File)
Thu, Oct 16, 8:33 PM
Unknown Object (File)
Fri, Sep 19, 9:38 PM
Unknown Object (File)
Sep 17 2025, 11:19 PM
Unknown Object (File)
Sep 13 2025, 5:47 AM
Unknown Object (File)
Sep 13 2025, 5:05 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