xen: make phys_to_machine structure dynamic
[linux-2.6-block.git] / arch / x86 / xen / enlighten.c
index 6cfb708408e950412f6c9c3ebbb82e0d3f60bcc9..73d3c84a3495d398b18f7ee65ba8ad706cd3c90f 100644 (file)
@@ -1221,7 +1221,7 @@ asmlinkage void __init xen_start_kernel(void)
 
        /* Get mfn list */
        if (!xen_feature(XENFEAT_auto_translated_physmap))
-               phys_to_machine_mapping = (unsigned long *)xen_start_info->mfn_list;
+               xen_build_dynamic_phys_to_machine();
 
        pgd = (pgd_t *)xen_start_info->pt_base;
 
@@ -1257,6 +1257,7 @@ asmlinkage void __init xen_start_kernel(void)
        boot_params.hdr.ramdisk_size = xen_start_info->mod_len;
 
        if (!is_initial_xendomain()) {
+               add_preferred_console("xenboot", 0, NULL);
                add_preferred_console("tty", 0, NULL);
                add_preferred_console("hvc", 0, NULL);
        }