mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
HV: remove cpu_num from vm configurations
The vcpu num could be calculated based on pcpu_bitmap when prepare_vcpu() is done, so remove this redundant configuration item; Tracked-On: #3214 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
f4e976ab38
commit
50e09c41b4
@@ -98,7 +98,7 @@ int32_t mptable_build(struct acrn_vm *vm)
|
||||
|
||||
vm_config = get_vm_config(vm->vm_id);
|
||||
mptable = &vm_mptables[vm->vm_id];
|
||||
vcpu_num = vm_config->cpu_num;
|
||||
vcpu_num = vm->hw.created_vcpus;
|
||||
pcpu_bitmap = vm_config->pcpu_bitmap;
|
||||
(void *)memcpy_s((void *)mptable, sizeof(struct mptable_info),
|
||||
(const void *)&mptable_template, sizeof(struct mptable_info));
|
||||
|
Reference in New Issue
Block a user