]> xenbits.xensource.com Git - xen.git/commitdiff
compat-guest accessor macros do not need address check for hvm guests.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 26 May 2010 07:09:38 +0000 (08:09 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 26 May 2010 07:09:38 +0000 (08:09 +0100)
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/include/xen/compat.h

index e662045841d6538f827324dfb8243198e7c9aca2..0b8c2c9416a0621ba3b0ae2eb06c129fde635dc3 100644 (file)
@@ -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);                                \