X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=kitten%2Finit%2Fmain.c;h=9b8c086ef6fb88588344c6341f7f468ea8a37505;hb=165560d91368d638b177022f883d3723d7618944;hp=49a2c0432f09b765acccb728418e69a02191af40;hpb=6299cb929a586fd8debcc316c1ede714d5b95979;p=palacios.git diff --git a/kitten/init/main.c b/kitten/init/main.c index 49a2c04..9b8c086 100644 --- a/kitten/init/main.c +++ b/kitten/init/main.c @@ -12,6 +12,7 @@ #include #include #include +#include /** * Pristine copy of the LWK boot command line. @@ -31,7 +32,6 @@ start_kernel() { unsigned int cpu; unsigned int timeout; - int status; /* * Parse the kernel boot command line. @@ -116,13 +116,20 @@ start_kernel() panic("Failed to boot CPU %d.\n", cpu); } +#ifdef CONFIG_V3VEE + v3vee_run_vmm(); + printk( "%s: VMM returned. We're spinning\n", __func__ ); + while(1) { asm( "hlt" ); } +#else /* * Start up user-space... */ printk(KERN_INFO "Loading initial user-level task (init_task)...\n"); + int status; if ((status = create_init_task()) != 0) panic("Failed to create init_task (status=%d).", status); schedule(); /* This should not return */ BUG(); +#endif }