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

[Xen-changelog] [IA64] fix gnttab_shared_gmfn()



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 55e8f512fed5bef36d1acb32d1f280154bf116b0
# Parent  827c65c06a66dd067c64ebb56b17b4379d83cbf9
[IA64] fix gnttab_shared_gmfn()

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 827c65c06a66 -r 55e8f512fed5 xen/include/asm-ia64/grant_table.h
--- a/xen/include/asm-ia64/grant_table.h        Tue Apr 04 09:43:41 2006 -0600
+++ b/xen/include/asm-ia64/grant_table.h        Wed Apr 05 12:15:10 2006 -0600
@@ -17,12 +17,16 @@
 /* Guest physical address of the grant table.  */
 #define IA64_GRANT_TABLE_PADDR (1UL << 40)
 
-#define gnttab_shared_gmfn(d, t, i)                                     \
-    ( ((d) == dom0) ?                                                   \
-      ((virt_to_maddr((t)->shared) >> PAGE_SHIFT) + (i)) :              \
-      (assign_domain_page((d), IA64_GRANT_TABLE_PADDR,                         
\
-       virt_to_maddr((t)->shared)), IA64_GRANT_TABLE_PADDR >> PAGE_SHIFT) \
-    )
+#define gnttab_shared_maddr(d, t, i)                        \
+    virt_to_maddr((char*)(t)->shared + ((i) << PAGE_SHIFT))
+
+#define gnttab_shared_gmfn(d, t, i)                                          \
+    ({ ((d) == dom0) ?                                                       \
+            (virt_to_maddr((t)->shared) >> PAGE_SHIFT) + (i):                \
+            assign_domain_page((d),                                          \
+                               IA64_GRANT_TABLE_PADDR + ((i) << PAGE_SHIFT), \
+                               gnttab_shared_maddr(d, t, i)),                \
+            (IA64_GRANT_TABLE_PADDR >> PAGE_SHIFT) + (i);})
 
 #define gnttab_log_dirty(d, f) ((void)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®.