diff options
-rw-r--r-- | arch/arm/include/asm/xen/hypercall.h | 6 | ||||
-rw-r--r-- | arch/arm/include/asm/xen/interface.h | 2 | ||||
-rw-r--r-- | arch/arm/xen/hypercall.S | 1 | ||||
-rw-r--r-- | arch/arm64/xen/hypercall.S | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/xen/hypercall.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/xen/interface.h | 3 | ||||
-rw-r--r-- | include/xen/interface/xen.h | 6 |
7 files changed, 12 insertions, 9 deletions
diff --git a/arch/arm/include/asm/xen/hypercall.h b/arch/arm/include/asm/xen/hypercall.h index 7704e28c3483..7658150488d6 100644 --- a/arch/arm/include/asm/xen/hypercall.h +++ b/arch/arm/include/asm/xen/hypercall.h | |||
@@ -48,6 +48,7 @@ int HYPERVISOR_memory_op(unsigned int cmd, void *arg); | |||
48 | int HYPERVISOR_physdev_op(int cmd, void *arg); | 48 | int HYPERVISOR_physdev_op(int cmd, void *arg); |
49 | int HYPERVISOR_vcpu_op(int cmd, int vcpuid, void *extra_args); | 49 | int HYPERVISOR_vcpu_op(int cmd, int vcpuid, void *extra_args); |
50 | int HYPERVISOR_tmem_op(void *arg); | 50 | int HYPERVISOR_tmem_op(void *arg); |
51 | int HYPERVISOR_multicall(struct multicall_entry *calls, uint32_t nr); | ||
51 | 52 | ||
52 | static inline void | 53 | static inline void |
53 | MULTI_update_va_mapping(struct multicall_entry *mcl, unsigned long va, | 54 | MULTI_update_va_mapping(struct multicall_entry *mcl, unsigned long va, |
@@ -63,9 +64,4 @@ MULTI_mmu_update(struct multicall_entry *mcl, struct mmu_update *req, | |||
63 | BUG(); | 64 | BUG(); |
64 | } | 65 | } |
65 | 66 | ||
66 | static inline int | ||
67 | HYPERVISOR_multicall(void *call_list, int nr_calls) | ||
68 | { | ||
69 | BUG(); | ||
70 | } | ||
71 | #endif /* _ASM_ARM_XEN_HYPERCALL_H */ | 67 | #endif /* _ASM_ARM_XEN_HYPERCALL_H */ |
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; | |||
40 | #define PRI_xen_pfn "llx" | 40 | #define PRI_xen_pfn "llx" |
41 | typedef uint64_t xen_ulong_t; | 41 | typedef uint64_t xen_ulong_t; |
42 | #define PRI_xen_ulong "llx" | 42 | #define PRI_xen_ulong "llx" |
43 | typedef int64_t xen_long_t; | ||
44 | #define PRI_xen_long "llx" | ||
43 | /* Guest handles for primitive C types. */ | 45 | /* Guest handles for primitive C types. */ |
44 | __DEFINE_GUEST_HANDLE(uchar, unsigned char); | 46 | __DEFINE_GUEST_HANDLE(uchar, unsigned char); |
45 | __DEFINE_GUEST_HANDLE(uint, unsigned int); | 47 | __DEFINE_GUEST_HANDLE(uint, unsigned int); |
diff --git a/arch/arm/xen/hypercall.S b/arch/arm/xen/hypercall.S index d1cf7b7c2200..44e3a5f10c4c 100644 --- a/arch/arm/xen/hypercall.S +++ b/arch/arm/xen/hypercall.S | |||
@@ -89,6 +89,7 @@ HYPERCALL2(memory_op); | |||
89 | HYPERCALL2(physdev_op); | 89 | HYPERCALL2(physdev_op); |
90 | HYPERCALL3(vcpu_op); | 90 | HYPERCALL3(vcpu_op); |
91 | HYPERCALL1(tmem_op); | 91 | HYPERCALL1(tmem_op); |
92 | HYPERCALL2(multicall); | ||
92 | 93 | ||
93 | ENTRY(privcmd_call) | 94 | ENTRY(privcmd_call) |
94 | stmdb sp!, {r4} | 95 | stmdb sp!, {r4} |
diff --git a/arch/arm64/xen/hypercall.S b/arch/arm64/xen/hypercall.S index 531342ec4bcf..8bbe9401f4f0 100644 --- a/arch/arm64/xen/hypercall.S +++ b/arch/arm64/xen/hypercall.S | |||
@@ -80,6 +80,7 @@ HYPERCALL2(memory_op); | |||
80 | HYPERCALL2(physdev_op); | 80 | HYPERCALL2(physdev_op); |
81 | HYPERCALL3(vcpu_op); | 81 | HYPERCALL3(vcpu_op); |
82 | HYPERCALL1(tmem_op); | 82 | HYPERCALL1(tmem_op); |
83 | HYPERCALL2(multicall); | ||
83 | 84 | ||
84 | ENTRY(privcmd_call) | 85 | ENTRY(privcmd_call) |
85 | mov x16, x0 | 86 | mov x16, x0 |
diff --git a/arch/x86/include/asm/xen/hypercall.h b/arch/x86/include/asm/xen/hypercall.h index e709884d0ef9..ca08a27b90b3 100644 --- a/arch/x86/include/asm/xen/hypercall.h +++ b/arch/x86/include/asm/xen/hypercall.h | |||
@@ -343,7 +343,7 @@ HYPERVISOR_memory_op(unsigned int cmd, void *arg) | |||
343 | } | 343 | } |
344 | 344 | ||
345 | static inline int | 345 | static inline int |
346 | HYPERVISOR_multicall(void *call_list, int nr_calls) | 346 | HYPERVISOR_multicall(void *call_list, uint32_t nr_calls) |
347 | { | 347 | { |
348 | return _hypercall2(int, multicall, call_list, nr_calls); | 348 | return _hypercall2(int, multicall, call_list, nr_calls); |
349 | } | 349 | } |
diff --git a/arch/x86/include/asm/xen/interface.h b/arch/x86/include/asm/xen/interface.h index fd9cb7695b5f..3400dbaec3c3 100644 --- a/arch/x86/include/asm/xen/interface.h +++ b/arch/x86/include/asm/xen/interface.h | |||
@@ -54,6 +54,9 @@ typedef unsigned long xen_pfn_t; | |||
54 | #define PRI_xen_pfn "lx" | 54 | #define PRI_xen_pfn "lx" |
55 | typedef unsigned long xen_ulong_t; | 55 | typedef unsigned long xen_ulong_t; |
56 | #define PRI_xen_ulong "lx" | 56 | #define PRI_xen_ulong "lx" |
57 | typedef long xen_long_t; | ||
58 | #define PRI_xen_long "lx" | ||
59 | |||
57 | /* Guest handles for primitive C types. */ | 60 | /* Guest handles for primitive C types. */ |
58 | __DEFINE_GUEST_HANDLE(uchar, unsigned char); | 61 | __DEFINE_GUEST_HANDLE(uchar, unsigned char); |
59 | __DEFINE_GUEST_HANDLE(uint, unsigned int); | 62 | __DEFINE_GUEST_HANDLE(uint, unsigned int); |
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 | ||