to support firmware & ramdisk as multiboot mods

1. refine multiboot related code, move to /boot.
2. firmware files and ramdisk can be stitched in iasImage;
and they will be loaded as multiboot modules.

Signed-off-by: Minggui Cao <minggui.cao@intel.com>
This commit is contained in:
Minggui Cao
2018-03-01 20:24:28 +08:00
committed by Jack Ren
parent 35f5eef658
commit 119b038551
6 changed files with 161 additions and 54 deletions

View File

@@ -82,7 +82,6 @@ struct vm_lu_mem_map {
bool is_vm0(struct vm *vm);
bool vm_lapic_disabled(struct vm *vm);
uint64_t vcpumask2pcpumask(struct vm *vm, uint64_t vdmask);
int init_vm0_boot_info(struct vm *vm);
uint64_t gva2gpa(struct vm *vm, uint64_t cr3, uint64_t gva);

View File

@@ -101,5 +101,6 @@ struct multiboot_module {
};
int parse_hv_cmdline(void);
int init_vm0_boot_info(struct vm *vm);
#endif