Page MenuHomeFreeBSD

D33728.diff
No OneTemporary

D33728.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
@@ -593,13 +593,17 @@
* We need to do this after PCIR_COMMAND got possibly updated, e.g.,
* a BAR was enabled, as otherwise the PCIOCBARMMAP might fail on us.
*/
- error = init_msix_table(ctx, sc);
- if (error != 0) {
- warnx("failed to initialize MSI-X table for PCI %d/%d/%d: %d",
- bus, slot, func, error);
- goto done;
+ if (pci_msix_table_bar(pi) >= 0) {
+ error = init_msix_table(ctx, sc);
+ if (error != 0) {
+ warnx(
+ "failed to initialize MSI-X table for PCI %d/%d/%d: %d",
+ bus, slot, func, error);
+ goto done;
+ }
}
+ error = 0; /* success */
done:
return (error);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 4, 1:17 PM (21 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13551627
Default Alt Text
D33728.diff (775 B)

Event Timeline