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-devel

[Xen-devel] [PATCH][XEN] allow for architecture to "decorate" dev_bus_ad

To: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][XEN] allow for architecture to "decorate" dev_bus_addr
From: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Date: Sun, 08 Oct 2006 11:32:25 -0400
Delivery-date: Sun, 08 Oct 2006 08:32:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Not for inclusion for 3.0.3 but it should be harmless.
But includes patch this time :)

The following patch allows for an architecture to decorate the
dev_bus_addr returned by a gnttab mapping.

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>

diff -r e30376a0abc3 xen/common/grant_table.c
--- a/xen/common/grant_table.c  Sat Oct 07 16:25:46 2006 -0400
+++ b/xen/common/grant_table.c  Sun Oct 08 11:26:51 2006 -0400
@@ -280,7 +280,7 @@ __gnttab_map_grant_ref(
     ld->grant_table->maptrack[handle].ref   = op->ref;
     ld->grant_table->maptrack[handle].flags = op->flags;
 
-    op->dev_bus_addr = (u64)frame << PAGE_SHIFT;
+    op->dev_bus_addr = GNTTAB_DEV_BUS((u64)frame << PAGE_SHIFT);
     op->handle       = handle;
     op->status       = GNTST_okay;
 
diff -r e30376a0abc3 xen/include/xen/grant_table.h
--- a/xen/include/xen/grant_table.h     Sat Oct 07 16:25:46 2006 -0400
+++ b/xen/include/xen/grant_table.h     Sun Oct 08 11:26:51 2006 -0400
@@ -96,4 +96,8 @@ gnttab_release_mappings(
 gnttab_release_mappings(
     struct domain *d);
 
+#ifndef GNTTAB_DEV_BUS
+#define GNTTAB_DEV_BUS(f) (f)
+#endif
+
 #endif /* __XEN_GRANT_TABLE_H__ */

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

<Prev in Thread] Current Thread [Next in Thread>