mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
HV:treewide:rename vcpu data structure
For data structure types "struct vcpu", its name is identical with variable name in the same scope. This is a MISRA C violation. 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_". The following udpates are made: struct vcpu *vcpu-->struct acrn_vcpu *vcpu Tracked-On: #861 Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
This commit is contained in:
@@ -842,7 +842,7 @@ int32_t profiling_msr_ops_all_cpus(struct vm *vm, uint64_t addr)
|
||||
int32_t profiling_vm_list_info(struct vm *vm, uint64_t addr)
|
||||
{
|
||||
struct vm *tmp_vm;
|
||||
struct vcpu *vcpu;
|
||||
struct acrn_vcpu *vcpu;
|
||||
int32_t vm_idx;
|
||||
uint16_t i, j;
|
||||
struct profiling_vm_info_list vm_info_list;
|
||||
@@ -1291,7 +1291,7 @@ void profiling_ipi_handler(__unused void *data)
|
||||
/*
|
||||
* Save the VCPU info on vmenter
|
||||
*/
|
||||
void profiling_vmenter_handler(__unused struct vcpu *vcpu)
|
||||
void profiling_vmenter_handler(__unused struct acrn_vcpu *vcpu)
|
||||
{
|
||||
if (((get_cpu_var(profiling_info.sep_state).pmu_state == PMU_RUNNING) &&
|
||||
((sep_collection_switch &
|
||||
@@ -1307,7 +1307,7 @@ void profiling_vmenter_handler(__unused struct vcpu *vcpu)
|
||||
/*
|
||||
* Save the VCPU info on vmexit
|
||||
*/
|
||||
void profiling_vmexit_handler(struct vcpu *vcpu, uint64_t exit_reason)
|
||||
void profiling_vmexit_handler(struct acrn_vcpu *vcpu, uint64_t exit_reason)
|
||||
{
|
||||
per_cpu(profiling_info.sep_state, vcpu->pcpu_id).total_vmexit_count++;
|
||||
|
||||
|
Reference in New Issue
Block a user