mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-14 13:30:01 +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:
@@ -105,7 +105,7 @@ fail:
|
||||
* return value:
|
||||
* true if parse successfully, otherwise false.
|
||||
*/
|
||||
bool abl_seed_parse(struct vm *vm, char *cmdline, char *out_arg, uint32_t out_len)
|
||||
bool abl_seed_parse(struct acrn_vm *vm, char *cmdline, char *out_arg, uint32_t out_len)
|
||||
{
|
||||
char *arg, *arg_end;
|
||||
char *param;
|
||||
|
@@ -17,7 +17,7 @@
|
||||
#define MAX_BOOT_PARAMS_LEN 64U
|
||||
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
int init_vm_boot_info(struct vm *vm)
|
||||
int init_vm_boot_info(struct acrn_vm *vm)
|
||||
{
|
||||
struct multiboot_module *mods = NULL;
|
||||
struct multiboot_info *mbi = NULL;
|
||||
@@ -72,7 +72,7 @@ int init_vm_boot_info(struct vm *vm)
|
||||
static char kernel_cmdline[MEM_2K];
|
||||
|
||||
/* now modules support: FIRMWARE & RAMDISK & SeedList */
|
||||
static void parse_other_modules(struct vm *vm,
|
||||
static void parse_other_modules(struct acrn_vm *vm,
|
||||
const struct multiboot_module *mods, uint32_t mods_count)
|
||||
{
|
||||
uint32_t i;
|
||||
@@ -164,7 +164,7 @@ static void *get_kernel_load_addr(void *kernel_src_addr)
|
||||
* @pre vm != NULL
|
||||
* @pre is_vm0(vm) == true
|
||||
*/
|
||||
int init_vm_boot_info(struct vm *vm)
|
||||
int init_vm_boot_info(struct acrn_vm *vm)
|
||||
{
|
||||
struct multiboot_module *mods = NULL;
|
||||
struct multiboot_info *mbi = NULL;
|
||||
|
@@ -132,7 +132,7 @@ fail:
|
||||
* return value:
|
||||
* true if parse successfully, otherwise false.
|
||||
*/
|
||||
bool sbl_seed_parse(struct vm *vm, char *cmdline, char *out_arg, uint32_t out_len)
|
||||
bool sbl_seed_parse(struct acrn_vm *vm, char *cmdline, char *out_arg, uint32_t out_len)
|
||||
{
|
||||
char *arg, *arg_end;
|
||||
char *param;
|
||||
|
Reference in New Issue
Block a user