WARNING - OLD ARCHIVES

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

xen-changelog

[Xen-changelog] [xen-unstable] kexec: Add XLAT_kexec_range

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] kexec: Add XLAT_kexec_range
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 03 Mar 2008 07:30:23 -0800
Delivery-date: Mon, 03 Mar 2008 07:31:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1204541769 0
# Node ID df31d8e294ff00bdcd005412f4c826f1b280cbe2
# Parent  8d2e77f0bcd0d872b46b3e56e12ea4183297fe84
kexec: Add XLAT_kexec_range

Add XLAT_kexec_range and use it to translate between xen_kexec_range_t
and compat_kexec_range_t. I missed this in my previous patche which
created the explicit definition of kexec_get_range_compat().

Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
---
 xen/common/kexec.c   |   11 ++---------
 xen/include/xlat.lst |    1 +
 2 files changed, 3 insertions(+), 9 deletions(-)

diff -r 8d2e77f0bcd0 -r df31d8e294ff xen/common/kexec.c
--- a/xen/common/kexec.c        Mon Mar 03 10:55:42 2008 +0000
+++ b/xen/common/kexec.c        Mon Mar 03 10:56:09 2008 +0000
@@ -258,19 +258,12 @@ static int kexec_get_range_compat(XEN_GU
     if ( unlikely(copy_from_guest(&compat_range, uarg, 1)) )
         return -EFAULT;
 
-    range.range = compat_range.range;
-    range.nr = compat_range.nr;
-    range.size = compat_range.size;
-    range.start = compat_range.start;
+    XLAT_kexec_range(&range, &compat_range);
 
     ret = kexec_get_range_internal(&range);
 
     if ( ret == 0 ) {
-        range.range = compat_range.range;
-        range.nr = compat_range.nr;
-        range.size = compat_range.size;
-        range.start = compat_range.start;
-
+        XLAT_kexec_range(&compat_range, &range);
         if ( unlikely(copy_to_guest(uarg, &compat_range, 1)) )
              return -EFAULT;
     }
diff -r 8d2e77f0bcd0 -r df31d8e294ff xen/include/xlat.lst
--- a/xen/include/xlat.lst      Mon Mar 03 10:55:42 2008 +0000
+++ b/xen/include/xlat.lst      Mon Mar 03 10:56:09 2008 +0000
@@ -30,6 +30,7 @@
 ?      grant_entry                     grant_table.h
 ?      kexec_exec                      kexec.h
 !      kexec_image                     kexec.h
+!      kexec_range                     kexec.h
 !      add_to_physmap                  memory.h
 !      foreign_memory_map              memory.h
 !      memory_exchange                 memory.h

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] kexec: Add XLAT_kexec_range, Xen patchbot-unstable <=