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/
Home Products Support Community News


[Xen-devel] [PATCH] avoid redefinition of __gpfn_to_mfn and __mfn_to_gpf

To: keir@xxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] avoid redefinition of __gpfn_to_mfn and __mfn_to_gpfn
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Mon, 30 Jan 2006 14:59:49 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 30 Jan 2006 22:07:03 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Organization: LOSL
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

   Changeset 8694 introduced dummy __gpfn_to_mfn and __mfn_to_gpfn into
the common xen/include/shadow.h header.  Unfortunately ia64 uses these
functions and has it's own definition for them.  The dummy versions are
overriding the real version in xen/common/grant_table.c, which causes a
hang somewhere between the startup of the networking code and mounting
the root fs on an ia64 domU domain.  Proposed patch below.  Thanks,


Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>

diff -r 690fc13948db xen/include/xen/shadow.h
--- a/xen/include/xen/shadow.h  Mon Jan 30 12:35:43 2006
+++ b/xen/include/xen/shadow.h  Mon Jan 30 08:50:57 2006
@@ -15,8 +15,12 @@
 #define shadow_mode_translate(d)              (0)
-#define __gpfn_to_mfn(d, p)                   (p)
-#define __mfn_to_gpfn(d, p)                   (p)
+#ifndef __gpfn_to_mfn
+ #define __gpfn_to_mfn(d, p)                  (p)
+#ifndef __mfn_to_gpfn
+ #define __mfn_to_gpfn(d, p)                  (p)
 #define guest_physmap_add_page(d, p, m)       ((void)0)
 #define guest_physmap_remove_page(d, p, m)    ((void)0)

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] avoid redefinition of __gpfn_to_mfn and __mfn_to_gpfn, Alex Williamson <=