diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2014-04-17 08:57:37 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2014-04-24 08:09:46 -0400 |
commit | 5e40704ed2c69425bcb076fb1890417ef137e6c8 (patch) | |
tree | cd46787cce44df343041339655636d1945e4ca0a /include/xen/interface/xen.h | |
parent | 1aae31c8306e5f1bdeafd87b2cd9e3f0df3709e5 (diff) |
arm: xen: implement multicall hypercall support.
As part of this make the usual change to xen_ulong_t in place of unsigned long.
This change has no impact on x86.
The Linux definition of struct multicall_entry.result differs from the Xen
definition, I think for good reasons, and used a long rather than an unsigned
long. Therefore introduce a xen_long_t, which is a long on x86 architectures
and a signed 64-bit integer on ARM.
Use uint32_t nr_calls on x86 for consistency with the ARM definition.
Build tested on amd64 and i386 builds. Runtime tested on ARM.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'include/xen/interface/xen.h')
-rw-r--r-- | include/xen/interface/xen.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/xen/interface/xen.h b/include/xen/interface/xen.h index 0cd5ca333fac..de082130ba4b 100644 --- a/include/xen/interface/xen.h +++ b/include/xen/interface/xen.h | |||
@@ -275,9 +275,9 @@ DEFINE_GUEST_HANDLE_STRUCT(mmu_update); | |||
275 | * NB. The fields are natural register size for this architecture. | 275 | * NB. The fields are natural register size for this architecture. |
276 | */ | 276 | */ |
277 | struct multicall_entry { | 277 | struct multicall_entry { |
278 | unsigned long op; | 278 | xen_ulong_t op; |
279 | long result; | 279 | xen_long_t result; |
280 | unsigned long args[6]; | 280 | xen_ulong_t args[6]; |
281 | }; | 281 | }; |
282 | DEFINE_GUEST_HANDLE_STRUCT(multicall_entry); | 282 | DEFINE_GUEST_HANDLE_STRUCT(multicall_entry); |
283 | 283 | ||