mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
pci: vfio_user: Free BARs associated with vfio-user device
This resolves an issue with hotplug -> removal -> hotplug of a vfio-user device as the allocator was not updated with the now unused entries. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
b075aada8c
commit
e3487c0146
@ -234,6 +234,10 @@ impl PciDevice for VfioUserPciDevice {
|
||||
self.common.allocate_bars(allocator, &self.vfio_wrapper)
|
||||
}
|
||||
|
||||
fn free_bars(&mut self, allocator: &mut SystemAllocator) -> Result<(), PciDeviceError> {
|
||||
self.common.free_bars(allocator)
|
||||
}
|
||||
|
||||
fn as_any(&mut self) -> &mut dyn Any {
|
||||
self
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user