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:
Xiangyang Wu
2018-11-05 13:27:01 +08:00
committed by lijinxia
parent fa26a16645
commit ace4f48c9a
16 changed files with 136 additions and 136 deletions

View File

@@ -176,7 +176,7 @@ struct cpu_context {
struct ext_context ext_ctx;
};
struct vcpu_arch {
struct acrn_vcpu_arch {
/* vmcs region for this vcpu, MUST be 4KB-aligned */
uint8_t vmcs[CPU_PAGE_SIZE];
/* per vcpu lapic */
@@ -222,7 +222,7 @@ struct vcpu_arch {
struct vm;
struct acrn_vcpu {
/* Architecture specific definitions for this VCPU */
struct vcpu_arch arch_vcpu;
struct acrn_vcpu_arch arch;
uint16_t pcpu_id; /* Physical CPU ID of this VCPU */
uint16_t vcpu_id; /* virtual identifier for VCPU */
struct vm *vm; /* Reference to the VM this VCPU belongs to */
@@ -272,13 +272,13 @@ static inline bool is_vcpu_bsp(const struct acrn_vcpu *vcpu)
/* do not update Guest RIP for next VM Enter */
static inline void vcpu_retain_rip(struct acrn_vcpu *vcpu)
{
(vcpu)->arch_vcpu.inst_len = 0U;
(vcpu)->arch.inst_len = 0U;
}
static inline struct acrn_vlapic *
vcpu_vlapic(struct acrn_vcpu *vcpu)
{
return &(vcpu->arch_vcpu.vlapic);
return &(vcpu->arch.vlapic);
}
/* External Interfaces */

View File

@@ -468,7 +468,7 @@ void switch_apicv_mode_x2apic(struct acrn_vcpu *vcpu);
static inline enum vm_cpu_mode get_vcpu_mode(const struct acrn_vcpu *vcpu)
{
return vcpu->arch_vcpu.cpu_mode;
return vcpu->arch.cpu_mode;
}
static inline bool cpu_has_vmx_unrestricted_guest_cap(void)