aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/ia64/xen/domain.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen/arch/ia64/xen/domain.c')
-rw-r--r--xen/arch/ia64/xen/domain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/arch/ia64/xen/domain.c b/xen/arch/ia64/xen/domain.c
index 743dab7493..5a05bbd797 100644
--- a/xen/arch/ia64/xen/domain.c
+++ b/xen/arch/ia64/xen/domain.c
@@ -669,10 +669,8 @@ void arch_domain_destroy(struct domain *d)
free_xenheap_pages(d->shared_info,
get_order_from_shift(XSI_SHIFT));
- if ( iommu_enabled && need_iommu(d) ) {
- pci_release_devices(d);
+ if ( iommu_enabled && need_iommu(d) )
iommu_domain_destroy(d);
- }
tlb_track_destroy(d);
@@ -1717,6 +1715,8 @@ int domain_relinquish_resources(struct domain *d)
switch (d->arch.relres) {
case RELRES_not_started:
+ pci_release_devices(d);
+
/* Relinquish guest resources for VT-i domain. */
if (is_hvm_domain(d))
vmx_relinquish_guest_resources(d);