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] VT-d: get rid of duplicated definition

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] VT-d: get rid of duplicated definition
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Feb 2010 14:50:25 -0800
Delivery-date: Thu, 11 Feb 2010 14:51:05 -0800
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 1265917875 0
# Node ID 9a9ea52c3680f5575cc0401385bcbe9dcd0e061f
# Parent  b882c558d4e4d084eb5532e8feb5944d03c2878f
VT-d: get rid of duplicated definition

free_pgtable_maddr was implemented the same for x86 and IA64, so it's
not necessary to define it separately for x86 and IA64. This patch
moves free_pgtable_maddr definition to iommu.c to avoid duplicated
definition.

Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>
---
 xen/drivers/passthrough/vtd/ia64/vtd.c |    6 ------
 xen/drivers/passthrough/vtd/iommu.c    |    6 ++++++
 xen/drivers/passthrough/vtd/x86/vtd.c  |    6 ------
 3 files changed, 6 insertions(+), 12 deletions(-)

diff -r b882c558d4e4 -r 9a9ea52c3680 xen/drivers/passthrough/vtd/ia64/vtd.c
--- a/xen/drivers/passthrough/vtd/ia64/vtd.c    Thu Feb 11 19:50:42 2010 +0000
+++ b/xen/drivers/passthrough/vtd/ia64/vtd.c    Thu Feb 11 19:51:15 2010 +0000
@@ -44,12 +44,6 @@ void unmap_vtd_domain_page(void *va)
 void unmap_vtd_domain_page(void *va)
 {
     unmap_domain_page(va);
-}
-
-void free_pgtable_maddr(u64 maddr)
-{
-    if ( maddr != 0 )
-        free_domheap_page(maddr_to_page(maddr));
 }
 
 unsigned int get_cache_line_size(void)
diff -r b882c558d4e4 -r 9a9ea52c3680 xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c       Thu Feb 11 19:50:42 2010 +0000
+++ b/xen/drivers/passthrough/vtd/iommu.c       Thu Feb 11 19:51:15 2010 +0000
@@ -191,6 +191,12 @@ u64 alloc_pgtable_maddr(struct acpi_drhd
     }
 
     return page_to_maddr(pg);
+}
+
+void free_pgtable_maddr(u64 maddr)
+{
+    if ( maddr != 0 )
+        free_domheap_page(maddr_to_page(maddr));
 }
 
 /* context entry handling */
diff -r b882c558d4e4 -r 9a9ea52c3680 xen/drivers/passthrough/vtd/x86/vtd.c
--- a/xen/drivers/passthrough/vtd/x86/vtd.c     Thu Feb 11 19:50:42 2010 +0000
+++ b/xen/drivers/passthrough/vtd/x86/vtd.c     Thu Feb 11 19:51:15 2010 +0000
@@ -42,12 +42,6 @@ void unmap_vtd_domain_page(void *va)
 void unmap_vtd_domain_page(void *va)
 {
     unmap_domain_page(va);
-}
-
-void free_pgtable_maddr(u64 maddr)
-{
-    if ( maddr != 0 )
-        free_domheap_page(maddr_to_page(maddr));
 }
 
 unsigned int get_cache_line_size(void)

_______________________________________________
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] VT-d: get rid of duplicated definition, Xen patchbot-unstable <=