Skip to content

Commit

Permalink
x86: setup_arch 32bit move kvm_guest_init later
Browse files Browse the repository at this point in the history
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 8, 2008
1 parent 9a2e593 commit 295deae
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions arch/x86/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,6 @@ void __init setup_arch(char **cmdline_p)
*/
vmi_init();
#endif
kvm_guest_init();

/*
* NOTE: before this point _nobody_ is allowed to allocate
* any memory using the bootmem allocator. Although the
Expand Down Expand Up @@ -511,9 +509,15 @@ void __init setup_arch(char **cmdline_p)

early_quirks();

/*
* Read APIC and some other early information from ACPI tables.
*/
acpi_boot_init();

#if defined(CONFIG_X86_MPPARSE) || defined(CONFIG_X86_VISWS)
/*
* get boot-time SMP configuration:
*/
if (smp_found_config)
get_smp_config();
#endif
Expand All @@ -523,6 +527,7 @@ void __init setup_arch(char **cmdline_p)
"CONFIG_X86_PC cannot handle it.\nUse "
"CONFIG_X86_GENERICARCH or CONFIG_X86_BIGSMP.\n");
#endif
kvm_guest_init();

e820_reserve_resources();
e820_mark_nosave_regions(max_low_pfn);
Expand Down

0 comments on commit 295deae

Please sign in to comment.