|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [patch 2/5] 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(-)
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
|
|
|
|
|