diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-26 08:28:33 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-26 08:28:33 +0100 |
commit | 6a90a4f0a328c5cceeb8496719193a7966169fe5 (patch) | |
tree | 60df3e3e7e336a0595b56fd27604a4595d4d8031 | |
parent | f98b988636506716339f1862c15410a2b75096e6 (diff) | |
download | xen-6a90a4f0a328c5cceeb8496719193a7966169fe5.tar.gz xen-6a90a4f0a328c5cceeb8496719193a7966169fe5.tar.bz2 xen-6a90a4f0a328c5cceeb8496719193a7966169fe5.zip |
compat-guest accessor macros do not need address check for hvm guests.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset: 21456:a69d09da4917
xen-unstable date: Wed May 26 08:09:38 2010 +0100
-rw-r--r-- | xen/include/xen/compat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/include/xen/compat.h b/xen/include/xen/compat.h index e662045841..0b8c2c9416 100644 --- a/xen/include/xen/compat.h +++ b/xen/include/xen/compat.h @@ -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); \ |