mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-05 10:50:43 +00:00
DM: release mmio data structure for pci bar
We didn't release mmio/io data structure related with PCI bar of pci dev. Which could trigger memory leak when reboot UOS. With the new patch, we release the mmio/io data structure when pci core tries to deinit pci device. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <Eddie.dong@intel.com>
This commit is contained in:
@@ -230,6 +230,7 @@ int pci_emul_alloc_bar(struct pci_vdev *pdi, int idx,
|
||||
int pci_emul_alloc_pbar(struct pci_vdev *pdi, int idx,
|
||||
uint64_t hostbase, enum pcibar_type type,
|
||||
uint64_t size);
|
||||
void pci_emul_free_bars(struct pci_vdev *pdi);
|
||||
int pci_emul_add_capability(struct pci_vdev *dev, u_char *capdata,
|
||||
int caplen);
|
||||
int pci_emul_add_msicap(struct pci_vdev *pi, int msgnum);
|
||||
|
Reference in New Issue
Block a user