xen-ia64-devel
[Xen-ia64-devel] Re: [PATCH 08/27] ia64/xen: define helper functions for
On Tue, Jun 17, 2008 at 04:57:55PM -0700, Luck, Tony wrote:
>
> +/*
> + * Hypercalls without parameter.
> + */
> +#define __HCALL0(name,hcall) \
> + GLOBAL_ENTRY(name); \
> + break hcall; \
>
> Should Linux code be made aware of the "break" numbers that
> are being used for hypercalls (so it doesn't try to re-use
> them for something else?) include/asm-ia64/break.h should be
> updated with the appropriate stuff (just with a base value
> and a comment for how many you are using ... you can still
> define all the HYPERPRIVOP_* defines in a separate file).
>
> -Tony
Here is the patch to reserve those numbers.
>From 1c9b394c025bb9dcb29dc8240bda68117f577c9d Mon Sep 17 00:00:00 2001
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 19 Jun 2008 19:07:37 +0900
Subject: [PATCH] ia64/xen: reserve "break" numbers used for xen hypercalls.
reserve "break" numbers used for xen hypercalls to avoid
reuse for something else.
Cc: "Luck, Tony" <tony.luck@xxxxxxxxx>
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
include/asm-ia64/break.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/include/asm-ia64/break.h b/include/asm-ia64/break.h
index f034020..e90c40e 100644
--- a/include/asm-ia64/break.h
+++ b/include/asm-ia64/break.h
@@ -20,4 +20,13 @@
*/
#define __IA64_BREAK_SYSCALL 0x100000
+/*
+ * Xen specific break numbers:
+ */
+#define __IA64_XEN_HYPERCALL 0x1000
+/* [__IA64_XEN_HYPERPRIVOP_START, __IA64_XEN_HYPERPRIVOP_MAX] is used
+ for xen hyperprivops */
+#define __IA64_XEN_HYPERPRIVOP_START 0x1
+#define __IA64_XEN_HYPERPRIVOP_MAX 0x1a
+
#endif /* _ASM_IA64_BREAK_H */
--
1.5.3
--
yamahata
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-ia64-devel] [PATCH 07/27] ia64/xen: define helper functions for xen related address conversion., (continued)
[Xen-ia64-devel] [PATCH 08/27] ia64/xen: define helper functions for xen hypercalls., Isaku Yamahata
[Xen-ia64-devel] [PATCH 12/27] ia64/xen: add definitions necessary for xen event channel., Isaku Yamahata
[Xen-ia64-devel] [PATCH 10/27] ia64/xen: xencomm conversion functions for hypercalls, Isaku Yamahata
[Xen-ia64-devel] [PATCH 11/27] ia64/xen: implement arch specific part of xen grant table., Isaku Yamahata
[Xen-ia64-devel] [PATCH 14/27] ia64/pv_ops/xen: define xen pv_init_ops for various xen initialization., Isaku Yamahata
[Xen-ia64-devel] [PATCH 15/27] ia64/pv_ops/xen: define xen pv_cpu_ops., Isaku Yamahata
[Xen-ia64-devel] [PATCH 16/27] ia64/pv_ops/xen: define xen paravirtualized instructions for hand written assembly code, Isaku Yamahata
[Xen-ia64-devel] [PATCH 18/27] ia64/pv_ops/xen: paravirtualize ivt.S for xen., Isaku Yamahata
[Xen-ia64-devel] [PATCH 17/27] ia64/pv_ops/xen: paravirtualize DO_SAVE_MIN for xen., Isaku Yamahata
|
|
|