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:
Mingqiang Chi 2018-11-06 11:18:43 +08:00 committed by lijinxia
parent 0fc47b5a7c
commit ef974d1adf
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ int create_vm(struct vm_description *vm_desc, struct acrn_vm **rtn_vm)
#endif
/* Init 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 */
vm->hw.gpa_lowtop = 0UL;