projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4909262
)
compat-guest accessor macros do not need address check for hvm guests.
author
Keir Fraser
<keir.fraser@citrix.com>
Wed, 26 May 2010 07:09:38 +0000
(08:09 +0100)
committer
Keir 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
patch
|
blob
|
history
diff --git
a/xen/include/xen/compat.h
b/xen/include/xen/compat.h
index e662045841d6538f827324dfb8243198e7c9aca2..0b8c2c9416a0621ba3b0ae2eb06c129fde635dc3 100644
(file)
--- 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); \