All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@hp.com>
To: keir@xensource.com
Cc: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com
Subject: [PATCH] avoid redefinition of __gpfn_to_mfn and __mfn_to_gpfn
Date: Mon, 30 Jan 2006 14:59:49 -0700	[thread overview]
Message-ID: <1138658389.13596.35.camel@localhost> (raw)

Hi,

   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,

	Alex

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

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)
+#endif
+#ifndef __mfn_to_gpfn
+ #define __mfn_to_gpfn(d, p)                  (p)
+#endif
 #define guest_physmap_add_page(d, p, m)       ((void)0)
 #define guest_physmap_remove_page(d, p, m)    ((void)0)

                 reply	other threads:[~2006-01-30 21:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1138658389.13596.35.camel@localhost \
    --to=alex.williamson@hp.com \
    --cc=keir@xensource.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-ia64-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.