hv:Remove atomic operation to set initial value for 'created_vcpu'
It is not necessary to use atomic operation to set the initial value for 'created_vcpu' in vm structure. Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
parent
0fc47b5a7c
commit
ef974d1adf
|
@ -82,7 +82,7 @@ int create_vm(struct vm_description *vm_desc, struct acrn_vm **rtn_vm)
|
||||||
#endif
|
#endif
|
||||||
/* Init mmio list */
|
/* Init mmio list */
|
||||||
INIT_LIST_HEAD(&vm->mmio_list);
|
INIT_LIST_HEAD(&vm->mmio_list);
|
||||||
atomic_store16(&vm->hw.created_vcpus, 0U);
|
vm->hw.created_vcpus = 0U;
|
||||||
|
|
||||||
/* gpa_lowtop are used for system start up */
|
/* gpa_lowtop are used for system start up */
|
||||||
vm->hw.gpa_lowtop = 0UL;
|
vm->hw.gpa_lowtop = 0UL;
|
||||||
|
|
Loading…
Reference in New Issue