mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
HV: enable load zephyr kernel
Zephyr kernel is stripped ram image, its entry and load address are explicitly defined in vm configurations, hypervisor will load Zephyr directly based on these configurations. Currently we only support boot Zephyr from protected mode. Tracked-On: #3214 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
@@ -64,6 +64,7 @@ struct vuart_config {
|
||||
|
||||
enum os_kernel_type {
|
||||
KERNEL_BZIMAGE = 1,
|
||||
KERNEL_ZEPHYR,
|
||||
};
|
||||
|
||||
struct acrn_vm_os_config {
|
||||
@@ -72,6 +73,9 @@ struct acrn_vm_os_config {
|
||||
char kernel_mod_tag[MAX_MOD_TAG_LEN]; /* multiboot module tag for kernel */
|
||||
char ramdisk_mod_tag[MAX_MOD_TAG_LEN]; /* multiboot module tag for ramdisk */
|
||||
char bootargs[MAX_BOOTARGS_SIZE]; /* boot args/cmdline */
|
||||
uint64_t kernel_load_addr;
|
||||
uint64_t kernel_entry_addr;
|
||||
uint64_t kernel_ramdisk_addr;
|
||||
} __aligned(8);
|
||||
|
||||
struct acrn_vm_pci_ptdev_config {
|
||||
|
Reference in New Issue
Block a user