aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup_32.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-23 22:55:05 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 06:50:27 -0400
commit295deae401fc5b6f215e876d93b40f25cb968c88 (patch)
treede2e44eeefd6eef078c9b4f4b2dddc94f93cc28c /arch/x86/kernel/setup_32.c
parent9a2e59302668b9ac2fb2a2c9bca1fc793c5d0409 (diff)
x86: setup_arch 32bit move kvm_guest_init later
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup_32.c')
-rw-r--r--arch/x86/kernel/setup_32.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c
index 243b2f7ca137..bba8d57bd7d8 100644
--- a/arch/x86/kernel/setup_32.c
+++ b/arch/x86/kernel/setup_32.c
@@ -482,8 +482,6 @@ void __init setup_arch(char **cmdline_p)
482 */ 482 */
483 vmi_init(); 483 vmi_init();
484#endif 484#endif
485 kvm_guest_init();
486
487 /* 485 /*
488 * NOTE: before this point _nobody_ is allowed to allocate 486 * NOTE: before this point _nobody_ is allowed to allocate
489 * any memory using the bootmem allocator. Although the 487 * any memory using the bootmem allocator. Although the
@@ -511,9 +509,15 @@ void __init setup_arch(char **cmdline_p)
511 509
512 early_quirks(); 510 early_quirks();
513 511
512 /*
513 * Read APIC and some other early information from ACPI tables.
514 */
514 acpi_boot_init(); 515 acpi_boot_init();
515 516
516#if defined(CONFIG_X86_MPPARSE) || defined(CONFIG_X86_VISWS) 517#if defined(CONFIG_X86_MPPARSE) || defined(CONFIG_X86_VISWS)
518 /*
519 * get boot-time SMP configuration:
520 */
517 if (smp_found_config) 521 if (smp_found_config)
518 get_smp_config(); 522 get_smp_config();
519#endif 523#endif
@@ -523,6 +527,7 @@ void __init setup_arch(char **cmdline_p)
523 "CONFIG_X86_PC cannot handle it.\nUse " 527 "CONFIG_X86_PC cannot handle it.\nUse "
524 "CONFIG_X86_GENERICARCH or CONFIG_X86_BIGSMP.\n"); 528 "CONFIG_X86_GENERICARCH or CONFIG_X86_BIGSMP.\n");
525#endif 529#endif
530 kvm_guest_init();
526 531
527 e820_reserve_resources(); 532 e820_reserve_resources();
528 e820_mark_nosave_regions(max_low_pfn); 533 e820_mark_nosave_regions(max_low_pfn);