]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/i386/kernel/setup.c
[PATCH] i386: vMI backend for paravirt-ops
[net-next-2.6.git] / arch / i386 / kernel / setup.c
index 4694ac980cd201c2b53bea98ae03299b816bc999..bd8c218d94af5e1cdc6de06c4ce2fc29941e04b0 100644 (file)
@@ -60,6 +60,7 @@
 #include <asm/io_apic.h>
 #include <asm/ist.h>
 #include <asm/io.h>
+#include <asm/vmi.h>
 #include <setup_arch.h>
 #include <bios_ebda.h>
 
@@ -581,6 +582,14 @@ void __init setup_arch(char **cmdline_p)
 
        max_low_pfn = setup_memory();
 
+#ifdef CONFIG_VMI
+       /*
+        * Must be after max_low_pfn is determined, and before kernel
+        * pagetables are setup.
+        */
+       vmi_init();
+#endif
+
        /*
         * NOTE: before this point _nobody_ is allowed to allocate
         * any memory using the bootmem allocator.  Although the