Page MenuHomeFreeBSD

D55070.id171333.diff
No OneTemporary

D55070.id171333.diff

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
@@ -987,8 +987,13 @@
}
if (vm_assign_pptdev(pi->pi_vmctx, bus, slot, func) != 0) {
- warnx("PCI device at %d/%d/%d is not using the ppt(4) driver",
- bus, slot, func);
+ if (errno == ENOENT) {
+ EPRINTLN(
+ "PCI device at %d/%d/%d is not using the ppt driver",
+ bus, slot, func);
+ } else {
+ EPRINTLN("vm_assign_pptdev: %s", strerror(errno));
+ }
goto done;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Feb 19, 6:07 AM (1 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28457005
Default Alt Text
D55070.id171333.diff (547 B)

Event Timeline