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-devel

[Xen-devel] [patch 2/5] kexec: Add XLAT_kexec_range

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch 2/5] kexec: Add XLAT_kexec_range
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Fri, 29 Feb 2008 15:28:56 +0900
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Delivery-date: Thu, 28 Feb 2008 22:32:34 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20080229062854.370669317@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: quilt/0.46-1
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(-)

Index: xen-unstable.hg/xen/common/kexec.c
===================================================================
--- xen-unstable.hg.orig/xen/common/kexec.c     2008-02-29 14:50:20.000000000 
+0900
+++ xen-unstable.hg/xen/common/kexec.c  2008-02-29 14:50:28.000000000 +0900
@@ -260,19 +260,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;
     }
Index: xen-unstable.hg/xen/include/xlat.lst
===================================================================
--- xen-unstable.hg.orig/xen/include/xlat.lst   2008-02-29 14:48:22.000000000 
+0900
+++ xen-unstable.hg/xen/include/xlat.lst        2008-02-29 14:50:28.000000000 
+0900
@@ -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

-- 

-- 
Horms


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