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/common/tmem_xen.c | |
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/common/tmem_xen.c')
-rw-r--r-- | xen/common/tmem_xen.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xen/common/tmem_xen.c b/xen/common/tmem_xen.c index 774bb7dc12..f168535a2a 100644 --- a/xen/common/tmem_xen.c +++ b/xen/common/tmem_xen.c @@ -87,10 +87,7 @@ static inline void *cli_mfn_to_va(tmem_cli_mfn_t cmfn, unsigned long *pcli_mfn) unsigned long cli_mfn; p2m_type_t t; - - if (is_pv_32on64_vcpu(current)) - cmfn.p = (void *)((unsigned long)cmfn.p & 0xffffffffUL); - cli_mfn = mfn_x(gfn_to_mfn(current->domain,(unsigned long)cmfn.p,&t)); + cli_mfn = mfn_x(gfn_to_mfn(current->domain, cmfn, &t)); if (t != p2m_ram_rw) return NULL; if (pcli_mfn != NULL) |