Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153492808
D33728.id100876.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
775 B
Referenced Files
None
Subscribers
None
D33728.id100876.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 11:18 AM (5 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31973267
Default Alt Text
D33728.id100876.diff (775 B)
Attached To
Mode
D33728: bhyve: only init MSI-X table if passthru device supports it
Attached
Detach File
Event Timeline
Log In to Comment