HV: elf_loader: Make VM bootargs support elf guest

Except Linux guest, elf guest also need support bootargs.
Currently VM bootargs support all type of guest.

Tracked-On: #8642

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Victor Sun <victor.sun@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Victor Sun 2023-07-16 22:10:53 +08:00 committed by acrnsi-robot
parent 529ade37a4
commit 49a02f599b
1 changed files with 2 additions and 4 deletions

View File

@ -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);
}
/* check whether there is a ramdisk module */
mod = get_mod_by_tag(abi, vm_config->os_config.ramdisk_mod_tag);
if (mod != NULL) {