Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145952397
D54642.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
821 B
Referenced Files
None
Subscribers
None
D54642.diff
View Options
diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c
--- a/usr.sbin/bhyve/pci_emul.c
+++ b/usr.sbin/bhyve/pci_emul.c
@@ -87,9 +87,16 @@
struct pci_irq ii_irq;
};
+enum slottype {
+ PCI_SLOT_HP_EMPTY,
+ PCI_SLOT_HP_ACTIVE,
+ PCI_SLOT_FIXED,
+};
+
struct slotinfo {
struct intxinfo si_intpins[4];
struct funcinfo si_funcs[MAXFUNCS];
+ enum slottype si_type;
};
struct businfo {
@@ -1592,6 +1599,7 @@
/* first run: init devices */
for (slot = 0; slot < MAXSLOTS; slot++) {
si = &bi->slotinfo[slot];
+ si->si_type = PCI_SLOT_HP_EMPTY;
for (func = 0; func < MAXFUNCS; func++) {
fi = &si->si_funcs[func];
snprintf(node_name, sizeof(node_name),
@@ -1626,6 +1634,7 @@
func, fi);
if (error)
return (error);
+ si->si_type = PCI_SLOT_FIXED;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 27, 11:49 AM (1 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27619827
Default Alt Text
D54642.diff (821 B)
Attached To
Mode
D54642: bhyve/pci_emul.c: Introduce notion of fixed and hotpluggable slots
Attached
Detach File
Event Timeline
Log In to Comment