ia64/xen-unstable

view xen/arch/x86/setup.c @ 3650:8c6281ec8860

bitkeeper revision 1.1159.212.87 (4203b25aTB_XSOA2G0yxgrj0ey-vIA)

Defined per-CPU SYSCALL entry point for hypercalls. We enter the DOM0
kernel and can receive hypercalls. Now probably need to fix the
user-access (uaccess.h) functions and macros.
Signed-off-by: keir.fraser@cl.cam.ac.uk
author kaf24@scramble.cl.cam.ac.uk
date Fri Feb 04 17:35:22 2005 +0000 (2005-02-04)
parents dbc41aaba297
children 393483ae9f62 32d29625d39b
line source
2 #include <xen/config.h>
3 #include <xen/init.h>
4 #include <xen/lib.h>
5 #include <xen/sched.h>
6 #include <xen/pci.h>
7 #include <xen/serial.h>
8 #include <xen/softirq.h>
9 #include <xen/acpi.h>
10 #include <xen/console.h>
11 #include <xen/trace.h>
12 #include <xen/multiboot.h>
13 #include <asm/bitops.h>
14 #include <asm/smp.h>
15 #include <asm/processor.h>
16 #include <asm/mpspec.h>
17 #include <asm/apic.h>
18 #include <asm/desc.h>
19 #include <asm/domain_page.h>
20 #include <asm/pdb.h>
21 #include <asm/shadow.h>
22 #include <asm/e820.h>
24 /* opt_dom0_mem: Kilobytes of memory allocated to domain 0. */
25 static unsigned int opt_dom0_mem = 16000;
26 integer_param("dom0_mem", opt_dom0_mem);
28 /*
29 * opt_xenheap_megabytes: Size of Xen heap in megabytes, excluding the
30 * pfn_info table and allocation bitmap.
31 */
32 static unsigned int opt_xenheap_megabytes = XENHEAP_DEFAULT_MB;
33 #if defined(__x86_64__)
34 integer_param("xenheap_megabytes", opt_xenheap_megabytes);
35 #endif
37 /* opt_noht: If true, Hyperthreading is ignored. */
38 int opt_noht = 0;
39 boolean_param("noht", opt_noht);
41 /* opt_noacpi: If true, ACPI tables are not parsed. */
42 static int opt_noacpi = 0;
43 boolean_param("noacpi", opt_noacpi);
45 /* opt_nosmp: If true, secondary processors are ignored. */
46 static int opt_nosmp = 0;
47 boolean_param("nosmp", opt_nosmp);
49 /* opt_ignorebiostables: If true, ACPI and MP tables are ignored. */
50 /* NB. This flag implies 'nosmp' and 'noacpi'. */
51 static int opt_ignorebiostables = 0;
52 boolean_param("ignorebiostables", opt_ignorebiostables);
54 /* opt_watchdog: If true, run a watchdog NMI on each processor. */
55 static int opt_watchdog = 0;
56 boolean_param("watchdog", opt_watchdog);
58 int early_boot = 1;
60 unsigned long xenheap_phys_end;
62 extern void arch_init_memory(void);
63 extern void init_IRQ(void);
64 extern void trap_init(void);
65 extern void time_init(void);
66 extern void ac_timer_init(void);
67 extern void initialize_keytable();
68 extern int do_timer_lists_from_pit;
70 char ignore_irq13; /* set if exception 16 works */
71 struct cpuinfo_x86 boot_cpu_data = { 0, 0, 0, 0, -1 };
73 #if defined(__x86_64__)
74 unsigned long mmu_cr4_features = X86_CR4_PSE | X86_CR4_PGE | X86_CR4_PAE;
75 #else
76 unsigned long mmu_cr4_features = X86_CR4_PSE | X86_CR4_PGE;
77 #endif
78 EXPORT_SYMBOL(mmu_cr4_features);
80 unsigned long wait_init_idle;
82 struct exec_domain *idle_task[NR_CPUS] = { &idle0_exec_domain };
84 #ifdef CONFIG_ACPI_INTERPRETER
85 int acpi_disabled = 0;
86 #else
87 int acpi_disabled = 1;
88 #endif
89 EXPORT_SYMBOL(acpi_disabled);
91 int phys_proc_id[NR_CPUS];
92 int logical_proc_id[NR_CPUS];
94 /* Standard macro to see if a specific flag is changeable. */
95 static inline int flag_is_changeable_p(unsigned long flag)
96 {
97 unsigned long f1, f2;
99 asm("pushf\n\t"
100 "pushf\n\t"
101 "pop %0\n\t"
102 "mov %0,%1\n\t"
103 "xor %2,%0\n\t"
104 "push %0\n\t"
105 "popf\n\t"
106 "pushf\n\t"
107 "pop %0\n\t"
108 "popf\n\t"
109 : "=&r" (f1), "=&r" (f2)
110 : "ir" (flag));
112 return ((f1^f2) & flag) != 0;
113 }
115 /* Probe for the CPUID instruction */
116 static int __init have_cpuid_p(void)
117 {
118 return flag_is_changeable_p(X86_EFLAGS_ID);
119 }
121 void __init get_cpu_vendor(struct cpuinfo_x86 *c)
122 {
123 char *v = c->x86_vendor_id;
125 if (!strcmp(v, "GenuineIntel"))
126 c->x86_vendor = X86_VENDOR_INTEL;
127 else if (!strcmp(v, "AuthenticAMD"))
128 c->x86_vendor = X86_VENDOR_AMD;
129 else if (!strcmp(v, "CyrixInstead"))
130 c->x86_vendor = X86_VENDOR_CYRIX;
131 else if (!strcmp(v, "UMC UMC UMC "))
132 c->x86_vendor = X86_VENDOR_UMC;
133 else if (!strcmp(v, "CentaurHauls"))
134 c->x86_vendor = X86_VENDOR_CENTAUR;
135 else if (!strcmp(v, "NexGenDriven"))
136 c->x86_vendor = X86_VENDOR_NEXGEN;
137 else if (!strcmp(v, "RiseRiseRise"))
138 c->x86_vendor = X86_VENDOR_RISE;
139 else if (!strcmp(v, "GenuineTMx86") ||
140 !strcmp(v, "TransmetaCPU"))
141 c->x86_vendor = X86_VENDOR_TRANSMETA;
142 else
143 c->x86_vendor = X86_VENDOR_UNKNOWN;
144 }
146 static void __init init_intel(struct cpuinfo_x86 *c)
147 {
148 /* SEP CPUID bug: Pentium Pro reports SEP but doesn't have it */
149 if ( c->x86 == 6 && c->x86_model < 3 && c->x86_mask < 3 )
150 clear_bit(X86_FEATURE_SEP, &c->x86_capability);
152 #ifdef CONFIG_SMP
153 if ( test_bit(X86_FEATURE_HT, &c->x86_capability) )
154 {
155 u32 eax, ebx, ecx, edx;
156 int initial_apic_id, siblings, cpu = smp_processor_id();
158 cpuid(1, &eax, &ebx, &ecx, &edx);
159 ht_per_core = siblings = (ebx & 0xff0000) >> 16;
161 if ( opt_noht )
162 clear_bit(X86_FEATURE_HT, &c->x86_capability[0]);
164 if ( siblings <= 1 )
165 {
166 printk(KERN_INFO "CPU#%d: Hyper-Threading is disabled\n", cpu);
167 }
168 else if ( siblings > 2 )
169 {
170 panic("We don't support more than two logical CPUs per package!");
171 }
172 else
173 {
174 initial_apic_id = ebx >> 24 & 0xff;
175 phys_proc_id[cpu] = initial_apic_id >> 1;
176 logical_proc_id[cpu] = initial_apic_id & 1;
177 printk(KERN_INFO "CPU#%d: Physical ID: %d, Logical ID: %d\n",
178 cpu, phys_proc_id[cpu], logical_proc_id[cpu]);
179 }
180 }
181 #endif
183 #ifdef CONFIG_VMX
184 start_vmx();
185 #endif
187 }
189 static void __init init_amd(struct cpuinfo_x86 *c)
190 {
191 /* Bit 31 in normal CPUID used for nonstandard 3DNow ID;
192 3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway */
193 clear_bit(0*32+31, &c->x86_capability);
195 switch(c->x86)
196 {
197 case 5:
198 panic("AMD K6 is not supported.\n");
199 case 6: /* An Athlon/Duron. We can trust the BIOS probably */
200 break;
201 }
202 }
204 /*
205 * This does the hard work of actually picking apart the CPU stuff...
206 */
207 void __init identify_cpu(struct cpuinfo_x86 *c)
208 {
209 int junk, i, cpu = smp_processor_id();
210 u32 xlvl, tfms;
212 phys_proc_id[cpu] = cpu;
213 logical_proc_id[cpu] = 0;
215 c->x86_vendor = X86_VENDOR_UNKNOWN;
216 c->cpuid_level = -1; /* CPUID not detected */
217 c->x86_model = c->x86_mask = 0; /* So far unknown... */
218 c->x86_vendor_id[0] = '\0'; /* Unset */
219 memset(&c->x86_capability, 0, sizeof c->x86_capability);
221 if ( !have_cpuid_p() )
222 panic("Ancient processors not supported\n");
224 /* Get vendor name */
225 cpuid(0x00000000, &c->cpuid_level,
226 (int *)&c->x86_vendor_id[0],
227 (int *)&c->x86_vendor_id[8],
228 (int *)&c->x86_vendor_id[4]);
230 get_cpu_vendor(c);
232 if ( c->cpuid_level == 0 )
233 panic("Decrepit CPUID not supported\n");
235 cpuid(0x00000001, &tfms, &junk, &junk,
236 &c->x86_capability[0]);
237 c->x86 = (tfms >> 8) & 15;
238 c->x86_model = (tfms >> 4) & 15;
239 c->x86_mask = tfms & 15;
241 /* AMD-defined flags: level 0x80000001 */
242 xlvl = cpuid_eax(0x80000000);
243 if ( (xlvl & 0xffff0000) == 0x80000000 ) {
244 if ( xlvl >= 0x80000001 )
245 c->x86_capability[1] = cpuid_edx(0x80000001);
246 }
248 /* Transmeta-defined flags: level 0x80860001 */
249 xlvl = cpuid_eax(0x80860000);
250 if ( (xlvl & 0xffff0000) == 0x80860000 ) {
251 if ( xlvl >= 0x80860001 )
252 c->x86_capability[2] = cpuid_edx(0x80860001);
253 }
255 printk("CPU%d: Before vendor init, caps: %08x %08x %08x, vendor = %d\n",
256 smp_processor_id(),
257 c->x86_capability[0],
258 c->x86_capability[1],
259 c->x86_capability[2],
260 c->x86_vendor);
262 switch ( c->x86_vendor ) {
263 case X86_VENDOR_INTEL:
264 init_intel(c);
265 break;
266 case X86_VENDOR_AMD:
267 init_amd(c);
268 break;
269 case X86_VENDOR_UNKNOWN: /* Connectix Virtual PC reports this */
270 break;
271 case X86_VENDOR_CENTAUR:
272 break;
273 default:
274 printk("Unknown CPU identifier (%d): continuing anyway, "
275 "but might fail.\n", c->x86_vendor);
276 }
278 printk("CPU caps: %08x %08x %08x %08x\n",
279 c->x86_capability[0],
280 c->x86_capability[1],
281 c->x86_capability[2],
282 c->x86_capability[3]);
284 /*
285 * On SMP, boot_cpu_data holds the common feature set between
286 * all CPUs; so make sure that we indicate which features are
287 * common between the CPUs. The first time this routine gets
288 * executed, c == &boot_cpu_data.
289 */
290 if ( c != &boot_cpu_data ) {
291 /* AND the already accumulated flags with these */
292 for ( i = 0 ; i < NCAPINTS ; i++ )
293 boot_cpu_data.x86_capability[i] &= c->x86_capability[i];
294 }
295 }
298 unsigned long cpu_initialized;
299 void __init cpu_init(void)
300 {
301 extern void percpu_traps_init(void);
302 int nr = smp_processor_id();
303 struct tss_struct *t = &init_tss[nr];
305 if ( test_and_set_bit(nr, &cpu_initialized) )
306 panic("CPU#%d already initialized!!!\n", nr);
307 printk("Initializing CPU#%d\n", nr);
309 /* Set up GDT and IDT. */
310 SET_GDT_ENTRIES(current, DEFAULT_GDT_ENTRIES);
311 SET_GDT_ADDRESS(current, DEFAULT_GDT_ADDRESS);
312 __asm__ __volatile__ ( "lgdt %0" : "=m" (*current->mm.gdt) );
313 __asm__ __volatile__ ( "lidt %0" : "=m" (idt_descr) );
315 /* No nested task. */
316 __asm__ __volatile__ ( "pushf ; andw $0xbfff,(%"__OP"sp) ; popf" );
318 /* Ensure FPU gets initialised for each domain. */
319 stts();
321 /* Set up and load the per-CPU TSS and LDT. */
322 t->bitmap = IOBMP_INVALID_OFFSET;
323 memset(t->io_bitmap, ~0, sizeof(t->io_bitmap));
324 #if defined(__i386__)
325 t->ss0 = __HYPERVISOR_DS;
326 t->esp0 = get_stack_top();
327 #elif defined(__x86_64__)
328 t->rsp0 = get_stack_top();
329 #endif
330 set_tss_desc(nr,t);
331 load_TR(nr);
332 __asm__ __volatile__ ( "lldt %%ax" : : "a" (0) );
334 /* Clear all 6 debug registers. */
335 #define CD(register) __asm__ ( "mov %0,%%db" #register : : "r" (0UL) );
336 CD(0); CD(1); CD(2); CD(3); /* no db4 and db5 */; CD(6); CD(7);
337 #undef CD
339 percpu_traps_init();
341 /* Install correct page table. */
342 write_ptbase(&current->mm);
344 init_idle_task();
345 }
347 static void __init do_initcalls(void)
348 {
349 initcall_t *call;
350 for ( call = &__initcall_start; call < &__initcall_end; call++ )
351 (*call)();
352 }
354 unsigned long pci_mem_start = 0x10000000;
356 static void __init start_of_day(void)
357 {
358 unsigned long low_mem_size;
360 #ifdef MEMORY_GUARD
361 /* Unmap the first page of CPU0's stack. */
362 extern unsigned long cpu0_stack[];
363 memguard_guard_range(cpu0_stack, PAGE_SIZE);
364 #endif
366 open_softirq(NEW_TLBFLUSH_CLOCK_PERIOD_SOFTIRQ, new_tlbflush_clock_period);
368 if ( opt_watchdog )
369 nmi_watchdog = NMI_LOCAL_APIC;
371 sort_exception_tables();
373 arch_do_createdomain(current);
375 /* Tell the PCI layer not to allocate too close to the RAM area.. */
376 low_mem_size = ((max_page << PAGE_SHIFT) + 0xfffff) & ~0xfffff;
377 if ( low_mem_size > pci_mem_start ) pci_mem_start = low_mem_size;
379 identify_cpu(&boot_cpu_data); /* get CPU type info */
380 if ( cpu_has_fxsr ) set_in_cr4(X86_CR4_OSFXSR);
381 if ( cpu_has_xmm ) set_in_cr4(X86_CR4_OSXMMEXCPT);
382 #ifdef CONFIG_SMP
383 if ( opt_ignorebiostables )
384 {
385 opt_nosmp = 1; /* No SMP without configuration */
386 opt_noacpi = 1; /* ACPI will just confuse matters also */
387 }
388 else
389 {
390 find_smp_config();
391 smp_alloc_memory(); /* trampoline which other CPUs jump at */
392 }
393 #endif
394 paging_init(); /* not much here now, but sets up fixmap */
395 if ( !opt_noacpi )
396 acpi_boot_init();
397 #ifdef CONFIG_SMP
398 if ( smp_found_config )
399 get_smp_config();
400 #endif
401 scheduler_init();
402 init_IRQ(); /* installs simple interrupt wrappers. Starts HZ clock. */
403 trap_init();
404 time_init(); /* installs software handler for HZ clock. */
405 init_apic_mappings(); /* make APICs addressable in our pagetables. */
407 arch_init_memory();
409 #ifndef CONFIG_SMP
410 APIC_init_uniprocessor();
411 #else
412 if ( opt_nosmp )
413 APIC_init_uniprocessor();
414 else
415 smp_boot_cpus();
416 /*
417 * Does loads of stuff, including kicking the local
418 * APIC, and the IO APIC after other CPUs are booted.
419 * Each IRQ is preferably handled by IO-APIC, but
420 * fall thru to 8259A if we have to (but slower).
421 */
422 #endif
424 __sti();
426 initialize_keytable(); /* call back handling for key codes */
428 serial_init_stage2();
430 #ifdef XEN_DEBUGGER
431 initialize_pdb(); /* pervasive debugger */
432 #endif
434 if ( !cpu_has_apic )
435 {
436 do_timer_lists_from_pit = 1;
437 if ( smp_num_cpus != 1 )
438 panic("We need local APICs on SMP machines!");
439 }
441 ac_timer_init(); /* init accurate timers */
442 init_xen_time(); /* initialise the time */
443 schedulers_start(); /* start scheduler for each CPU */
445 check_nmi_watchdog();
447 #ifdef CONFIG_PCI
448 pci_init();
449 #endif
450 do_initcalls();
452 #ifdef CONFIG_SMP
453 wait_init_idle = cpu_online_map;
454 clear_bit(smp_processor_id(), &wait_init_idle);
455 smp_threads_ready = 1;
456 smp_commence(); /* Tell other CPUs that state of the world is stable. */
457 while ( wait_init_idle != 0 )
458 {
459 cpu_relax();
460 barrier();
461 }
462 #endif
464 watchdog_on = 1;
465 #ifdef __x86_64__ /* x86_32 uses low mappings when building DOM0. */
466 zap_low_mappings();
467 #endif
468 }
470 void __init __start_xen(multiboot_info_t *mbi)
471 {
472 unsigned char *cmdline;
473 module_t *mod = (module_t *)__va(mbi->mods_addr);
474 void *heap_start;
475 unsigned long firsthole_start, nr_pages;
476 unsigned long dom0_memory_start, dom0_memory_end;
477 unsigned long initial_images_start, initial_images_end;
478 struct e820entry e820_raw[E820MAX];
479 int i, e820_raw_nr = 0, bytes = 0;
481 /* Parse the command-line options. */
482 if ( (mbi->flags & MBI_CMDLINE) && (mbi->cmdline != 0) )
483 cmdline_parse(__va(mbi->cmdline));
485 /* Must do this early -- e.g., spinlocks rely on get_current(). */
486 set_current(&idle0_exec_domain);
488 /* We initialise the serial devices very early so we can get debugging. */
489 serial_init_stage1();
491 init_console();
493 /* Check that we have at least one Multiboot module. */
494 if ( !(mbi->flags & MBI_MODULES) || (mbi->mods_count == 0) )
495 {
496 printk("FATAL ERROR: Require at least one Multiboot module.\n");
497 for ( ; ; ) ;
498 }
500 xenheap_phys_end = opt_xenheap_megabytes << 20;
502 if ( mbi->flags & MBI_MEMMAP )
503 {
504 while ( bytes < mbi->mmap_length )
505 {
506 memory_map_t *map = __va(mbi->mmap_addr + bytes);
507 e820_raw[e820_raw_nr].addr =
508 ((u64)map->base_addr_high << 32) | (u64)map->base_addr_low;
509 e820_raw[e820_raw_nr].size =
510 ((u64)map->length_high << 32) | (u64)map->length_low;
511 e820_raw[e820_raw_nr].type =
512 (map->type > E820_SHARED_PAGE) ? E820_RESERVED : map->type;
513 e820_raw_nr++;
514 bytes += map->size + 4;
515 }
516 }
517 else if ( mbi->flags & MBI_MEMLIMITS )
518 {
519 e820_raw[0].addr = 0;
520 e820_raw[0].size = mbi->mem_lower << 10;
521 e820_raw[0].type = E820_RAM;
522 e820_raw[1].addr = 0x100000;
523 e820_raw[1].size = mbi->mem_upper << 10;
524 e820_raw[1].type = E820_RAM;
525 e820_raw_nr = 2;
526 }
527 else
528 {
529 printk("FATAL ERROR: Bootloader provided no memory information.\n");
530 for ( ; ; ) ;
531 }
533 max_page = init_e820(e820_raw, e820_raw_nr);
535 /* Find the first high-memory RAM hole. */
536 for ( i = 0; i < e820.nr_map; i++ )
537 if ( (e820.map[i].type == E820_RAM) &&
538 (e820.map[i].addr >= 0x100000) )
539 break;
540 firsthole_start = e820.map[i].addr + e820.map[i].size;
542 /* Relocate the Multiboot modules. */
543 initial_images_start = xenheap_phys_end;
544 initial_images_end = initial_images_start +
545 (mod[mbi->mods_count-1].mod_end - mod[0].mod_start);
546 if ( initial_images_end > firsthole_start )
547 {
548 printk("Not enough memory to stash the DOM0 kernel image.\n");
549 for ( ; ; ) ;
550 }
551 #if defined(__i386__)
552 memmove((void *)initial_images_start, /* use low mapping */
553 (void *)mod[0].mod_start, /* use low mapping */
554 mod[mbi->mods_count-1].mod_end - mod[0].mod_start);
555 #elif defined(__x86_64__)
556 memmove(__va(initial_images_start),
557 __va(mod[0].mod_start),
558 mod[mbi->mods_count-1].mod_end - mod[0].mod_start);
559 #endif
561 /* Initialise boot-time allocator with all RAM situated after modules. */
562 heap_start = memguard_init(&_end);
563 heap_start = __va(init_boot_allocator(__pa(heap_start)));
564 nr_pages = 0;
565 for ( i = 0; i < e820.nr_map; i++ )
566 {
567 if ( e820.map[i].type != E820_RAM )
568 continue;
569 nr_pages += e820.map[i].size >> PAGE_SHIFT;
570 if ( (e820.map[i].addr + e820.map[i].size) >= initial_images_end )
571 init_boot_pages((e820.map[i].addr < initial_images_end) ?
572 initial_images_end : e820.map[i].addr,
573 e820.map[i].addr + e820.map[i].size);
574 }
576 printk("System RAM: %luMB (%lukB)\n",
577 nr_pages >> (20 - PAGE_SHIFT),
578 nr_pages << (PAGE_SHIFT - 10));
580 /* Allocate an aligned chunk of RAM for DOM0. */
581 dom0_memory_start = alloc_boot_pages(opt_dom0_mem << 10, 4UL << 20);
582 dom0_memory_end = dom0_memory_start + (opt_dom0_mem << 10);
583 if ( dom0_memory_start == 0 )
584 {
585 printk("Not enough memory for DOM0 memory reservation.\n");
586 for ( ; ; ) ;
587 }
589 init_frametable();
591 end_boot_allocator();
593 init_xenheap_pages(__pa(heap_start), xenheap_phys_end);
594 printk("Xen heap: %luMB (%lukB)\n",
595 (xenheap_phys_end-__pa(heap_start)) >> 20,
596 (xenheap_phys_end-__pa(heap_start)) >> 10);
598 early_boot = 0;
600 /* Initialise the slab allocator. */
601 xmem_cache_init();
602 xmem_cache_sizes_init(max_page);
604 start_of_day();
606 grant_table_init();
608 shadow_mode_init();
610 /* Create initial domain 0. */
611 dom0 = do_createdomain(0, 0);
612 if ( dom0 == NULL )
613 panic("Error creating domain 0\n");
615 set_bit(DF_PRIVILEGED, &dom0->d_flags);
617 /* Grab the DOM0 command line. Skip past the image name. */
618 cmdline = (unsigned char *)(mod[0].string ? __va(mod[0].string) : NULL);
619 if ( cmdline != NULL )
620 {
621 while ( *cmdline == ' ' ) cmdline++;
622 if ( (cmdline = strchr(cmdline, ' ')) != NULL )
623 while ( *cmdline == ' ' ) cmdline++;
624 }
626 /*
627 * We're going to setup domain0 using the module(s) that we stashed safely
628 * above our heap. The second module, if present, is an initrd ramdisk.
629 */
630 if ( construct_dom0(dom0, dom0_memory_start, dom0_memory_end,
631 initial_images_start,
632 mod[0].mod_end-mod[0].mod_start,
633 (mbi->mods_count == 1) ? 0 :
634 initial_images_start +
635 (mod[1].mod_start-mod[0].mod_start),
636 (mbi->mods_count == 1) ? 0 :
637 mod[mbi->mods_count-1].mod_end - mod[1].mod_start,
638 cmdline) != 0)
639 panic("Could not set up DOM0 guest OS\n");
641 /* The stash space for the initial kernel image can now be freed up. */
642 init_domheap_pages(initial_images_start, initial_images_end);
644 scrub_heap_pages();
646 init_trace_bufs();
648 /* Give up the VGA console if DOM0 is configured to grab it. */
649 console_endboot(cmdline && strstr(cmdline, "tty0"));
651 domain_unpause_by_systemcontroller(current->domain);
652 domain_unpause_by_systemcontroller(dom0);
653 startup_cpu_idle_loop();
654 }