diff options
author | Jeremy Fitzhardinge <jeremy@xensource.com> | 2008-04-17 11:40:51 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:51 -0400 |
commit | 81e103f1f1bb0d35000f0e99626bf7abf864b486 (patch) | |
tree | 24c630827ecd534f4bf0219e2d1b511d9dec147a /arch/x86/xen/enlighten.c | |
parent | c9cf39ae64a6c86872e580f921afec64ab9770f8 (diff) |
xen: use iret instruction all the time
Change iret implementation to not be dependent on direct-access vcpu
structure.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r-- | arch/x86/xen/enlighten.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 198db49106b2..c0388220cf97 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
@@ -890,7 +890,6 @@ void __init xen_setup_vcpu_info_placement(void) | |||
890 | pv_irq_ops.irq_disable = xen_irq_disable_direct; | 890 | pv_irq_ops.irq_disable = xen_irq_disable_direct; |
891 | pv_irq_ops.irq_enable = xen_irq_enable_direct; | 891 | pv_irq_ops.irq_enable = xen_irq_enable_direct; |
892 | pv_mmu_ops.read_cr2 = xen_read_cr2_direct; | 892 | pv_mmu_ops.read_cr2 = xen_read_cr2_direct; |
893 | pv_cpu_ops.iret = xen_iret_direct; | ||
894 | } | 893 | } |
895 | } | 894 | } |
896 | 895 | ||
@@ -994,7 +993,7 @@ static const struct pv_cpu_ops xen_cpu_ops __initdata = { | |||
994 | .read_tsc = native_read_tsc, | 993 | .read_tsc = native_read_tsc, |
995 | .read_pmc = native_read_pmc, | 994 | .read_pmc = native_read_pmc, |
996 | 995 | ||
997 | .iret = (void *)&hypercall_page[__HYPERVISOR_iret], | 996 | .iret = xen_iret, |
998 | .irq_enable_syscall_ret = NULL, /* never called */ | 997 | .irq_enable_syscall_ret = NULL, /* never called */ |
999 | 998 | ||
1000 | .load_tr_desc = paravirt_nop, | 999 | .load_tr_desc = paravirt_nop, |