mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 04:09:11 +00:00
hv: Partition mode ACRN -kernel load and bootargs load address
For Partition mode ACRN, kernel load address and Boot args load address are hardcoded. Boot args are currently passed from vm description for each VM. Renamed init_vm0_boot_info to init_vm_boot_info. Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
committed by
lijinxia
parent
4e99afcc2f
commit
9e02ef54c7
@@ -62,6 +62,9 @@ static void init_vm(struct vm_description *vm_desc,
|
||||
#else
|
||||
vm_handle->hw.num_vcpus = vm_desc->vm_hw_num_cores;
|
||||
#endif
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
vm_handle->vm_desc = vm_desc;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* return a pointer to the virtual machine structure associated with
|
||||
@@ -155,7 +158,7 @@ int create_vm(struct vm_description *vm_desc, struct vm **rtn_vm)
|
||||
goto err;
|
||||
}
|
||||
#ifndef CONFIG_EFI_STUB
|
||||
status = init_vm0_boot_info(vm);
|
||||
status = init_vm_boot_info(vm);
|
||||
if (status != 0) {
|
||||
goto err;
|
||||
}
|
||||
@@ -170,6 +173,7 @@ int create_vm(struct vm_description *vm_desc, struct vm **rtn_vm)
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
ept_mr_add(vm, vm_desc->start_hpa,
|
||||
0UL, vm_desc->mem_size, EPT_RWX|EPT_WB);
|
||||
init_vm_boot_info(vm);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user