aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 27ee26aedf94..c0388220cf97 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -25,6 +25,7 @@
25#include <linux/mm.h> 25#include <linux/mm.h>
26#include <linux/page-flags.h> 26#include <linux/page-flags.h>
27#include <linux/highmem.h> 27#include <linux/highmem.h>
28#include <linux/console.h>
28 29
29#include <xen/interface/xen.h> 30#include <xen/interface/xen.h>
30#include <xen/interface/physdev.h> 31#include <xen/interface/physdev.h>
@@ -889,7 +890,6 @@ void __init xen_setup_vcpu_info_placement(void)
889 pv_irq_ops.irq_disable = xen_irq_disable_direct; 890 pv_irq_ops.irq_disable = xen_irq_disable_direct;
890 pv_irq_ops.irq_enable = xen_irq_enable_direct; 891 pv_irq_ops.irq_enable = xen_irq_enable_direct;
891 pv_mmu_ops.read_cr2 = xen_read_cr2_direct; 892 pv_mmu_ops.read_cr2 = xen_read_cr2_direct;
892 pv_cpu_ops.iret = xen_iret_direct;
893 } 893 }
894} 894}
895 895
@@ -993,7 +993,7 @@ static const struct pv_cpu_ops xen_cpu_ops __initdata = {
993 .read_tsc = native_read_tsc, 993 .read_tsc = native_read_tsc,
994 .read_pmc = native_read_pmc, 994 .read_pmc = native_read_pmc,
995 995
996 .iret = (void *)&hypercall_page[__HYPERVISOR_iret], 996 .iret = xen_iret,
997 .irq_enable_syscall_ret = NULL, /* never called */ 997 .irq_enable_syscall_ret = NULL, /* never called */
998 998
999 .load_tr_desc = paravirt_nop, 999 .load_tr_desc = paravirt_nop,
@@ -1228,6 +1228,9 @@ asmlinkage void __init xen_start_kernel(void)
1228 ? __pa(xen_start_info->mod_start) : 0; 1228 ? __pa(xen_start_info->mod_start) : 0;
1229 boot_params.hdr.ramdisk_size = xen_start_info->mod_len; 1229 boot_params.hdr.ramdisk_size = xen_start_info->mod_len;
1230 1230
1231 if (!is_initial_xendomain())
1232 add_preferred_console("hvc", 0, NULL);
1233
1231 /* Start the world */ 1234 /* Start the world */
1232 start_kernel(); 1235 start_kernel();
1233} 1236}