diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-07-06 11:51:19 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-07-06 11:51:19 +0100 |
commit | 4a5c7690153394777bd9811f1e6e23282e9ea271 (patch) | |
tree | 660c10142fa8499479cedd8125f95fa1abffeed1 /xen/common/compat | |
parent | 34d140eaa742654b706530a7be9ec9bca0dea209 (diff) | |
download | xen-4a5c7690153394777bd9811f1e6e23282e9ea271.tar.gz xen-4a5c7690153394777bd9811f1e6e23282e9ea271.tar.bz2 xen-4a5c7690153394777bd9811f1e6e23282e9ea271.zip |
Avoid compat_arg_xlat to be a large per-CPU object
Signed-off-by: Jan Beulich <jbeulich@novell.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 48173decc6..67e0e5e316 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_BASE; + nat = 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 f3a6d93776..5f0dc2db57 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_BASE); + set_xen_guest_handle(nat.uop, 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 779cad9f26..99467db8a8 100644 --- a/xen/common/compat/memory.c +++ b/xen/common/compat/memory.c @@ -25,7 +25,7 @@ int compat_memory_op(unsigned int cmd, XEN_GUEST_HANDLE(void) compat) struct compat_memory_exchange xchg; } cmp; - set_xen_guest_handle(nat.hnd, (void *)COMPAT_ARG_XLAT_VIRT_BASE); + set_xen_guest_handle(nat.hnd, COMPAT_ARG_XLAT_VIRT_BASE); split = 0; switch ( op ) { |