summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/xen/interface.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2014-04-17 13:57:37 +0100
committerDavid Vrabel <david.vrabel@citrix.com>2014-04-24 13:09:46 +0100
commit5e40704ed2c69425bcb076fb1890417ef137e6c8 (patch)
treecd46787cce44df343041339655636d1945e4ca0a /arch/arm/include/asm/xen/interface.h
parent1aae31c8306e5f1bdeafd87b2cd9e3f0df3709e5 (diff)
downloadlinux-5e40704ed2c69425bcb076fb1890417ef137e6c8.tar.gz
linux-5e40704ed2c69425bcb076fb1890417ef137e6c8.tar.bz2
linux-5e40704ed2c69425bcb076fb1890417ef137e6c8.zip
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 'arch/arm/include/asm/xen/interface.h')
-rw-r--r--arch/arm/include/asm/xen/interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/xen/interface.h b/arch/arm/include/asm/xen/interface.h
index 1151188bcd83..50066006e6bd 100644
--- a/arch/arm/include/asm/xen/interface.h
+++ b/arch/arm/include/asm/xen/interface.h
@@ -40,6 +40,8 @@ typedef uint64_t xen_pfn_t;
#define PRI_xen_pfn "llx"
typedef uint64_t xen_ulong_t;
#define PRI_xen_ulong "llx"
+typedef int64_t xen_long_t;
+#define PRI_xen_long "llx"
/* Guest handles for primitive C types. */
__DEFINE_GUEST_HANDLE(uchar, unsigned char);
__DEFINE_GUEST_HANDLE(uint, unsigned int);