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>
Subject: Re: [Xen-staging] [xen-unstable] hvm: Fail attempts to add pages to guest pseudophys memory map above
Date: Wed, 31 Oct 2007 09:44:27 -0600	[thread overview]
Message-ID: <1193845467.6594.1.camel@lappy> (raw)
In-Reply-To: <200710311008.l9VA8inJ021043@latara.uk.xensource.com>


On Wed, 2007-10-31 at 10:08 +0000, Xen staging patchbot-unstable wrote:
> # HG changeset patch
> # User Keir Fraser
> # Date 1193825262 0
> # Node ID 2717128cbdd11da80c5276aaa7b1a4992cfbf6f2
> # Parent  c7d5d229f19122a8aad10dac178a4f86f39d73f0
> hvm: Fail attempts to add pages to guest pseudophys memory map above
> 4GB when running with AMD NPT on PAE host.

Patch for ia64 and missed define in common code below.  Thanks,

	Alex

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

diff -r 2717128cbdd1 xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c	Wed Oct 31 10:07:42 2007 +0000
+++ b/xen/arch/ia64/xen/mm.c	Wed Oct 31 09:18:54 2007 -0600
@@ -2412,7 +2412,7 @@ steal_page(struct domain *d, struct page
     return 0;
 }
 
-void
+int
 guest_physmap_add_page(struct domain *d, unsigned long gpfn,
                        unsigned long mfn)
 {
@@ -2426,6 +2426,7 @@ guest_physmap_add_page(struct domain *d,
     //BUG_ON(mfn != ((lookup_domain_mpa(d, gpfn << PAGE_SHIFT) & _PFN_MASK) >> PAGE_SHIFT));
 
     perfc_incr(guest_physmap_add_page);
+    return 0;
 }
 
 void
diff -r 2717128cbdd1 xen/include/asm-ia64/grant_table.h
--- a/xen/include/asm-ia64/grant_table.h	Wed Oct 31 10:07:42 2007 +0000
+++ b/xen/include/asm-ia64/grant_table.h	Wed Oct 31 09:19:16 2007 -0600
@@ -12,7 +12,7 @@ int replace_grant_host_mapping(unsigned 
 int replace_grant_host_mapping(unsigned long gpaddr, unsigned long mfn, unsigned long new_gpaddr, unsigned int flags);
 
 // for grant transfer
-void guest_physmap_add_page(struct domain *d, unsigned long gpfn, unsigned long mfn);
+int guest_physmap_add_page(struct domain *d, unsigned long gpfn, unsigned long mfn);
 
 /* XXX
  * somewhere appropriate
diff -r 2717128cbdd1 xen/include/asm-ia64/shadow.h
--- a/xen/include/asm-ia64/shadow.h	Wed Oct 31 10:07:42 2007 +0000
+++ b/xen/include/asm-ia64/shadow.h	Wed Oct 31 09:19:29 2007 -0600
@@ -40,7 +40,7 @@
  * Utilities to change relationship of gpfn->mfn for designated domain,
  * which is required by gnttab transfer, balloon, device model and etc.
  */
-void guest_physmap_add_page(struct domain *d, unsigned long gpfn, unsigned long mfn);
+int guest_physmap_add_page(struct domain *d, unsigned long gpfn, unsigned long mfn);
 void guest_physmap_remove_page(struct domain *d, unsigned long gpfn, unsigned long mfn);
 
 static inline int
diff -r 2717128cbdd1 xen/include/xen/paging.h
--- a/xen/include/xen/paging.h	Wed Oct 31 10:07:42 2007 +0000
+++ b/xen/include/xen/paging.h	Wed Oct 31 09:19:49 2007 -0600
@@ -18,7 +18,7 @@
 #else
 
 #define paging_mode_translate(d)              (0)
-#define guest_physmap_add_page(d, p, m)       ((void)0)
+#define guest_physmap_add_page(d, p, m)       (0)
 #define guest_physmap_remove_page(d, p, m)    ((void)0)
 
 #endif

           reply	other threads:[~2007-10-31 15:44 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <200710311008.l9VA8inJ021043@latara.uk.xensource.com>]

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=1193845467.6594.1.camel@lappy \
    --to=alex.williamson@hp.com \
    --cc=keir@xensource.com \
    --cc=xen-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.