acrn-hypervisor/hypervisor/include/common
Zide Chen 5f87e716b8 hv: release IOMMU irte when releasing ptirq remapping entries
IRTE is freed if ptirq entry is released from remove_msix_remapping() or
remove_intx_remapping(). But if it's called from ptdev_release_all_entries(),
e.g. SOS shutdown/reboot, IRTE is not freed.

This patch adds a release_cb() callback function to do any architectural
specific cleanup. In x86, it's used to release IRTE.

On VM shutdown, vpci_cleanup() needs to remove MSI/MSI-X remapping on
ptirq entries, thus it should be called before ptdev_release_all_entries().

Tracked-On: #2700
Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
Signed-off-by: Zide Chen <zide.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2019-05-06 18:25:37 +08:00
..
hypercall.h hv: add new hypercall to fetch platform configurations 2019-04-15 22:14:13 +08:00
ptdev.h hv: release IOMMU irte when releasing ptirq remapping entries 2019-05-06 18:25:37 +08:00
schedule.h HV: Add one delmode parameter to make_reschedule_request 2019-03-29 16:17:44 +08:00
softirq.h hv: remove unused MACROs 2018-09-18 09:43:43 +08:00