From 3ae95436c1caa8b15ae3b7fa74d42bff732f212e Mon Sep 17 00:00:00 2001 From: Victor Sun Date: Sun, 16 Jul 2023 22:10:53 +0800 Subject: [PATCH] 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 Signed-off-by: Victor Sun Reviewed-by: Junjie Mao --- hypervisor/boot/guest/vboot_info.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hypervisor/boot/guest/vboot_info.c b/hypervisor/boot/guest/vboot_info.c index ac19abea6c..6f9abc0f9c 100644 --- a/hypervisor/boot/guest/vboot_info.c +++ b/hypervisor/boot/guest/vboot_info.c @@ -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) {