[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] compat-guest accessor macros do not need address check for hvm guests.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1274857778 -3600 # Node ID a69d09da4917c7b57ceed65224e4bbc389601081 # Parent 32cdd423d4ebab2b2d03a4501be08438c5dc7050 compat-guest accessor macros do not need address check for hvm guests. Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx> --- xen/include/xen/compat.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r 32cdd423d4eb -r a69d09da4917 xen/include/xen/compat.h --- a/xen/include/xen/compat.h Wed May 26 08:08:46 2010 +0100 +++ b/xen/include/xen/compat.h Wed May 26 08:09:38 2010 +0100 @@ -90,8 +90,9 @@ * Allows use of faster __copy_* functions. */ #define compat_handle_okay(hnd, nr) \ + (paging_mode_external(current->domain) || \ compat_array_access_ok((void *)(full_ptr_t)(hnd).c, (nr), \ - sizeof(**(hnd)._)) + sizeof(**(hnd)._))) #define __copy_to_compat_offset(hnd, off, ptr, nr) ({ \ const typeof(*(ptr)) *_s = (ptr); \ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |