Skip to content

Commit ef974d1

Browse files
mingqiangchilijinxia
authored andcommitted
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>
1 parent 0fc47b5 commit ef974d1

File tree

1 file changed

+1
-1
lines changed
  • hypervisor/arch/x86/guest

1 file changed

+1
-1
lines changed

hypervisor/arch/x86/guest/vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int create_vm(struct vm_description *vm_desc, struct acrn_vm **rtn_vm)
8282
#endif
8383
/* Init mmio list */
8484
INIT_LIST_HEAD(&vm->mmio_list);
85-
atomic_store16(&vm->hw.created_vcpus, 0U);
85+
vm->hw.created_vcpus = 0U;
8686

8787
/* gpa_lowtop are used for system start up */
8888
vm->hw.gpa_lowtop = 0UL;

0 commit comments

Comments
 (0)