mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
e17abb28e8
commit
d4c9845e52
1 file changed
+8
-1
@@ -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);
|
||||
|
||||