All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@hp.com>
To: Keir Fraser <keir@xensource.com>
Cc: xen-devel <xen-devel@lists.xensource.com>,
	xen-ia64-devel <xen-ia64-devel@lists.xensource.com>
Subject: [PATCH] ia64 build fix
Date: Mon, 08 Oct 2007 09:41:26 -0600	[thread overview]
Message-ID: <1191858086.6478.6.camel@lappy> (raw)

Hi Keir,

   Changeset 16067:9f9f9b68cd08 breaks all non-x86 archs.  Here's a
patch that gets things to a working state on ia64.  Thanks,

	Alex


[IA64] Update for cset 16067:9f9f9b68cd08

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

diff -r a1d0a272c890 xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c	Fri Oct 05 14:39:40 2007 +0100
+++ b/xen/arch/ia64/xen/mm.c	Fri Oct 05 10:43:20 2007 -0600
@@ -2893,6 +2893,13 @@ arch_memory_op(int op, XEN_GUEST_HANDLE(
     return 0;
 }
 
+int
+iomem_page_test(unsigned long mfn, struct page_info *page)
+{
+	return unlikely(!mfn_valid(mfn)) ||
+	       unlikely(page_get_owner(page) == dom_io);
+}
+
 /*
  * Local variables:
  * mode: C
diff -r a1d0a272c890 xen/include/asm-ia64/mm.h
--- a/xen/include/asm-ia64/mm.h	Fri Oct 05 14:39:40 2007 +0100
+++ b/xen/include/asm-ia64/mm.h	Fri Oct 05 10:41:55 2007 -0600
@@ -184,6 +184,9 @@ static inline int get_page(struct page_i
     while(unlikely((y = cmpxchg_acq((u64*)&page->count_info, x, nx)) != x));
     return 1;
 }
+
+/* Decide whether this page looks like iomem or real memory */
+int iomem_page_test(unsigned long mfn, struct page_info *page);
 
 extern void put_page_type(struct page_info *page);
 extern int get_page_type(struct page_info *page, u32 type);

             reply	other threads:[~2007-10-08 15:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-08 15:41 Alex Williamson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-14 16:49 [PATCH] ia64 build fix Alex Williamson
2006-07-12 17:51 Alex Williamson
2006-03-05 17:41 Alex Williamson
2006-02-18  0:06 Alex Williamson

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=1191858086.6478.6.camel@lappy \
    --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.