mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
HV:treewide:transfer the struct member types to non-basic types
The struct member types should be transfer to non-basic types, chaned it to length-prefix(uint32_t,int32_t ...) type. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -115,11 +115,11 @@ int create_vcpu(uint16_t cpu_id, struct vm *vm, struct vcpu **rtn_vcpu_handle)
|
||||
*rtn_vcpu_handle = vcpu;
|
||||
|
||||
vcpu->launched = false;
|
||||
vcpu->paused_cnt = 0;
|
||||
vcpu->paused_cnt = 0U;
|
||||
vcpu->running = 0;
|
||||
vcpu->ioreq_pending = 0;
|
||||
vcpu->arch_vcpu.nr_sipi = 0;
|
||||
vcpu->pending_pre_work = 0;
|
||||
vcpu->pending_pre_work = 0U;
|
||||
vcpu->state = VCPU_INIT;
|
||||
|
||||
return 0;
|
||||
@@ -273,11 +273,11 @@ void reset_vcpu(struct vcpu *vcpu)
|
||||
vcpu->state = VCPU_INIT;
|
||||
|
||||
vcpu->launched = false;
|
||||
vcpu->paused_cnt = 0;
|
||||
vcpu->paused_cnt = 0U;
|
||||
vcpu->running = 0;
|
||||
vcpu->ioreq_pending = 0;
|
||||
vcpu->arch_vcpu.nr_sipi = 0;
|
||||
vcpu->pending_pre_work = 0;
|
||||
vcpu->pending_pre_work = 0U;
|
||||
|
||||
vcpu->arch_vcpu.exception_info.exception = VECTOR_INVALID;
|
||||
vcpu->arch_vcpu.cur_context = NORMAL_WORLD;
|
||||
|
Reference in New Issue
Block a user