mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 17:46:15 +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:
@@ -8,14 +8,14 @@
|
||||
#define VMEXIT_H_
|
||||
|
||||
struct vm_exit_dispatch {
|
||||
int (*handler)(struct vcpu *);
|
||||
int (*handler)(struct acrn_vcpu *);
|
||||
uint32_t need_exit_qualification;
|
||||
};
|
||||
|
||||
int vmexit_handler(struct vcpu *vcpu);
|
||||
int vmcall_vmexit_handler(struct vcpu *vcpu);
|
||||
int cpuid_vmexit_handler(struct vcpu *vcpu);
|
||||
int cr_access_vmexit_handler(struct vcpu *vcpu);
|
||||
int vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
int vmcall_vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
int cpuid_vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
int cr_access_vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
extern void vm_exit(void);
|
||||
static inline uint64_t
|
||||
vm_exit_qualification_bit_mask(uint64_t exit_qual, uint32_t msb, uint32_t lsb)
|
||||
|
||||
Reference in New Issue
Block a user