[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] AMD IOMMU: Add deallocation for interrupt remapping table.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1217507805 -3600
# Node ID f1486d8c06fbf56613b9898a31956ed02e12d4ac
# Parent  a352c29d5471a1a6fb3fc5b21a8d7d3f6e6e9431
AMD IOMMU: Add deallocation for interrupt remapping table.

Signed-off-by: Wei Wang <wei.wang2@xxxxxxx>
---
 xen/drivers/passthrough/amd/iommu_intr.c |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletion(-)

diff -r a352c29d5471 -r f1486d8c06fb xen/drivers/passthrough/amd/iommu_intr.c
--- a/xen/drivers/passthrough/amd/iommu_intr.c  Thu Jul 31 13:36:14 2008 +0100
+++ b/xen/drivers/passthrough/amd/iommu_intr.c  Thu Jul 31 13:36:45 2008 +0100
@@ -107,7 +107,7 @@ static void update_intremap_entry_from_i
     return;
 }
 
-int amd_iommu_setup_intremap_table(void)
+int __init amd_iommu_setup_intremap_table(void)
 {
     unsigned long flags;
 
@@ -203,3 +203,18 @@ void amd_iommu_msi_msg_update_ire(
 
     update_intremap_entry_from_msi_msg(iommu, pdev, msg);
 }
+
+int __init deallocate_intremap_table(void)
+{
+    unsigned long flags;
+
+    spin_lock_irqsave(&int_remap_table_lock, flags);
+    if ( int_remap_table )
+    {
+        free_xenheap_pages(int_remap_table, 1);
+        int_remap_table = NULL;
+    }
+    spin_unlock_irqrestore(&int_remap_table_lock, flags);
+
+    return 0;
+}

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.