[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.