X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm.c;h=bf338a1b7aa9953ff645ab2fa61b474464f1e11f;hb=a71f35bcb2dc587326be18345adb1ad1d81b9435;hp=7e08dd9ce9e30f4cab24d04077eaf4c09886b176;hpb=fe2922a2862b1a4f1fb340ab4649f831ac17719c;p=palacios-OLD.git diff --git a/palacios/src/palacios/vmm.c b/palacios/src/palacios/vmm.c index 7e08dd9..bf338a1 100644 --- a/palacios/src/palacios/vmm.c +++ b/palacios/src/palacios/vmm.c @@ -290,18 +290,19 @@ int v3_start_vm(struct v3_vm_info * vm, unsigned int cpu_mask) { i--; // We reset the logical core idx. Not strictly necessary I guess... } else { + + /* This assumes that the core 0 thread has been mapped to physical core 0 */ + if (i == V3_Get_CPU()) { + // We skip the local CPU because it is reserved for vcore 0 + continue; + } + core_idx = i; } major = core_idx / 8; minor = core_idx % 8; - /* This assumes that the core 0 thread has been mapped to physical core 0 */ - if (core_idx == V3_Get_CPU()) { - // We skip the local CPU because it is reserved for vcore 0 - continue; - } - if ((core_mask[major] & (0x1 << minor)) == 0) { PrintError("Logical CPU %d not available for virtual core %d; not started\n",