acrn-hypervisor/hypervisor/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
..
hv_main.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
hypercall.c hv:remove accessing shared log buffer cases between stac/clac 2019-05-05 10:00:32 +08:00
ptdev.c hv: release IOMMU irte when releasing ptirq remapping entries 2019-05-06 18:25:37 +08:00
schedule.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
softirq.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
stack_protector.c HV: cleanup header files under hypervisor/common 2019-02-28 14:59:22 +08:00
static_checks.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
trusty_hypercall.c HV: cleanup header files under hypervisor/common 2019-02-28 14:59:22 +08:00
vm_load.c hv: separate host e820 and SOS ve820 2019-04-26 16:20:50 +08:00