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, Sep 19, 9:38 PM
Unknown Object (File)
Wed, Sep 17, 11:19 PM
Unknown Object (File)
Sep 13 2025, 5:47 AM
Unknown Object (File)
Sep 13 2025, 5:05 AM
Unknown Object (File)
Sep 13 2025, 3:56 AM
Unknown Object (File)
Sep 13 2025, 3:56 AM
Unknown Object (File)
Aug 31 2025, 4:39 PM
Unknown Object (File)
Aug 24 2025, 2:07 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