xen-ia64-devel
[Xen-ia64-devel] [PATCH 24/33] ia64/pv_ops/xen: paravirtualize entry.S f
paravirtualize entry.S for ia64/xen by multi compile.
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
arch/ia64/include/asm/xen/inst.h | 8 ++++++++
arch/ia64/xen/Makefile | 2 +-
arch/ia64/xen/xen_pv_ops.c | 18 ++++++++++++++++++
3 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/arch/ia64/include/asm/xen/inst.h b/arch/ia64/include/asm/xen/inst.h
index e6a25c3..19c2ae1 100644
--- a/arch/ia64/include/asm/xen/inst.h
+++ b/arch/ia64/include/asm/xen/inst.h
@@ -25,6 +25,14 @@
#define ia64_ivt xen_ivt
#define DO_SAVE_MIN XEN_DO_SAVE_MIN
+#define __paravirt_switch_to xen_switch_to
+#define __paravirt_leave_syscall xen_leave_syscall
+#define __paravirt_work_processed_syscall xen_work_processed_syscall
+#define __paravirt_leave_kernel xen_leave_kernel
+#define __paravirt_pending_syscall_end xen_work_pending_syscall_end
+#define __paravirt_work_processed_syscall_target \
+ xen_work_processed_syscall
+
#define MOV_FROM_IFA(reg) \
movl reg = XSI_IFA; \
;; \
diff --git a/arch/ia64/xen/Makefile b/arch/ia64/xen/Makefile
index 5c87e4a..9b77e8a 100644
--- a/arch/ia64/xen/Makefile
+++ b/arch/ia64/xen/Makefile
@@ -8,7 +8,7 @@ obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o \
AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN
# xen multi compile
-ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S
+ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S entry.S
ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o))
obj-y += $(ASM_PARAVIRT_OBJS)
define paravirtualized_xen
diff --git a/arch/ia64/xen/xen_pv_ops.c b/arch/ia64/xen/xen_pv_ops.c
index c236f04..5b23cd5 100644
--- a/arch/ia64/xen/xen_pv_ops.c
+++ b/arch/ia64/xen/xen_pv_ops.c
@@ -275,6 +275,22 @@ static const struct pv_cpu_ops xen_cpu_ops __initdata = {
= xen_intrin_local_irq_restore,
};
+/******************************************************************************
+ * replacement of hand written assembly codes.
+ */
+
+extern char xen_switch_to;
+extern char xen_leave_syscall;
+extern char xen_work_processed_syscall;
+extern char xen_leave_kernel;
+
+const struct pv_cpu_asm_switch xen_cpu_asm_switch = {
+ .switch_to = (unsigned long)&xen_switch_to,
+ .leave_syscall = (unsigned long)&xen_leave_syscall,
+ .work_processed_syscall = (unsigned long)&xen_work_processed_syscall,
+ .leave_kernel = (unsigned long)&xen_leave_kernel,
+};
+
/***************************************************************************
* pv_ops initialization
*/
@@ -286,4 +302,6 @@ xen_setup_pv_ops(void)
pv_info = xen_info;
pv_init_ops = xen_init_ops;
pv_cpu_ops = xen_cpu_ops;
+
+ paravirt_cpu_asm_init(&xen_cpu_asm_switch);
}
--
1.6.0.2
_______________________________________________
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/33] ia64/xen: increase IA64_MAX_RSVD_REGIONS., (continued)
- [Xen-ia64-devel] [PATCH 07/33] ia64/xen: increase IA64_MAX_RSVD_REGIONS., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 06/33] ia64/xen: introduce sync bitops which is necessary for ia64/xen support., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 18/33] ia64/pv_ops/xen: elf note based xen startup., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 11/33] ia64/xen: define helper functions for xen related address conversion., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 16/33] ia64/xen: add definitions necessary for xen event channel., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 13/33] ia64/xen: implement the arch specific part of xencomm., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 08/33] ia64/xen: introduce definitions necessary for ia64/xen hypercalls., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 23/33] ia64/pv_ops/xen: paravirtualize ivt.S for xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 15/33] ia64/xen: implement arch specific part of xen grant table., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 26/33] ia64/pv_ops/xen: define the nubmer of irqs which xen needs., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 24/33] ia64/pv_ops/xen: paravirtualize entry.S for ia64/xen.,
Isaku Yamahata <=
- [Xen-ia64-devel] [PATCH 12/33] ia64/xen: define helper functions for xen hypercalls., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 20/33] ia64/pv_ops/xen: define xen pv_cpu_ops., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 10/33] ia64/xen: add a necessary header file to compile include/xen/interface/xen.h, Isaku Yamahata
- [Xen-ia64-devel] [PATCH 31/33] ia64/pv_ops: update Kconfig for paravirtualized guest and xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 19/33] ia64/pv_ops/xen: define xen pv_init_ops for various xen initialization., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 22/33] ia64/pv_ops/xen: paravirtualize DO_SAVE_MIN for xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 09/33] ia64/xen: define several constants for ia64/xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 32/33] ia64/xen: a recipe for using xen/ia64 with pv_ops., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 30/33] ia64/xen: preliminary support for save/restore., Isaku Yamahata
|
|
|