mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 18:14:53 +00:00
hv: vpci_cleanup for VMs of type POST_LAUNCHED_VM
ACRN cleans up the IOMMU domain and other data structures that represents the state of device assigment to POST_LAUNCHED_VM. This is with the help of hypercalls from SOS DM. Under scenarios where DM execution can get terminated abruptly or due to bugs in DM, hypercalls responsible for cleaning up ACRN cannot happen. This leaves ACRN device representation/resource assignment in an incorrect state. This patch cleans up the IOMMU resource and other data structures upon shutdown of POST_LAUNCHED_VM. 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>
This commit is contained in:
committed by
ACRN System Integration
parent
7a78e70eb3
commit
53b2bd5811
@@ -114,5 +114,6 @@ void sharing_mode_cfgread(struct acrn_vpci *vpci, union pci_bdf bdf,
|
||||
void sharing_mode_cfgwrite(__unused struct acrn_vpci *vpci, union pci_bdf bdf,
|
||||
uint32_t offset, uint32_t bytes, uint32_t val);
|
||||
void sharing_mode_vpci_deinit(const struct acrn_vm *vm);
|
||||
void post_launched_vm_vpci_deinit(const struct acrn_vm *vm);
|
||||
|
||||
#endif /* VPCI_PRIV_H_ */
|
||||
|
||||
Reference in New Issue
Block a user