diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-06-12 15:22:35 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-06-12 15:22:35 +0100 |
commit | 697376dd738b51c7046e00267a1844e0d02bbf62 (patch) | |
tree | f015e1a342876940167b79c18115402f49cc5d9a /xen/common/compat | |
parent | ac1bdbe7b974bb2f6f4c375871abd49ad8613346 (diff) | |
download | xen-697376dd738b51c7046e00267a1844e0d02bbf62.tar.gz xen-697376dd738b51c7046e00267a1844e0d02bbf62.tar.bz2 xen-697376dd738b51c7046e00267a1844e0d02bbf62.zip |
32-on-64: Clean up and unify compat_arg_xlat_area handling.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/compat')
-rw-r--r-- | xen/common/compat/domain.c | 2 | ||||
-rw-r--r-- | xen/common/compat/grant_table.c | 2 | ||||
-rw-r--r-- | xen/common/compat/memory.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/xen/common/compat/domain.c b/xen/common/compat/domain.c index fa8e8d9907..cf2a13b4e9 100644 --- a/xen/common/compat/domain.c +++ b/xen/common/compat/domain.c @@ -87,7 +87,7 @@ int compat_vcpu_op(int cmd, int vcpuid, XEN_GUEST_HANDLE(void) arg) if ( copy_from_guest(&cmp, arg, 1) ) return -EFAULT; - nat = (void *)COMPAT_ARG_XLAT_VIRT_START(current->vcpu_id); + nat = (void *)COMPAT_ARG_XLAT_VIRT_BASE; XLAT_vcpu_set_singleshot_timer(nat, &cmp); rc = do_vcpu_op(cmd, vcpuid, guest_handle_from_ptr(nat, void)); break; diff --git a/xen/common/compat/grant_table.c b/xen/common/compat/grant_table.c index 8781a331cf..fa4322e77d 100644 --- a/xen/common/compat/grant_table.c +++ b/xen/common/compat/grant_table.c @@ -97,7 +97,7 @@ int compat_grant_table_op(unsigned int cmd, struct compat_gnttab_copy copy; } cmp; - set_xen_guest_handle(nat.uop, (void *)COMPAT_ARG_XLAT_VIRT_START(current->vcpu_id)); + set_xen_guest_handle(nat.uop, (void *)COMPAT_ARG_XLAT_VIRT_BASE); switch ( cmd ) { case GNTTABOP_setup_table: diff --git a/xen/common/compat/memory.c b/xen/common/compat/memory.c index 5596c5d73a..491a9ce568 100644 --- a/xen/common/compat/memory.c +++ b/xen/common/compat/memory.c @@ -27,7 +27,7 @@ int compat_memory_op(unsigned int cmd, XEN_GUEST_HANDLE(void) compat) struct compat_translate_gpfn_list xlat; } cmp; - set_xen_guest_handle(nat.hnd, (void *)COMPAT_ARG_XLAT_VIRT_START(current->vcpu_id)); + set_xen_guest_handle(nat.hnd, (void *)COMPAT_ARG_XLAT_VIRT_BASE); split = 0; switch ( op ) { |