mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
HV: Parse SeedList HOB
Retrieve dseed from SeedList HOB(Hand-Off-Block). SBL passes SeedList HOB to ACRN by MBI modules. Signed-off-by: Qi Yadong <yadong.qi@intel.com> Reviewed-by: Zhu Bing <bing.zhu@intel.com> Reviewed-by: Wang Kai <kai.z.wang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <hypervisor.h>
|
||||
#include <multiboot.h>
|
||||
#include <zeropage.h>
|
||||
#include <hob_parse.h>
|
||||
|
||||
#define BOOT_ARGS_LOAD_ADDR 0x24EFC000
|
||||
|
||||
@@ -19,7 +20,7 @@
|
||||
*/
|
||||
static char kernel_cmdline[MEM_2K];
|
||||
|
||||
/*now modules support: FIRMWARE & RAMDISK */
|
||||
/* now modules support: FIRMWARE & RAMDISK & SeedList */
|
||||
static void parse_other_modules(struct vm *vm,
|
||||
struct multiboot_module *mods, int mods_count)
|
||||
{
|
||||
@@ -73,6 +74,8 @@ static void parse_other_modules(struct vm *vm,
|
||||
vm->sw.linux_info.ramdisk_src_addr = mod_addr;
|
||||
vm->sw.linux_info.ramdisk_load_addr = mod_addr;
|
||||
vm->sw.linux_info.ramdisk_size = mod_size;
|
||||
} else if (strncmp("SeedList", start, type_len) == 0) {
|
||||
parse_seed_list(mod_addr);
|
||||
} else {
|
||||
pr_warn("not support mod, cmd: %s", start);
|
||||
}
|
||||
|
Reference in New Issue
Block a user