mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 12:19:06 +00:00
HV:treewide:rename vm data structure
For data structure types "struct vm", 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 vm *vm-->struct acrn_vm *vm Tracked-On: #861 Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
This commit is contained in:
@@ -22,7 +22,7 @@ static inline void profiling_vmexit_handler(__unused struct acrn_vcpu *vcpu,
|
||||
__unused uint64_t exit_reason) {}
|
||||
static inline void profiling_setup(void) {}
|
||||
|
||||
static inline int32_t hcall_profiling_ops(__unused struct vm *vm,
|
||||
static inline int32_t hcall_profiling_ops(__unused struct acrn_vm *vm,
|
||||
__unused uint64_t cmd, __unused uint64_t param)
|
||||
{
|
||||
return -ENODEV;
|
||||
|
@@ -292,14 +292,14 @@ struct profiling_info_wrapper {
|
||||
struct sw_msr_op_info sw_msr_op_info;
|
||||
} __aligned(8);
|
||||
|
||||
int32_t profiling_get_version_info(struct vm *vm, uint64_t addr);
|
||||
int32_t profiling_get_pcpu_id(struct vm *vm, uint64_t addr);
|
||||
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);
|
||||
int32_t profiling_get_control(struct vm *vm, uint64_t addr);
|
||||
int32_t profiling_set_control(struct vm *vm, uint64_t addr);
|
||||
int32_t profiling_configure_pmi(struct vm *vm, uint64_t addr);
|
||||
int32_t profiling_configure_vmsw(struct vm *vm, uint64_t addr);
|
||||
int32_t profiling_get_version_info(struct acrn_vm *vm, uint64_t addr);
|
||||
int32_t profiling_get_pcpu_id(struct acrn_vm *vm, uint64_t addr);
|
||||
int32_t profiling_msr_ops_all_cpus(struct acrn_vm *vm, uint64_t addr);
|
||||
int32_t profiling_vm_list_info(struct acrn_vm *vm, uint64_t addr);
|
||||
int32_t profiling_get_control(struct acrn_vm *vm, uint64_t addr);
|
||||
int32_t profiling_set_control(struct acrn_vm *vm, uint64_t addr);
|
||||
int32_t profiling_configure_pmi(struct acrn_vm *vm, uint64_t addr);
|
||||
int32_t profiling_configure_vmsw(struct acrn_vm *vm, uint64_t addr);
|
||||
void profiling_ipi_handler(void *data);
|
||||
|
||||
#endif
|
||||
|
@@ -62,7 +62,7 @@ struct acrn_vuart {
|
||||
#endif
|
||||
bool thre_int_pending; /* THRE interrupt pending */
|
||||
bool active;
|
||||
struct vm *vm;
|
||||
struct acrn_vm *vm;
|
||||
spinlock_t lock; /* protects all softc elements */
|
||||
};
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
@@ -70,13 +70,13 @@ extern int8_t vuart_vmid;
|
||||
#endif
|
||||
#ifdef HV_DEBUG
|
||||
#define COM1_IRQ 6U
|
||||
void vuart_init(struct vm *vm);
|
||||
void vuart_init(struct acrn_vm *vm);
|
||||
struct acrn_vuart *vuart_console_active(void);
|
||||
void vuart_console_tx_chars(struct acrn_vuart *vu);
|
||||
void vuart_console_rx_chars(struct acrn_vuart *vu);
|
||||
#else
|
||||
#define COM1_IRQ 0xFFU
|
||||
static inline void vuart_init(__unused struct vm *vm)
|
||||
static inline void vuart_init(__unused struct acrn_vm *vm)
|
||||
{
|
||||
}
|
||||
static inline struct acrn_vuart *vuart_console_active(void)
|
||||
|
Reference in New Issue
Block a user