xen/domain: Call pci_release_devices() when releasing domain resources

This is the very same that we already do for DT devices. Moreover, x86
already calls pci_release_devices().

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
Tested-by: Rahul Singh <rahul.singh@arm.com>
This commit is contained in:
Oleksandr Tyshchenko authored and Stefano Stabellini committed 2021-10-08 15:50:55 -07:00
1 parent e17abb28e8
commit d4c9845e52
1 file changed
+8 -1
+8 -1
View File
@@ -981,7 +981,8 @@ static int relinquish_memory(struct domain *d, struct page_list_head *list)
* function which may return -ERESTART.
*/
enum {
PROG_tee = 1,
PROG_pci = 1,
PROG_tee,
PROG_xen,
PROG_page,
PROG_mapping,
@@ -1018,6 +1019,12 @@ int domain_relinquish_resources(struct domain *d)
#ifdef CONFIG_IOREQ_SERVER
ioreq_server_destroy_all(d);
#endif
#ifdef CONFIG_HAS_PCI
PROGRESS(pci):
ret = pci_release_devices(d);
if ( ret )
return ret;
#endif
PROGRESS(tee):
ret = tee_relinquish_resources(d);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.