Skip to content

Commit

Permalink
HV: elf_loader: Make VM bootargs support elf guest
Browse files Browse the repository at this point in the history
Except Linux guest, elf guest also need support bootargs.
Currently VM bootargs support all type of guest.

Tracked-On: projectacrn#8642

Signed-off-by: Zhang Chen <[email protected]>
Signed-off-by: Victor Sun <[email protected]>
Reviewed-by: Junjie Mao <[email protected]>
  • Loading branch information
jsun26intel authored and zhangckid committed Jul 3, 2024
1 parent cc90135 commit 3ae9543
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hypervisor/boot/guest/vboot_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,8 @@ static int32_t init_vm_sw_load(struct acrn_vm *vm, const struct acrn_boot_info *
}

if (ret == 0) {
/* Currently VM bootargs only support Linux guest */
if (vm->sw.kernel_type == KERNEL_BZIMAGE) {
init_vm_bootargs_info(vm, abi);
}
init_vm_bootargs_info(vm, abi);

/* check whether there is a ramdisk module */
mod = get_mod_by_tag(abi, vm_config->os_config.ramdisk_mod_tag);
if (mod != NULL) {
Expand Down

0 comments on commit 3ae9543

Please sign in to comment.