diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-06-16 11:47:09 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-06-16 11:47:09 +0100 |
commit | 7cd9ff256ccc9f57f4c3200310669ee34b3e0d30 (patch) | |
tree | 2172776549701f00ab0e663705b82a512b3f1daf /xen/include/xen/tmem_xen.h | |
parent | afd4c19a1580b133cc21d24370ddc07f2c24f8a1 (diff) | |
download | xen-7cd9ff256ccc9f57f4c3200310669ee34b3e0d30.tar.gz xen-7cd9ff256ccc9f57f4c3200310669ee34b3e0d30.tar.bz2 xen-7cd9ff256ccc9f57f4c3200310669ee34b3e0d30.zip |
tmem: cleanups
- don't mis-use guest handle for passing an MFN value
- eliminate unnecessary (and misplaced) use of XEN_GUEST_HANDLE_64
- use copy_from_guest() instead of __copy_from_guest() for loading the
argument structure
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/xen/tmem_xen.h')
-rw-r--r-- | xen/include/xen/tmem_xen.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/xen/tmem_xen.h b/xen/include/xen/tmem_xen.h index 8d653c27df..7da18e67e6 100644 --- a/xen/include/xen/tmem_xen.h +++ b/xen/include/xen/tmem_xen.h @@ -281,12 +281,12 @@ static inline bool_t tmh_current_is_privileged(void) /* these typedefs are in the public/tmem.h interface typedef XEN_GUEST_HANDLE(void) cli_mfn_t; typedef XEN_GUEST_HANDLE(char) cli_va_t; -typedef XEN_GUEST_HANDLE(tmem_op_t) cli_tmemop_t; */ +typedef XEN_GUEST_HANDLE(tmem_op_t) tmem_cli_op_t; static inline int tmh_get_tmemop_from_client(tmem_op_t *op, tmem_cli_op_t uops) { - return __copy_from_guest(op, uops, 1); + return copy_from_guest(op, uops, 1); } static inline void tmh_copy_to_client_buf_offset(tmem_cli_va_t clibuf, int off, |