Commit 295deae4 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

x86: setup_arch 32bit move kvm_guest_init later

Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 9a2e5930
...@@ -482,8 +482,6 @@ void __init setup_arch(char **cmdline_p) ...@@ -482,8 +482,6 @@ void __init setup_arch(char **cmdline_p)
*/ */
vmi_init(); vmi_init();
#endif #endif
kvm_guest_init();
/* /*
* NOTE: before this point _nobody_ is allowed to allocate * NOTE: before this point _nobody_ is allowed to allocate
* any memory using the bootmem allocator. Although the * any memory using the bootmem allocator. Although the
...@@ -511,9 +509,15 @@ void __init setup_arch(char **cmdline_p) ...@@ -511,9 +509,15 @@ void __init setup_arch(char **cmdline_p)
early_quirks(); early_quirks();
/*
* Read APIC and some other early information from ACPI tables.
*/
acpi_boot_init(); acpi_boot_init();
#if defined(CONFIG_X86_MPPARSE) || defined(CONFIG_X86_VISWS) #if defined(CONFIG_X86_MPPARSE) || defined(CONFIG_X86_VISWS)
/*
* get boot-time SMP configuration:
*/
if (smp_found_config) if (smp_found_config)
get_smp_config(); get_smp_config();
#endif #endif
...@@ -523,6 +527,7 @@ void __init setup_arch(char **cmdline_p) ...@@ -523,6 +527,7 @@ void __init setup_arch(char **cmdline_p)
"CONFIG_X86_PC cannot handle it.\nUse " "CONFIG_X86_PC cannot handle it.\nUse "
"CONFIG_X86_GENERICARCH or CONFIG_X86_BIGSMP.\n"); "CONFIG_X86_GENERICARCH or CONFIG_X86_BIGSMP.\n");
#endif #endif
kvm_guest_init();
e820_reserve_resources(); e820_reserve_resources();
e820_mark_nosave_regions(max_low_pfn); e820_mark_nosave_regions(max_low_pfn);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment