aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/compat.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-26 08:09:38 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-26 08:09:38 +0100
commit48114954f9e539dbdfb1e16b224b4282b27e46db (patch)
tree2a60e3e9a4ab1f7cde6d3908cbef8aa9bb455052 /xen/include/xen/compat.h
parent490926221829ef47759528971de69baaa16131fc (diff)
downloadxen-48114954f9e539dbdfb1e16b224b4282b27e46db.tar.gz
xen-48114954f9e539dbdfb1e16b224b4282b27e46db.tar.bz2
xen-48114954f9e539dbdfb1e16b224b4282b27e46db.zip
compat-guest accessor macros do not need address check for hvm guests.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/include/xen/compat.h')
-rw-r--r--xen/include/xen/compat.h3
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); \