diff --git a/usr.sbin/bhyve/pci_passthru.c b/usr.sbin/bhyve/pci_passthru.c --- a/usr.sbin/bhyve/pci_passthru.c +++ b/usr.sbin/bhyve/pci_passthru.c @@ -138,7 +138,8 @@ fd = open(_PATH_DEVPCI, O_RDWR, 0); if (fd < 0) { - warn("failed to open %s", _PATH_DEVPCI); + if (errno != EACCES) + warn("failed to open %s", _PATH_DEVPCI); return (-1); } return (fd);