mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
hv:cleanup vcpu_id compare with phys_cpu_num
Currently we compare vcpu_id with phys_cpu_num, vcpu_id is not related with phys_cpu_num, this patch cleanup them. Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
Xie, Nanlin
parent
3eb45b9bf6
commit
4afb6666b9
@@ -406,7 +406,7 @@ int prepare_vm0(void)
|
||||
}
|
||||
|
||||
/* Allocate all cpus to vm0 at the beginning */
|
||||
for (i = 0U; i < phys_cpu_num; i++) {
|
||||
for (i = 0U; i < vm0_desc.vm_hw_num_cores; i++) {
|
||||
err = prepare_vcpu(vm, i);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user