ia64/xen-unstable

changeset 17165:df31d8e294ff

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@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Mar 03 10:56:09 2008 +0000 (2008-03-03)
parents 8d2e77f0bcd0
children f476727b1683
files xen/common/kexec.c xen/include/xlat.lst
line diff
     1.1 --- a/xen/common/kexec.c	Mon Mar 03 10:55:42 2008 +0000
     1.2 +++ b/xen/common/kexec.c	Mon Mar 03 10:56:09 2008 +0000
     1.3 @@ -258,19 +258,12 @@ static int kexec_get_range_compat(XEN_GU
     1.4      if ( unlikely(copy_from_guest(&compat_range, uarg, 1)) )
     1.5          return -EFAULT;
     1.6  
     1.7 -    range.range = compat_range.range;
     1.8 -    range.nr = compat_range.nr;
     1.9 -    range.size = compat_range.size;
    1.10 -    range.start = compat_range.start;
    1.11 +    XLAT_kexec_range(&range, &compat_range);
    1.12  
    1.13      ret = kexec_get_range_internal(&range);
    1.14  
    1.15      if ( ret == 0 ) {
    1.16 -        range.range = compat_range.range;
    1.17 -        range.nr = compat_range.nr;
    1.18 -        range.size = compat_range.size;
    1.19 -        range.start = compat_range.start;
    1.20 -
    1.21 +        XLAT_kexec_range(&compat_range, &range);
    1.22          if ( unlikely(copy_to_guest(uarg, &compat_range, 1)) )
    1.23               return -EFAULT;
    1.24      }
     2.1 --- a/xen/include/xlat.lst	Mon Mar 03 10:55:42 2008 +0000
     2.2 +++ b/xen/include/xlat.lst	Mon Mar 03 10:56:09 2008 +0000
     2.3 @@ -30,6 +30,7 @@
     2.4  ?	grant_entry			grant_table.h
     2.5  ?	kexec_exec			kexec.h
     2.6  !	kexec_image			kexec.h
     2.7 +!	kexec_range			kexec.h
     2.8  !	add_to_physmap			memory.h
     2.9  !	foreign_memory_map		memory.h
    2.10  !	memory_exchange			memory.h