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, Feb 8, 3:18 PM
Unknown Object (File)
Sun, Feb 8, 10:37 AM
Unknown Object (File)
Fri, Jan 30, 10:07 PM
Unknown Object (File)
Jan 6 2026, 12:15 AM
Unknown Object (File)
Dec 25 2025, 12:12 AM
Unknown Object (File)
Nov 30 2025, 4:04 PM
Unknown Object (File)
Nov 28 2025, 7:28 PM
Unknown Object (File)
Nov 14 2025, 5:16 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