diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-03-04 07:05:35 -0500 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2009-03-26 13:49:47 -0400 |
commit | 533bd156231eec4b399c36579e7c30b6f52cfd29 (patch) | |
tree | 3969ea9b17317b518c6303d251a61da1f2094013 | |
parent | dd97d5cb540939602cba9af6f88e883a6fe451f0 (diff) |
ia64/pv_ops/xen: preliminary to paravirtualizing fsys.S for xen.
This is a preliminary patch to paravirtualizing fsys.S.
compile fsys.S twice one for native and one for xen, and switch
them at run tine.
Later fsys.S will be paravirtualized.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r-- | arch/ia64/include/asm/xen/inst.h | 3 | ||||
-rw-r--r-- | arch/ia64/xen/Makefile | 2 | ||||
-rw-r--r-- | arch/ia64/xen/xen_pv_ops.c | 14 |
3 files changed, 18 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/xen/inst.h b/arch/ia64/include/asm/xen/inst.h index 19c2ae1d878..e8e01b28d2a 100644 --- a/arch/ia64/include/asm/xen/inst.h +++ b/arch/ia64/include/asm/xen/inst.h | |||
@@ -33,6 +33,9 @@ | |||
33 | #define __paravirt_work_processed_syscall_target \ | 33 | #define __paravirt_work_processed_syscall_target \ |
34 | xen_work_processed_syscall | 34 | xen_work_processed_syscall |
35 | 35 | ||
36 | #define paravirt_fsyscall_table xen_fsyscall_table | ||
37 | #define paravirt_fsys_bubble_down xen_fsys_bubble_down | ||
38 | |||
36 | #define MOV_FROM_IFA(reg) \ | 39 | #define MOV_FROM_IFA(reg) \ |
37 | movl reg = XSI_IFA; \ | 40 | movl reg = XSI_IFA; \ |
38 | ;; \ | 41 | ;; \ |
diff --git a/arch/ia64/xen/Makefile b/arch/ia64/xen/Makefile index 0ad0224693d..b4ca2e6c0ea 100644 --- a/arch/ia64/xen/Makefile +++ b/arch/ia64/xen/Makefile | |||
@@ -10,7 +10,7 @@ obj-$(CONFIG_IA64_GENERIC) += machvec.o | |||
10 | AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN | 10 | AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN |
11 | 11 | ||
12 | # xen multi compile | 12 | # xen multi compile |
13 | ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S entry.S | 13 | ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S entry.S fsys.S |
14 | ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o)) | 14 | ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o)) |
15 | obj-y += $(ASM_PARAVIRT_OBJS) | 15 | obj-y += $(ASM_PARAVIRT_OBJS) |
16 | define paravirtualized_xen | 16 | define paravirtualized_xen |
diff --git a/arch/ia64/xen/xen_pv_ops.c b/arch/ia64/xen/xen_pv_ops.c index fa3b967e69c..fe72308321b 100644 --- a/arch/ia64/xen/xen_pv_ops.c +++ b/arch/ia64/xen/xen_pv_ops.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/irq.h> | 24 | #include <linux/irq.h> |
25 | #include <linux/kernel.h> | 25 | #include <linux/kernel.h> |
26 | #include <linux/pm.h> | 26 | #include <linux/pm.h> |
27 | #include <linux/unistd.h> | ||
27 | 28 | ||
28 | #include <asm/xen/hypervisor.h> | 29 | #include <asm/xen/hypervisor.h> |
29 | #include <asm/xen/xencomm.h> | 30 | #include <asm/xen/xencomm.h> |
@@ -166,6 +167,18 @@ static const struct pv_init_ops xen_init_ops __initconst = { | |||
166 | }; | 167 | }; |
167 | 168 | ||
168 | /*************************************************************************** | 169 | /*************************************************************************** |
170 | * pv_fsys_data | ||
171 | * addresses for fsys | ||
172 | */ | ||
173 | |||
174 | extern unsigned long xen_fsyscall_table[NR_syscalls]; | ||
175 | extern char xen_fsys_bubble_down[]; | ||
176 | struct pv_fsys_data xen_fsys_data __initdata = { | ||
177 | .fsyscall_table = (unsigned long *)xen_fsyscall_table, | ||
178 | .fsys_bubble_down = (void *)xen_fsys_bubble_down, | ||
179 | }; | ||
180 | |||
181 | /*************************************************************************** | ||
169 | * pv_cpu_ops | 182 | * pv_cpu_ops |
170 | * intrinsics hooks. | 183 | * intrinsics hooks. |
171 | */ | 184 | */ |
@@ -355,6 +368,7 @@ xen_setup_pv_ops(void) | |||
355 | xen_info_init(); | 368 | xen_info_init(); |
356 | pv_info = xen_info; | 369 | pv_info = xen_info; |
357 | pv_init_ops = xen_init_ops; | 370 | pv_init_ops = xen_init_ops; |
371 | pv_fsys_data = xen_fsys_data; | ||
358 | pv_cpu_ops = xen_cpu_ops; | 372 | pv_cpu_ops = xen_cpu_ops; |
359 | pv_iosapic_ops = xen_iosapic_ops; | 373 | pv_iosapic_ops = xen_iosapic_ops; |
360 | pv_irq_ops = xen_irq_ops; | 374 | pv_irq_ops = xen_irq_ops; |