WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] AMD IOMMU: Add deallocation for interrupt remapping table.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 01 Aug 2008 02:20:28 -0700
Delivery-date: Fri, 01 Aug 2008 02:21:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] AMD IOMMU: Add deallocation for interrupt remapping table., Xen patchbot-unstable <=