X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm.c;h=8e45d5b86a8c0de21f595af9d182d6d8087afd2c;hb=d25220596e7ceb6b06a4b715f722a47afd8b48bb;hp=dae7d34f4fe1148383b86c7bd253c7cae283fd84;hpb=9f049c5f96785b6aa3e284a244235712c4047c1b;p=palacios.git diff --git a/palacios/src/palacios/vmm.c b/palacios/src/palacios/vmm.c index dae7d34..8e45d5b 100644 --- a/palacios/src/palacios/vmm.c +++ b/palacios/src/palacios/vmm.c @@ -63,7 +63,7 @@ static void init_cpu(void * arg) { } else #endif { - PrintError("CPU has no virtualization Extensions\n"); + PrintError("CPU has no virtualizationExtensions\n"); } } @@ -156,7 +156,7 @@ static int start_core(void *p) break; #endif default: - PrintError("Attemping to enter a guest on an invalid CPU\n"); + PrintError("Attempting to enter a guest on an invalid CPU\n"); return -1; } // should not happen @@ -203,6 +203,9 @@ int v3_start_vm(struct v3_vm_info * vm, unsigned int cpu_mask) { proc_to_use=get_next_core(cpu_mask,last_proc); last_proc=proc_to_use; + // vm->cores[i].cpu_id=i; + // vm->cores[i].physical_cpu_id=proc_to_use; + PrintDebug("Starting virtual core %u on logical core %u\n",i,proc_to_use); sprintf(tname,"core%u",i); @@ -217,6 +220,9 @@ int v3_start_vm(struct v3_vm_info * vm, unsigned int cpu_mask) { } } + // vm->cores[0].cpu_id=0; + // vm->cores[0].physical_cpu_id=0; + // Finally launch the BSP on core 0 sprintf(tname,"core%u",0); if (!os_hooks->start_thread_on_cpu(0,start_core,&(vm->cores[0]),tname)) {