mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
HV: add hv cmdline support for multiboot2
The multiboot2 cmdline would be used as hypervisor cmdline, add parse logic for the case that hypervisor boot from multiboot2 protocol. Tracked-On: #4885 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -73,6 +73,11 @@ static inline bool boot_from_multiboot2(void)
|
||||
int32_t multiboot2_to_acrn_mbi(struct acrn_multiboot_info *mbi, void *mb2_info);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The extern declaration for acrn_mbi is for cmdline.c use only, other functions should use
|
||||
* get_multiboot_info() API to access struct acrn_mbi because it has explict @post condition
|
||||
*/
|
||||
extern struct acrn_multiboot_info acrn_mbi;
|
||||
struct acrn_multiboot_info *get_multiboot_info(void);
|
||||
void init_acrn_multiboot_info(void);
|
||||
int32_t sanitize_multiboot_info(void);
|
||||
|
Reference in New Issue
Block a user