You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(pci): move (de)allocation BAR methods out of PciDevice
PciDevice trait was defining (optional) methods to allocate and
deallocate BAR regions for devices. This logic is quite device specific
and when invoked we typically know what device it refers to exactly.
Currently, we only implement the allocate API for VirtIO devices (no
deallocation whatsoever).
Simplify things by dropping these APIs from the trait definition. Also,
remove the 32bit allocator argument from allocate_bars(); we always only
allocate a single 64-bit BAR for VirtIO devices.
Signed-off-by: Babis Chalios <bchalios@amazon.es>
0 commit comments