mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
HV:treewide:rename vcpu_arch data structure
For data structure types "struct vcpu_arch", its name shall follow Naming convention. Naming convention rule:If the data structure type is used by multi modules, its corresponding logic resource is exposed to external components (such as SOS, UOS), and its name meaning is simplistic (such as vcpu, vm), its name needs prefix "acrn_". Variable name can be shortened from its data structure type name. The following udpates are made: struct vcpu_arch arch_vcpu-->struct acrn_vcpu_arch arch Tracked-On: #861 Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
int32_t hcall_world_switch(struct acrn_vcpu *vcpu)
|
||||
{
|
||||
int32_t next_world_id = !(vcpu->arch_vcpu.cur_context);
|
||||
int32_t next_world_id = !(vcpu->arch.cur_context);
|
||||
|
||||
if (next_world_id >= NR_WORLD) {
|
||||
dev_dbg(ACRN_DBG_TRUSTY_HYCALL,
|
||||
@@ -56,7 +56,7 @@ int32_t hcall_initialize_trusty(struct acrn_vcpu *vcpu, uint64_t param)
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
if (vcpu->arch_vcpu.cur_context != NORMAL_WORLD) {
|
||||
if (vcpu->arch.cur_context != NORMAL_WORLD) {
|
||||
dev_dbg(ACRN_DBG_TRUSTY_HYCALL,
|
||||
"%s, must initialize Trusty from Normal World!\n",
|
||||
__func__);
|
||||
|
||||
Reference in New Issue
Block a user