mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-19 09:53:01 +00:00
dm: pci: destory reseverd PIO BAR when deinit passthrough PCI device
Destory reseverd PIO BAR when deinit passthrough PCI device to free reserved_bar_regions. Tracked-On: #6508 Signed-off-by: Fei Li <fei1.li@intel.com>
This commit is contained in:
parent
7a0c814693
commit
8333ba2c7b
@ -745,6 +745,7 @@ passthru_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
|
||||
vm_unmap_ptdev_mmio(ctx, 0, 2, 0, gpu_opregion_gpa, GPU_OPREGION_SIZE, gpu_opregion_hpa);
|
||||
}
|
||||
|
||||
destory_mmio_rsvd_rgns(dev);
|
||||
pcidev.virt_bdf = PCI_BDF(dev->bus, dev->slot, dev->func);
|
||||
pcidev.phys_bdf = ptdev->phys_bdf;
|
||||
pciaccess_cleanup();
|
||||
|
Loading…
Reference in New Issue
Block a user