All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: xen-devel@lists.xensource.com
Cc: keir.fraser@eu.citrix.com
Subject: [PATCH 1 of 3] Made arch_memory_op propagate (instead of ignore) errors from guest_physmap_add_page
Date: Thu, 03 Dec 2009 18:50:01 -0000	[thread overview]
Message-ID: <f9eeb0545e1c48cd9fc0.1259866201@phenom.dumpdata.com> (raw)
In-Reply-To: <patchbomb.1259866200@phenom.dumpdata.com>

# HG changeset patch
# User konrad@phenom.dumpdata.com
# Date 1259769438 18000
# Node ID f9eeb0545e1c48cd9fc090c3be8d994b258dd636
# Parent  50aaf5df87ff75fbffffdc7cf9e6d128adef8ecb
Made arch_memory_op propagate (instead of ignore) errors from guest_physmap_add_page.

Authored-by: David Lively
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

diff -r 50aaf5df87ff -r f9eeb0545e1c xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c	Wed Dec 02 10:35:41 2009 -0500
+++ b/xen/arch/x86/mm.c	Wed Dec 02 10:57:18 2009 -0500
@@ -4005,6 +4005,7 @@
         struct xen_add_to_physmap xatp;
         unsigned long prev_mfn, mfn = 0, gpfn;
         struct domain *d;
+        int rc = 0;
 
         if ( copy_from_guest(&xatp, arg, 1) )
             return -EFAULT;
@@ -4089,7 +4090,7 @@
             guest_physmap_remove_page(d, gpfn, mfn, 0);
 
         /* Map at new location. */
-        guest_physmap_add_page(d, xatp.gpfn, mfn, 0);
+        rc = guest_physmap_add_page(d, xatp.gpfn, mfn, 0);
 
         domain_unlock(d);
 
@@ -4098,7 +4099,7 @@
 
         rcu_unlock_domain(d);
 
-        break;
+        return rc;
     }
 
     case XENMEM_set_memory_map:

  reply	other threads:[~2009-12-03 18:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03 18:50 [PATCH 0 of 3] Patches to help fix issues in the field Konrad Rzeszutek Wilk
2009-12-03 18:50 ` Konrad Rzeszutek Wilk [this message]
2009-12-03 18:50 ` [PATCH 2 of 3] To help debug stack overflows, debug backtrace now shows Konrad Rzeszutek Wilk
2009-12-03 18:50 ` [PATCH 3 of 3] Provided a routine to print the active grant table entries Konrad Rzeszutek Wilk

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=f9eeb0545e1c48cd9fc0.1259866201@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=keir.fraser@eu.citrix.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.