Page MenuHomeFreeBSD

More error messages for passthru.

Authored by jhb on Apr 18 2016, 10:25 PM.



Always emit an error message on passthru configuration errors.

Previously, many errors (such as the PCI device not being attached
to the ppt(4) driver) resulted in bhyve silently exiting without
starting the virtual machine. Now any errors encountered when
configuring a virtual slot for a PCI passthru device should be noted
on stderr.

Test Plan
  • Try to pass through a device that doesn't exist or isn't attached to ppt(4).

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhb updated this revision to Diff 15302.Apr 18 2016, 10:25 PM
jhb retitled this revision from to More error messages for passthru..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added reviewers: grehan, neel.
neel accepted this revision.Apr 19 2016, 6:13 PM
neel edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Apr 19 2016, 6:13 PM
This revision was automatically updated to reflect the committed changes.