Page MenuHomeFreeBSD

bhyve: Fix a misleading error message
ClosedPublic

Authored by markj on Mon, Feb 2, 11:00 PM.
Tags
None
Referenced Files
F145746363: D55070.diff
Mon, Feb 23, 9:53 PM
Unknown Object (File)
Sun, Feb 22, 7:55 PM
Unknown Object (File)
Wed, Feb 18, 3:01 PM
Unknown Object (File)
Wed, Feb 18, 6:07 AM
Unknown Object (File)
Mon, Feb 16, 10:38 PM
Unknown Object (File)
Mon, Feb 16, 2:45 AM
Unknown Object (File)
Tue, Feb 10, 11:19 PM
Unknown Object (File)
Mon, Feb 9, 11:15 PM

Details

Summary

The ioctl might fail because it's run in a jail which doesn't have
permission to invoke ppt ioctls.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Mon, Feb 2, 11:00 PM
usr.sbin/bhyve/pci_passthru.c
994

Shouldn't we print an error message in other cases? Failing without any error message at all doesn't seem to be much better than a misleading error message.

usr.sbin/bhyve/pci_passthru.c
994

We do get an error from the top level, when init_pci() fails. But yes we might as well print something here too.

This revision is now accepted and ready to land.Fri, Feb 6, 3:38 PM
This revision was automatically updated to reflect the committed changes.