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, Oct 28, 8:04 AM
Unknown Object (File)
Sep 29 2024, 10:00 PM
Unknown Object (File)
Sep 18 2024, 6:46 PM
Unknown Object (File)
Sep 12 2024, 5:48 AM
Unknown Object (File)
Sep 9 2024, 1:20 AM
Unknown Object (File)
Sep 5 2024, 11:35 AM
Unknown Object (File)
Sep 4 2024, 1:09 AM
Unknown Object (File)
Aug 31 2024, 11:08 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