(
&mut self,
_allocator: &mut SystemAllocator,
mmio32_allocator: &mut AddressAllocator,
_mmio64_allocator: &mut AddressAllocator,
)
| 759 | } |
| 760 | |
| 761 | fn free_bars( |
| 762 | &mut self, |
| 763 | _allocator: &mut SystemAllocator, |
| 764 | mmio32_allocator: &mut AddressAllocator, |
| 765 | _mmio64_allocator: &mut AddressAllocator, |
| 766 | ) -> Result<(), PciDeviceError> { |
| 767 | for bar in self.bar_regions.drain(..) { |
| 768 | mmio32_allocator.free(GuestAddress(bar.addr()), bar.size()); |
| 769 | } |
| 770 | Ok(()) |
| 771 | } |
| 772 | |
| 773 | fn move_bar(&mut self, old_base: u64, new_base: u64) -> result::Result<(), io::Error> { |
| 774 | for bar in self.bar_regions.iter_mut() { |