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:
Xiangyang Wu
2018-11-05 13:25:25 +08:00
committed by lijinxia
parent 969f7cf071
commit fa26a16645
49 changed files with 355 additions and 355 deletions

View File

@@ -54,7 +54,7 @@ static const char *const excp_names[32] = {
*/
struct intr_excp_ctx *crash_ctx;
static void dump_guest_reg(struct vcpu *vcpu)
static void dump_guest_reg(struct acrn_vcpu *vcpu)
{
printf("\n\n================================================");
printf("================================\n\n");
@@ -101,7 +101,7 @@ static void dump_guest_reg(struct vcpu *vcpu)
printf("\r\n");
}
static void dump_guest_stack(struct vcpu *vcpu)
static void dump_guest_stack(struct acrn_vcpu *vcpu)
{
uint32_t i;
uint64_t tmp[DUMP_STACK_SIZE], fault_addr;
@@ -126,7 +126,7 @@ static void dump_guest_stack(struct vcpu *vcpu)
printf("\r\n");
}
static void show_guest_call_trace(struct vcpu *vcpu)
static void show_guest_call_trace(struct acrn_vcpu *vcpu)
{
uint64_t bp;
uint64_t count = 0UL;
@@ -170,7 +170,7 @@ static void show_guest_call_trace(struct vcpu *vcpu)
static void dump_guest_context(uint16_t pcpu_id)
{
struct vcpu *vcpu;
struct acrn_vcpu *vcpu;
vcpu = per_cpu(vcpu, pcpu_id);
if (vcpu != NULL) {

View File

@@ -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++;

View File

@@ -569,7 +569,7 @@ static int shell_list_vcpu(__unused int argc, __unused char **argv)
{
char temp_str[MAX_STR_SIZE];
struct vm *vm;
struct vcpu *vcpu;
struct acrn_vcpu *vcpu;
char state[32];
uint16_t i;
uint16_t idx;
@@ -624,7 +624,7 @@ static int shell_vcpu_dumpreg(int argc, char **argv)
uint16_t vm_id;
uint16_t vcpu_id;
struct vm *vm;
struct vcpu *vcpu;
struct acrn_vcpu *vcpu;
uint64_t mask = 0UL;
struct vcpu_dump dump;