File tree 1 file changed +10
-4
lines changed
bin/propolis-server/src/lib
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -192,10 +192,8 @@ impl<'a> MachineInitializer<'a> {
192
192
) ;
193
193
pci_builder. add_bridge ( desc) ?;
194
194
}
195
- let pci:: topology:: FinishedTopology {
196
- topology : pci_topology,
197
- bridges : _bridges,
198
- } = pci_builder. finish ( self . machine ) ?;
195
+ let pci:: topology:: FinishedTopology { topology : pci_topology, bridges } =
196
+ pci_builder. finish ( self . machine ) ?;
199
197
200
198
match self . spec . devices . board . chipset {
201
199
instance_spec:: components:: board:: Chipset :: I440Fx ( i440fx) => {
@@ -263,6 +261,14 @@ impl<'a> MachineInitializer<'a> {
263
261
) ;
264
262
self . devices . insert ( chipset_pm. type_name ( ) . into ( ) , chipset_pm) ;
265
263
264
+ // Record attachment for any bridges in PCI topology too
265
+ for ( bdf, bridge) in bridges {
266
+ self . devices . insert (
267
+ format ! ( "{}-{bdf}" , bridge. type_name( ) ) ,
268
+ bridge,
269
+ ) ;
270
+ }
271
+
266
272
Ok ( RegisteredChipset { chipset : chipset_hb, isa : chipset_lpc } )
267
273
}
268
274
}
You can’t perform that action at this time.
0 commit comments